for some time now, some packages are being re-emerged over and over again on one of my systems. First I didn't mind because I thought this might be some kind of issue that will sort itself out when some specific package gets updated. But now it becomes an annoyance.
I use a chroot to build the packages for this system for it's an old ThinkPad with a Pentium-M and 2GB RAM but it's all the same on the ThinkPad and inside of the chroot. And the built binaries are never considered by portage, it wants to compile theses packages everytime anew. And: There is no error or other kind of failure.
My main question is: What is the root cause for this? How could I have found out what causes these rebuilds?
Here you see the ending of such an emerge and my usual habit of etc-update and emerge -a --depclean followed by another try if portage wants to re-emerge the packages it emerged successfully just a minute ago:
Code: Select all
(...)
--- replaced dir /usr/include
--- replaced obj /usr/bin/qalc
--- replaced dir /usr/bin
--- replaced dir /usr
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> sci-libs/libqalculate-5.9.0 merged.
>>> Regenerating /etc/ld.so.cache...
>>> Completed (9 of 9) sci-libs/libqalculate-5.9.0::gentoo
* GNU info directory index is up-to-date.
* After world updates, it is important to remove obsolete packages with
* emerge --depclean. Refer to `man emerge` for more information.
(chroot:x86-concordia) ishtar / # etc-update
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)
(chroot:x86-concordia) ishtar / # emerge -a --depclean
* Always study the list of packages to be cleaned for any obvious
* mistakes. Packages that are part of the world set will always
* be kept. They can be manually added to this set with
* `emerge --noreplace <atom>`. Packages that are listed in
* package.provided (see portage(5)) will be removed by
* depclean, even if they are part of the world set.
*
* As a safety measure, depclean will not remove any packages
* unless *all* required dependencies have been resolved. As a
* consequence of this, it often becomes necessary to run
* `emerge --update --newuse --deep @world` prior to depclean.
Calculating dependencies... done!
>>> No packages selected for removal by depclean
>>> To see reverse dependencies, use --verbose
Packages installed: 937
Packages in world: 94
Packages in system: 50
Required packages: 937
Number removed: 0
(chroot:x86-concordia) ishtar / # emerge -tauvDNUk world --keep-going --with-bdeps=y
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
Dependency resolution took 310.58 s (backtrack: 3/20).
[ebuild rR ~] sci-libs/libqalculate-5.9.0:0/23.3::gentoo USE="curl hardened icu readline -gnuplot -test" 0 KiB
[ebuild rR ] dev-qt/qt5compat-6.10.2:6/6.10.2::gentoo USE="gui icu qml -custom-cflags -test" 0 KiB
[ebuild rR ] dev-qt/qtbase-6.10.2:6/6.10.2::gentoo USE="X concurrent cups dbus gtk gui icu libinput libproxy network nls opengl sql sqlite ssl udev vulkan wayland widgets xml (zstd) -accessibility -brotli -custom-cflags -eglfs -evdev -gles2-only -gssapi -journald -mysql -oci8 -odbc -postgres (-renderdoc) -sctp -syslog -test -tslib" 0 KiB
[ebuild rR ] media-libs/harfbuzz-12.2.0:0/6.0.0::gentoo USE="cairo glib graphite icu introspection truetype -debug -doc -experimental -test" 0 KiB
[ebuild rR ] net-libs/nodejs-22.13.1:0/22::gentoo USE="icu npm snapshot ssl system-icu system-ssl -corepack -debug -doc -inspector (-lto) -pax-kernel -test" CPU_FLAGS_X86="sse2" 0 KiB
[ebuild rR ] dev-qt/qtcore-5.15.18:5/5.15.18::gentoo USE="icu -debug -old-kernel -test" 0 KiB
[ebuild rR ] dev-libs/libxml2-2.15.1:2/16::gentoo USE="icu readline -doc -python -static-libs -test" PYTHON_TARGETS="python3_13 -python3_11 -python3_12 -python3_14" 0 KiB
[ebuild rR ] dev-libs/boost-1.88.0-r1:0/1.88.0::gentoo USE="bzip2 context icu nls python stacktrace zlib zstd -debug -doc -lzma -mpi -numpy -test -test-full -tools" PYTHON_TARGETS="python3_13 -python3_11 -python3_12 -python3_14" 0 KiB
[ebuild rR ] dev-db/sqlite-3.51.2:3::gentoo USE="icu readline -debug -doc -secure-delete -static-libs -tcl -test -tools" 0 KiB
Total: 9 packages (9 reinstalls), Size of downloads: 0 KiB
Would you like to merge these packages? [Yes/No]Code: Select all
# emerge --info
Portage 3.0.77 (python 3.13.11-final-0, default/linux/x86/23.0/i686/desktop, gcc-15, glibc-2.42-r5, 6.18.18-gentoo x86_64)
=================================================================
System uname: Linux-6.18.18-gentoo-x86_64-AMD_Ryzen_7_5700X_8-Core_Processor-with-glibc2.42
KiB Mem: 131838268 total, 121857452 free
KiB Swap: 134217724 total, 134217724 free
Timestamp of repository gentoo: Sun, 22 Mar 2026 11:45:00 +0000
Head commit of repository gentoo: be281e30bc4b472c0beb691068a7afc292bd1d7e
sh bash 5.3_p9
ld GNU ld (Gentoo 2.46.0 p1) 2.46.0
distcc 3.4 i686-pc-linux-gnu [disabled]
app-misc/pax-utils: 1.3.10::gentoo
app-shells/bash: 5.3_p9::gentoo
dev-build/autoconf: 2.72-r6::gentoo
dev-build/automake: 1.18.1::gentoo
dev-build/cmake: 4.1.4::gentoo
dev-build/libtool: 2.5.4::gentoo
dev-build/make: 4.4.1-r102::gentoo
dev-build/meson: 1.9.2::gentoo
dev-java/java-config: 2.3.4::gentoo
dev-lang/perl: 5.42.0-r1::gentoo
dev-lang/python: 3.13.11::gentoo, 3.14.2::gentoo
dev-lang/rust-bin: 1.92.0::gentoo
llvm-core/clang: 21.1.8::gentoo
llvm-core/lld: 21.1.8::gentoo
llvm-core/llvm: 21.1.8::gentoo
sys-apps/baselayout: 2.18::gentoo
sys-apps/openrc: 0.63-r1::gentoo
sys-apps/sandbox: 2.46::gentoo
sys-devel/binutils: 2.46.0::gentoo
sys-devel/binutils-config: 5.6::gentoo
sys-devel/gcc: 15.2.1_p20260214::gentoo
sys-devel/gcc-config: 2.12.2::gentoo
sys-kernel/linux-headers: 6.18::gentoo (virtual/os-headers)
sys-libs/glibc: 2.42-r5::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-extra-opts:
sync-rsync-verify-max-age: 3
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1
x-portage
location: /usr/local/portage
masters: gentoo
priority: 0
volatile: True
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="@FREE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -pipe -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config"
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="-march=pentium-m -pipe -O2"
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=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live compress-index 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=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="de_1901 de_DE de en"
MAKEOPTS="-j16"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="bzip2"
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=pentium-m -C link-arg=-Wl,-z,pack-relative-relocs"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa avif branding bts bzip2 cairo cdda clflush cmov crypt cups cx8 dbus de dmabuf dri dts dvd dvdr elogind encode est exif flac fpu fxsr gdbm gif gpg gpm grub gstreamer gtk gui iconv icu ipv6 java jpeg jpegxl jumbo-build lame laptop lcms libnotify libtirpc linguas_de linguas_de-1901 linguas_en lm-sensors lm_sensors lz4 mad mca mce mmx mng mp3 mp4 mpeg msr mtp mtrr ncurses networkmanager nls ogg openal opengl openh264 openmp pam pango pbe pcre pdf pge png policykit ppds pse qml qt6 readline sdl seccomp sensord sep sound spell sse sse2 ssl startup-notification svg system-av1 system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-openjpeg system-png system-sqlite system-webp test-rust theora thinkpad tiff tm tm2 touchpad truetype tsc udev udisks unicode upower usb v4l v4l2 vme vorbis vulkan wayland webp wifi wxwidgets x264 x86 xattr xcb xft xml xv xvid zlib zstd" ABI_X86="32" ADA_TARGET="gcc_15" 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" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oncore skytraq superstar2 tsip tripmate tnt" GRUB_PLATFORMS="pc" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev synaptics libinput" KERNEL="linux" L10N="de-1901 de en en-AU en-CA en-GB en-US en-ZA" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" RUBY_TARGETS="ruby32 ruby33" VIDEO_CARDS="radeon r100" 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, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS

