View previous topic :: View next topic |
Author |
Message |
Chiron8 n00b

Joined: 19 May 2025 Posts: 9 Location: UK
|
Posted: Mon May 19, 2025 6:56 pm Post subject: Accidentally unmerged ncurses and now I can't reinstall it |
|
|
(Sorry if this topic is really long)
I accidentally uninstalled ncurses because of a circular dependencies error (I unfortunately can't remember how I first got it):
Code: |
Total: 2 packages (1 new, 1 reinstall), Size of downloads: 812 KiB
* Error: circular dependencies:
(sys-libs/gpm-1.20.7-r6:0/0::gentoo, ebuild scheduled for merge) depends on
(sys-libs/ncurses-6.5_p20250125:0/6::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
(sys-libs/gpm-1.20.7-r6:0/0::gentoo, ebuild scheduled for merge) (buildtime)
It might be possible to break this cycle
by applying the following change:
- sys-libs/ncurses-6.5_p20250125 (Change USE: -gpm)
|
I didn't know what to do so I decided to unmerge then remerge ncurses. When trying to emerge ncurses again (with the "-gpm" USE flag), I keep getting this error:
Code: | ** Building terminfo database, please wait...
Running /usr/local/bin/tic to install /var/tmp/portage/sys-libs/ncurses-6.5_p20250125/image/usr/share/terminfo ...
You may see messages regarding extended capabilities, e.g., AX.
These are extended terminal capabilities which are compiled
using
tic -x
If you have ncurses 4.2 applications, you should read the INSTALL
document, and install the terminfo without the -x option.
/usr/local/bin/tic: error while loading shared libraries: libtinfotw.so.6: cannot open shared object file: No such file or directory
/usr/local/bin/tic: error while loading shared libraries: libtinfotw.so.6: cannot open shared object file: No such file or directory
? tic could not build /var/tmp/portage/sys-libs/ncurses-6.5_p20250125/image/usr/share/terminfo
make[1]: *** [Makefile:120: install.data] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-libs/ncurses-6.5_p20250125/work/ncurses-6.5-abi_x86_32.x86/ncurses/misc'
make: *** [Makefile:139: install] Error 2
make: Leaving directory '/var/tmp/portage/sys-libs/ncurses-6.5_p20250125/work/ncurses-6.5-abi_x86_32.x86/ncurses'
* ERROR: sys-libs/ncurses-6.5_p20250125::gentoo failed (install phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=sys-libs/ncurses-6.5_p20250125::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-libs/ncurses-6.5_p20250125::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-libs/ncurses-6.5_p20250125/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-libs/ncurses-6.5_p20250125/temp/environment'.
* Working directory: '/var/tmp/portage/sys-libs/ncurses-6.5_p20250125/work/ncurses-6.5-abi_x86_32.x86'
* S: '/var/tmp/portage/sys-libs/ncurses-6.5_p20250125/work/ncurses-6.5'
>>> Failed to emerge sys-libs/ncurses-6.5_p20250125, Log file:
>>> '/var/tmp/portage/sys-libs/ncurses-6.5_p20250125/temp/build.log'
* Messages for package sys-libs/ncurses-6.5_p20250125:
* ERROR: sys-libs/ncurses-6.5_p20250125::gentoo failed (install phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=sys-libs/ncurses-6.5_p20250125::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-libs/ncurses-6.5_p20250125::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-libs/ncurses-6.5_p20250125/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-libs/ncurses-6.5_p20250125/temp/environment'.
* Working directory: '/var/tmp/portage/sys-libs/ncurses-6.5_p20250125/work/ncurses-6.5-abi_x86_32.x86'
* S: '/var/tmp/portage/sys-libs/ncurses-6.5_p20250125/work/ncurses-6.5' |
I believe this is because ncurses also uses tic, so it is no longer on my system. I can't find a package for tic and there in no binary for ncurses. Emerge still works for other packages i've installed. Here is some extra information emerge asked to provide:
emerge --info '=sys-libs/ncurses-6.5_p20250125::gentoo':
Code: | Portage 3.0.67 (python 3.13.3-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-14, glibc-2.40-r8, 6.12.25-gentoo-dist x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.12.25-gentoo-dist-x86_64-Intel-R-_Core-TM-_i5-10210U_CPU_@_1.60GHz-with-glibc2.40
KiB Mem: 7802532 total, 1831220 free
KiB Swap: 10485756 total, 10485756 free
Timestamp of repository gentoo: Sun, 18 May 2025 14:15:00 +0000
Head commit of repository gentoo: 48ee5bf8b1c8e25ba8f1253e3f5cd23c66304f08
Head commit of repository gamerlay: 0b528a6fa810acfc36650d42ec5f84bf326bddea
Head commit of repository gentoo-zh: 5efb6e1866c529dcbf986b2de4bdfaeaee1dfdc4
Timestamp of repository guru: Fri, 16 May 2025 10:24:16 +0000
Head commit of repository guru: 7c991b877a00563a31f40c674d0f0f9bfce96434
Head commit of repository steam-overlay: d93137ae2575727f9df5d43ce6e0368d44b6c0e7
Head commit of repository zyrenth: 935097ffc31d32cf4fd9fa70254b0f765ee24dbc
sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils: 1.3.8::gentoo
app-shells/bash: 5.2_p37::gentoo
dev-build/autoconf: 2.72-r1::gentoo
dev-build/automake: 1.17-r1::gentoo
dev-build/cmake: 3.31.5::gentoo
dev-build/libtool: 2.5.4::gentoo
dev-build/make: 4.4.1-r100::gentoo
dev-build/meson: 1.7.0::gentoo
dev-lang/perl: 5.40.2::gentoo
dev-lang/python: 3.11.12::gentoo, 3.13.3::gentoo
dev-lang/rust-bin: 1.85.1::gentoo
llvm-core/clang: 19.1.7::gentoo
llvm-core/llvm: 19.1.7::gentoo
sys-apps/baselayout: 2.17::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-apps/systemd: 256.10::gentoo
sys-devel/binutils: 2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc: 14.2.1_p20241221::gentoo
sys-devel/gcc-config: 2.12.1::gentoo
sys-kernel/linux-headers: 6.12::gentoo (virtual/os-headers)
sys-libs/glibc: 2.40-r8::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-max-age: 3
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
gamerlay
location: /var/db/repos/gamerlay
sync-type: git
sync-uri: https://anongit.gentoo.org/git/proj/gamerlay.git
masters: gentoo
volatile: False
gentoo-zh
location: /var/db/repos/gentoo-zh
sync-type: git
sync-uri: https://github.com/microcai/gentoo-zh.git
masters: gentoo
volatile: False
guru
location: /var/db/repos/guru
sync-type: git
sync-uri: https://github.com/gentoo-mirror/guru.git
masters: gentoo
volatile: False
steam-overlay
location: /var/db/repos/steam-overlay
sync-type: git
sync-uri: https://github.com/anyc/steam-overlay.git
masters: gentoo
volatile: False
zyrenth
location: /var/db/repos/zyrenth
sync-type: git
sync-uri: https://github.com/kabili207/zyrenth-overlay.git
masters: gentoo
volatile: False
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -march=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j8 -l5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS="-C target-cpu=native"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dri dts dvd dvdr emoji encode exif flac gdbm gif gpm gtk gui iconv icu imagemagick ipv6 jpeg lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire png policykit ppds pulseaudio qml qt5 qt6 readline sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wifi wxwidgets x264 xattr xcb xft xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy opengl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS |
emerge -pqv '=sys-libs/ncurses-6.5_p20250125::gentoo':
Code: | emerge -pqv '=sys-libs/ncurses-6.5_p20250125::gentoo'
[nomerge ] www-client/w3m-0.5.3_p20240916::gentoo USE="X gpm nls ssl unicode -fbcon -gdk-pixbuf -imlib -lynxkeymap -nntp -xface" L10N="-ja"
[ebuild R ] sys-libs/gpm-1.20.7-r6::gentoo USE="(-selinux)" ABI_X86="32* (64) (-x32)" 812 KiB
[nomerge ] sys-libs/ncurses-6.5_p20250125:0/6::gentoo USE="cxx gpm stack-realign (tinfo) -ada -debug -doc -minimal -profile (-split-usr) -static-libs -test -trace -verify-sig" ABI_X86="32 (64) (-x32)"
[nomerge ] sys-libs/gpm-1.20.7-r6::gentoo USE="(-selinux)" ABI_X86="32* (64) (-x32)"
[nomerge ] dev-build/libtool-2.5.4:2::gentoo USE="-vanilla"
[nomerge ] dev-build/automake-1.17-r1:1.17::gentoo USE="-test -verify-sig"
[nomerge ] sys-apps/help2man-1.49.3::gentoo USE="nls"
[nomerge ] dev-perl/Locale-gettext-1.70.0_p20181130::gentoo USE="-test" PERL_FEATURES="(-debug) -ithreads -quadmath"
[nomerge ] sys-devel/gettext-0.22.5-r2::gentoo USE="acl cxx ncurses nls openmp (xattr) -doc -emacs -git -java -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)"
[nomerge ] dev-libs/libxml2-2.13.7:2::gentoo USE="icu python readline -examples -lzma -static-libs -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_13 -python3_11 -python3_12"
[nomerge ] sys-libs/readline-8.2_p13-r1:0/8::gentoo USE="(unicode) -static-libs -utils -verify-sig" ABI_X86="(64) -32 (-x32)"
[ebuild N ] sys-libs/ncurses-6.5_p20250125:0/6::gentoo USE="cxx gpm stack-realign (tinfo) -ada -debug -doc -minimal -profile (-split-usr) -static-libs -test -trace -verify-sig" ABI_X86="32 (64) (-x32)" 0 KiB
Total: 2 packages (1 new, 1 reinstall), Size of downloads: 812 KiB
* Error: circular dependencies:
(sys-libs/gpm-1.20.7-r6:0/0::gentoo, ebuild scheduled for merge) depends on
(sys-libs/ncurses-6.5_p20250125:0/6::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
(sys-libs/gpm-1.20.7-r6:0/0::gentoo, ebuild scheduled for merge) (buildtime)
It might be possible to break this cycle
by applying the following change:
- sys-libs/ncurses-6.5_p20250125 (Change USE: -gpm)
Note that this change can be reverted, once the package has been installed.
!!! The following installed packages are masked:
- dev-util/intel_clc-24.3.4::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Matt Turner <mattst88@gentoo.org> (2025-05-13)
# Package is replaced by dev-util/mesa_clc.
# Removal on 2025-06-12. Bug #955925.
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook. |
The complete build log or ebuild environment file were not present... (the /var/tmp/portage/sys-libs/ncurses-6.5_p20250125/temp folder does not exist)
Thank you so much for helping me, I pretty ne to gentoo and I'm finding the gentoo documentation and forums much more friendly than arch.  |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23663
|
Posted: Mon May 19, 2025 7:10 pm Post subject: |
|
|
Welcome to the forums.
You should never use emerge --unmerge package unless you can explain why emerge --depclean package is wrong to refuse to remove it. I think in this case, emerge --depclean would have refused to remove ncurses.
You have a non-Portage-managed install of tic in /usr/local/bin, which is now broken by the removal of ncurses, and which the ncurses build is wrongly trying to use. You should not have anything in /usr/local at this time. Move tic aside, and retry the ncurses emerge.
You have a surprisingly large number of overlays enabled for a new user. Many people go a long time with few or no overlays. Using so many overlays may complicate your life. |
|
Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 10822 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon May 19, 2025 8:45 pm Post subject: |
|
|
Hu wrote: | ...Move tic aside, and retry the ncurses emerge. | ...while following Portage's advice, to wit Quote: | It might be possible to break this cycle
by applying the following change:
- sys-libs/ncurses-6.5_p20250125 (Change USE: -gpm) | The no-fuss way to try this is by ephemerally disabling the gpm USE flag on the command line: Code: | USE=-gpm emerge -1v ncurses | If you need help with Hu's advice, just ask.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
 |
Chiron8 n00b

Joined: 19 May 2025 Posts: 9 Location: UK
|
Posted: Tue May 20, 2025 12:35 pm Post subject: |
|
|
Hu wrote: | You should not have anything in /usr/local at this time. |
Thank you so much for your quick reply, should I completely delete /usr/local/ or is there a way to stop portage looking there? |
|
Back to top |
|
 |
Chiron8 n00b

Joined: 19 May 2025 Posts: 9 Location: UK
|
Posted: Tue May 20, 2025 12:41 pm Post subject: |
|
|
John R. Graham wrote: | Code: | USE=-gpm emerge -1v ncurses |
|
This doesn't seem to be working, I still get the same message:
Code: | * Error: circular dependencies:
(sys-libs/gpm-1.20.7-r6:0/0::gentoo, ebuild scheduled for merge) depends on
(sys-libs/ncurses-6.5_p20250125:0/6::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
(sys-libs/gpm-1.20.7-r6:0/0::gentoo, ebuild scheduled for merge) (buildtime)
It might be possible to break this cycle
by applying the following change:
- sys-libs/ncurses-6.5_p20250125 (Change USE: -gpm) |
Is it possible that gpm is a required dependency? |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31745 Location: here
|
Posted: Tue May 20, 2025 1:22 pm Post subject: |
|
|
Can you post full output of command USE="-gpm" emerge -pv sys-libs/ncurses? _________________ Questions are guaranteed in life; Answers aren't.
"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968 |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23663
|
Posted: Tue May 20, 2025 1:54 pm Post subject: |
|
|
Chiron8 wrote: | Hu wrote: | You should not have anything in /usr/local at this time. |
Thank you so much for your quick reply, should I completely delete /usr/local/ or is there a way to stop portage looking there? | You shouldn't have anything there, so there shouldn't be anything to delete. However, since you do have things there, I recommend not categorically removing everything, because we don't know how much would be affected by a bulk removal. Instead, remove the one known bad file (tic), and show us the output of find /usr/local -ls so that we can see what else you have put there. |
|
Back to top |
|
 |
Chiron8 n00b

Joined: 19 May 2025 Posts: 9 Location: UK
|
Posted: Tue May 20, 2025 3:20 pm Post subject: |
|
|
fedeliallalinea wrote: | Can you post full output of command USE="-gpm" emerge -pv sys-libs/ncurses? |
Code: | USE="-gpm" emerge -pv sys-libs/ncurses
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 8.99 s (backtrack: 1/20).
[nomerge ] www-client/w3m-0.5.3_p20240916::gentoo USE="X gpm nls ssl unicode -fbcon -gdk-pixbuf -imlib -lynxkeymap -nntp -xface" L10N="-ja"
[ebuild R ] sys-libs/gpm-1.20.7-r6::gentoo USE="(-selinux)" ABI_X86="32* (64) (-x32)" 812 KiB
[nomerge ] sys-libs/ncurses-6.5_p20250125:0/6::gentoo USE="cxx gpm stack-realign (tinfo) -ada -debug -doc -minimal -profile (-split-usr) -static-libs -test -trace -verify-sig" ABI_X86="32 (64) (-x32)"
[nomerge ] sys-libs/gpm-1.20.7-r6::gentoo USE="(-selinux)" ABI_X86="32* (64) (-x32)"
[nomerge ] dev-build/libtool-2.5.4:2::gentoo USE="-vanilla"
[nomerge ] dev-build/automake-1.17-r1:1.17::gentoo USE="-test -verify-sig"
[nomerge ] sys-apps/help2man-1.49.3::gentoo USE="nls"
[nomerge ] dev-perl/Locale-gettext-1.70.0_p20181130::gentoo USE="-test" PERL_FEATURES="(-debug) -ithreads -quadmath"
[nomerge ] sys-devel/gettext-0.22.5-r2::gentoo USE="acl cxx ncurses nls openmp (xattr) -doc -emacs -git -java -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)"
[nomerge ] dev-libs/libxml2-2.13.7:2::gentoo USE="icu python readline -examples -lzma -static-libs -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_13 -python3_11 -python3_12"
[nomerge ] sys-libs/readline-8.2_p13-r1:0/8::gentoo USE="(unicode) -static-libs -utils -verify-sig" ABI_X86="(64) -32 (-x32)"
[ebuild N ] sys-libs/ncurses-6.5_p20250125:0/6::gentoo USE="cxx gpm stack-realign (tinfo) -ada -debug -doc -minimal -profile (-split-usr) -static-libs -test -trace -verify-sig" ABI_X86="32 (64) (-x32)" 0 KiB
Total: 2 packages (1 new, 1 reinstall), Size of downloads: 812 KiB
* Error: circular dependencies:
(sys-libs/gpm-1.20.7-r6:0/0::gentoo, ebuild scheduled for merge) depends on
(sys-libs/ncurses-6.5_p20250125:0/6::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
(sys-libs/gpm-1.20.7-r6:0/0::gentoo, ebuild scheduled for merge) (buildtime)
It might be possible to break this cycle
by applying the following change:
- sys-libs/ncurses-6.5_p20250125 (Change USE: -gpm)
Note that this change can be reverted, once the package has been installed.
!!! The following installed packages are masked:
- dev-util/intel_clc-24.3.4::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Matt Turner <mattst88@gentoo.org> (2025-05-13)
# Package is replaced by dev-util/mesa_clc.
# Removal on 2025-06-12. Bug #955925.
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook. |
|
|
Back to top |
|
 |
Chiron8 n00b

Joined: 19 May 2025 Posts: 9 Location: UK
|
Posted: Tue May 20, 2025 3:26 pm Post subject: |
|
|
Hu wrote: | Chiron8 wrote: | Hu wrote: | You should not have anything in /usr/local at this time. |
Thank you so much for your quick reply, should I completely delete /usr/local/ or is there a way to stop portage looking there? | You shouldn't have anything there, so there shouldn't be anything to delete. However, since you do have things there, I recommend not categorically removing everything, because we don't know how much would be affected by a bulk removal. Instead, remove the one known bad file (tic), and show us the output of find /usr/local -ls so that we can see what else you have put there. |
I remember why there stuff in there, I read somewhere that you could use a stage3 file and use a binary in there to fix it. I checked in the directory and it seems like that was the only thing in there so I've removed /usr/local/ (not as root) so there is still some extra stuff in there. Here is the output:
Code: | find /usr/local -ls
3814207 4 drwxr-xr-x 8 root root 4096 May 15 15:01 /usr/local
3814210 4 drwxr-xr-x 3 root root 4096 May 16 10:00 /usr/local/lib64
3951818 4 drwxr-xr-x 2 root root 4096 May 16 10:00 /usr/local/lib64/pkgconfig
3951819 4 -rw-r--r-- 1 root root 170 May 16 10:00 /usr/local/lib64/pkgconfig/wofi.pc
3814208 4 drwxr-xr-x 2 root root 4096 May 19 19:24 /usr/local/bin
3803447 4 -rwxr-xr-x 1 root root 2899 May 17 17:07 /usr/local/bin/writedoc
3803462 11612 -rwxr-xr-x 1 root root 11887640 Apr 27 16:57 /usr/local/bin/starship
150757 96 -rwxr-xr-x 1 chiron chiron 96384 Mar 18 19:40 /usr/local/bin/tic
3803453 12 -rwxr-xr-x 1 root root 11325 May 19 18:46 /usr/local/bin/pipes.sh
3805682 136 -rwxr-xr-x 1 root root 138152 May 16 10:00 /usr/local/bin/wofi
3951794 4 drwxr-xr-x 4 root root 4096 May 16 10:00 /usr/local/include
3951810 4 drwxr-xr-x 2 root root 4096 May 16 10:00 /usr/local/include/wofi-1
3951811 4 -rw-r--r-- 1 root root 1057 May 15 15:00 /usr/local/include/wofi-1/config.h
3951813 4 -rw-r--r-- 1 root root 949 May 15 15:00 /usr/local/include/wofi-1/utils_g.h
3951815 4 -rw-r--r-- 1 root root 1903 May 15 15:00 /usr/local/include/wofi-1/widget_builder_api.h
3951812 4 -rw-r--r-- 1 root root 1144 May 15 15:00 /usr/local/include/wofi-1/map.h
3951816 4 -rw-r--r-- 1 root root 1597 May 15 15:00 /usr/local/include/wofi-1/wofi_api.h
3951814 4 -rw-r--r-- 1 root root 1109 May 15 15:00 /usr/local/include/wofi-1/utils.h
3951796 4 drwxr-xr-x 2 root root 4096 May 15 15:01 /usr/local/include/wofi
3951798 4 -rw-r--r-- 1 root root 949 May 15 15:00 /usr/local/include/wofi/utils_g.h
3951800 4 -rw-r--r-- 1 root root 1903 May 15 15:00 /usr/local/include/wofi/widget_builder_api.h
3951797 4 -rw-r--r-- 1 root root 1144 May 15 15:00 /usr/local/include/wofi/map.h
3951801 4 -rw-r--r-- 1 root root 1597 May 15 15:00 /usr/local/include/wofi/wofi_api.h
3951799 4 -rw-r--r-- 1 root root 1109 May 15 15:00 /usr/local/include/wofi/utils.h
3814211 4 drwxr-xr-x 2 root root 4096 Apr 30 03:01 /usr/local/sbin
4194687 4 drwxr-xr-x 4 root root 4096 May 19 19:24 /usr/local/share
4194688 4 drwxr-xr-x 7 root root 4096 May 15 15:01 /usr/local/share/man
4194689 4 drwxr-xr-x 2 root root 4096 May 19 18:46 /usr/local/share/man/man6
4194397 8 -rw-r--r-- 1 root root 5112 May 19 18:46 /usr/local/share/man/man6/pipes.sh.6
4194346 4 drwxr-xr-x 2 root root 4096 May 16 10:00 /usr/local/share/man/man3
4194367 4 -rw-r--r-- 1 root root 3346 May 15 15:00 /usr/local/share/man/man3/wofi.3
4194373 4 -rw-r--r-- 1 root root 1635 May 15 15:00 /usr/local/share/man/man3/wofi-config.3
4194377 8 -rw-r--r-- 1 root root 4097 May 15 15:00 /usr/local/share/man/man3/wofi-widget-builder.3
4194376 4 -rw-r--r-- 1 root root 1385 May 15 15:00 /usr/local/share/man/man3/wofi-utils.3
4194372 8 -rw-r--r-- 1 root root 4578 May 15 15:00 /usr/local/share/man/man3/wofi-api.3
4194375 4 -rw-r--r-- 1 root root 2545 May 15 15:00 /usr/local/share/man/man3/wofi-map.3
4194370 4 drwxr-xr-x 2 root root 4096 May 16 10:00 /usr/local/share/man/man7
4194371 12 -rw-r--r-- 1 root root 8356 May 15 15:00 /usr/local/share/man/man7/wofi.7
4194374 44 -rw-r--r-- 1 root root 43552 May 15 15:00 /usr/local/share/man/man7/wofi-keys.7
4194368 4 drwxr-xr-x 2 root root 4096 May 16 10:00 /usr/local/share/man/man5
4194369 16 -rw-r--r-- 1 root root 12666 May 15 15:00 /usr/local/share/man/man5/wofi.5
4194331 4 drwxr-xr-x 2 root root 4096 May 16 10:00 /usr/local/share/man/man1
4194345 8 -rw-r--r-- 1 root root 5453 May 15 15:00 /usr/local/share/man/man1/wofi.1
4194398 4 drwxr-xr-x 44 root root 4096 May 19 19:24 /usr/local/share/terminfo
154519 12 drwxr-xr-x 2 chiron chiron 12288 May 20 16:21 /usr/local/share/terminfo/w
152769 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/k
150803 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/E
150815 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/N
150768 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/3
153655 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/p
150801 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/A
150818 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/P
150836 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/Q
150808 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/L
150810 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/M
150789 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/7
151701 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/e
152760 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/j
154021 12 drwxr-xr-x 2 chiron chiron 12288 May 20 16:21 /usr/local/share/terminfo/t
150771 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/4
150844 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/X
154303 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/v
151823 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/h
152925 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/m
153881 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/s
153583 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/o
152842 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/l
150797 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/9
151195 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/b
153804 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/q
151250 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/c
150782 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/6
154294 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/u
150847 12 drwxr-xr-x 2 chiron chiron 12288 May 20 16:21 /usr/local/share/terminfo/a
153187 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/n
154969 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/z
151736 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/f
150760 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/1
154778 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/x
151766 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/g
150775 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/5
153846 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/r
151380 12 drwxr-xr-x 2 chiron chiron 12288 May 20 16:21 /usr/local/share/terminfo/d
151972 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/i
150795 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/8
150763 4 drwxr-xr-x 2 chiron chiron 4096 May 20 16:21 /usr/local/share/terminfo/2
4194753 4 -rw-r--r-- 1 root root 1826 May 14 12:15 /usr/local/share/ca-certificates
3814209 4 drwxr-xr-x 2 root root 4096 Apr 30 03:01 /usr/local/lib |
|
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31745 Location: here
|
Posted: Tue May 20, 2025 4:19 pm Post subject: |
|
|
And does the USE="-gpm" emerge -1a sys-libs/ncurses www-client/w3m command work? _________________ Questions are guaranteed in life; Answers aren't.
"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968 |
|
Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 10822 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue May 20, 2025 5:08 pm Post subject: |
|
|
Strange. Chiron8, could you post the output of Code: | USE=-gpm ; echo $USE | od -tx1c | please?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
 |
Chiron8 n00b

Joined: 19 May 2025 Posts: 9 Location: UK
|
Posted: Tue May 20, 2025 5:47 pm Post subject: |
|
|
fedeliallalinea wrote: | And does the USE="-gpm" emerge -1a sys-libs/ncurses www-client/w3m command work? |
Nope! I got a similar error...
Code: | USE="-gpm" emerge -1a sys-libs/ncurses www-client/w3m
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 8.60 s (backtrack: 1/20).
[ebuild R ] www-client/w3m-0.5.3_p20240916::gentoo USE="X gpm nls ssl unicode -fbcon -gdk-pixbuf -imlib -lynxkeymap -nntp -xface" L10N="-ja" 0 KiB
[nomerge ] www-client/w3m-0.5.3_p20240916::gentoo USE="X gpm nls ssl unicode -fbcon -gdk-pixbuf -imlib -lynxkeymap -nntp -xface" L10N="-ja"
[ebuild R ] sys-libs/gpm-1.20.7-r6::gentoo USE="(-selinux)" ABI_X86="32* (64) (-x32)" 812 KiB
[nomerge ] dev-lang/python-3.11.12:3.11::gentoo USE="bluetooth ensurepip gdbm ncurses readline sqlite ssl -build -debug -examples -libedit -pgo -test -tk -valgrind -verify-sig"
[nomerge ] sys-libs/readline-8.2_p13-r1:0/8::gentoo USE="(unicode) -static-libs -utils -verify-sig" ABI_X86="(64) -32 (-x32)"
[ebuild N ] sys-libs/ncurses-6.5_p20250125:0/6::gentoo USE="cxx gpm stack-realign (tinfo) -ada -debug -doc -minimal -profile (-split-usr) -static-libs -test -trace -verify-sig" ABI_X86="32 (64) (-x32)" 0 KiB
Total: 3 packages (1 new, 2 reinstalls), Size of downloads: 812 KiB
* Error: circular dependencies:
(sys-libs/gpm-1.20.7-r6:0/0::gentoo, ebuild scheduled for merge) depends on
(sys-libs/ncurses-6.5_p20250125:0/6::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
(sys-libs/gpm-1.20.7-r6:0/0::gentoo, ebuild scheduled for merge) (buildtime)
It might be possible to break this cycle
by applying the following change:
- sys-libs/ncurses-6.5_p20250125 (Change USE: -gpm)
Note that this change can be reverted, once the package has been installed.
!!! The following installed packages are masked:
- dev-util/intel_clc-24.3.4::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Matt Turner <mattst88@gentoo.org> (2025-05-13)
# Package is replaced by dev-util/mesa_clc.
# Removal on 2025-06-12. Bug #955925.
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook. |
|
|
Back to top |
|
 |
Chiron8 n00b

Joined: 19 May 2025 Posts: 9 Location: UK
|
Posted: Tue May 20, 2025 5:49 pm Post subject: |
|
|
John R. Graham wrote: | Strange. Chiron8, could you post the output of Code: | USE=-gpm ; echo $USE | od -tx1c | please?
- John |
Here you go:
Code: | USE=-gpm ; echo $USE | od -tx1c
0000000 2d 67 70 6d 0a
- g p m \n
0000005 |
|
|
Back to top |
|
 |
logrusx Advocate


Joined: 22 Feb 2018 Posts: 3149
|
Posted: Tue May 20, 2025 8:23 pm Post subject: |
|
|
One oddity I can see it there is no EMERGE_DEFAULT_OPTS set and yet the output looks like emerge has -t switch passed to it without it explicitly being set.
There's something odd with this system.
What's the shell you're using, how do you elevate to root, what's the output of env command?
I also see you have the binhost set up, why are you not using it?
Best Regards,
Georgi |
|
Back to top |
|
 |
Chiron8 n00b

Joined: 19 May 2025 Posts: 9 Location: UK
|
Posted: Wed May 21, 2025 8:21 am Post subject: |
|
|
logrusx wrote: | One oddity I can see it there is no EMERGE_DEFAULT_OPTS set and yet the output looks like emerge has -t switch passed to it without it explicitly being set.
There's something odd with this system.
What's the shell you're using, how do you elevate to root, what's the output of env command?
I also see you have the binhost set up, why are you not using it?
Best Regards,
Georgi |
Im using the fish shell, I use sudo (but doesn't require a password). The output of env is:
Code: | env
PWD=/home/chiron
PATH=/home/chiron/.spicetify:/home/chiron/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/19/bin
USER=chiron
DISPLAY=:0
MAIL=/var/mail/chiron
XDG_SESSION_CLASS=user
HYPRCURSOR_SIZE=20
LESSOPEN=|lesspipe %s
KITTY_PID=17942
LEX=flex
XDG_SESSION_ID=1
MOZ_ENABLE_WAYLAND=1
COLORTERM=truecolor
MANPAGER=manpager
HYPRLAND_INSTANCE_SIGNATURE=0bd541f2fd902dbfa04c3ea2ccf679395e316887_1747814334_857805277
SYSTEMD_EXEC_PID=693
HYPRLAND_CMD=Hyprland
SHLVL=1
STARSHIP_SESSION_KEY=3052225622574306
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/ly.service/memory.pressure
WAYLAND_DISPLAY=wayland-1
TERM=xterm-kitty
HL_INITIAL_WORKSPACE_TOKEN=d4640a8c-6833-40b2-913b-0d20355186bc
XDG_SEAT=seat0
XCURSOR_SIZE=20
KITTY_PUBLIC_KEY=1:CyFrPEat8{z)>FX15gd{F`LuKa5BEQ4z|((uq`KK
SHELL=/bin/fish
KITTY_WINDOW_ID=1
PAGER=/usr/bin/less
INFOPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.44/info:/usr/share/autoconf-2.72/info:/usr/share/automake-1.17/info:/usr/share/info
XDG_DATA_DIRS=/usr/local/share:/usr/share
XCURSOR_THEME="Bibata-Modern-Classic"
LOGNAME=chiron
EDITOR=/bin/nano
GCC_SPECS=
KITTY_INSTALLATION_DIR=/usr/lib64/kitty
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
CONFIG_PROTECT=/usr/share/gnupg/qualified.txt /usr/share/config
LANG=en_GB.utf8
TERMINFO=/usr/lib64/kitty/terminfo
CONFIG_PROTECT_MASK=/etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/dconf /etc/ca-certificates.conf /etc/revdep-rebuild
XDG_VTNR=2
XDG_CURRENT_DESKTOP=Hyprland
MANPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.44/man:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man-bin-1.85.1:/usr/lib/llvm/19/share/man
_JAVA_AWT_WM_NONREPARENTING=1
INVOCATION_ID=7e64af80d3944832899ddad46594a4d0
STARSHIP_SHELL=fish
HOME=/home/chiron
MOTD_SHOWN=pam
XDG_BACKEND=wayland
HYPRCURSOR_THEME="Bibata-Modern-Classic"
XDG_SESSION_TYPE=wayland
XDG_SESSION_DESKTOP=Hyprland
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
FLTK_DOCDIR=/usr/share/doc/fltk-1.3.8/html
LESS=-R -M --shift 5
GSETTINGS_BACKEND=dconf
XDG_CONFIG_DIRS=/etc/xdg |
I don't know what binhost is and I don't recall setting it up.
Thank you very much,
Chiron
Removed LS_COLORS -line from the code -block to preserve forum layout. -- Zucca |
|
Back to top |
|
 |
logrusx Advocate


Joined: 22 Feb 2018 Posts: 3149
|
Posted: Wed May 21, 2025 8:35 am Post subject: |
|
|
Sudo has been the culprit of numerous problems in the past, I don't know about fish but I would be suspicious if I were you. Portage depends on bashto run properly. Also what's in your .local/bin directory? It's in the path and if there are binaries that are usually in the system bin directory, they'll be chosen over the system ones which can cause quite a mess.
Start a new root bash session with clean environment and try again.
Binhost is short for binary packages host. You can perform installations from binary packages using it. In your emerge --info, just after overlays there's a binhost configuration. To use it you only need to add -g to portage switches.
With binary packages you should be able to bypass such dependency conflicts as they are build time dependencies and binary packages don't need them as they are already built. It's also in orders of magnitude faster as you don't need to compile locally.
Here's more information:
https://wiki.gentoo.org/wiki/Gentoo_Binary_Host_Quickstart
https://www.gentoo.org/news/2024/02/04/x86-64-v3.html
Best Regards,
Georgi |
|
Back to top |
|
 |
Chiron8 n00b

Joined: 19 May 2025 Posts: 9 Location: UK
|
Posted: Wed May 21, 2025 5:08 pm Post subject: |
|
|
logrusx wrote: | To use it you only need to add -g to portage switches. |
YAY!!! Using the -g flag worked! Both ncurses and gpm are now installed!
Thank you so very much to everyone the helped me  |
|
Back to top |
|
 |
logrusx Advocate


Joined: 22 Feb 2018 Posts: 3149
|
Posted: Wed May 21, 2025 5:13 pm Post subject: |
|
|
Note that there still are issues with your system I pointed out above.
Best Regards,
Georgi |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|