Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 768264 - app-portage/gentoolkit revdep-rebuild wants to rebuild binutils-libs-2.35.1-r1 again and again
Summary: app-portage/gentoolkit revdep-rebuild wants to rebuild binutils-libs-2.35.1-r...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-01 20:32 UTC by Christoph Schulz
Modified: 2021-02-03 05:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
differences between old and new revdep-rebuild cache (revdep-rebuild-cache.diff,1.75 KB, patch)
2021-02-01 20:33 UTC, Christoph Schulz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Schulz 2021-02-01 20:32:40 UTC
After updating I ran revdep-rebuild which rebuilt binutils-libs-2.35.1-r1. However, after that I ran it a second time and again it proposes to rebuild the very same package. Output:

==== %< =====

berry ~ # revdep-rebuild -v -p -d
 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
        main(), _libs_to_check = set()
        all_masks:

                /lib/modules
                /lib32/modules
                /lib64/modules
                /opt/icedtea-bin-3.16.0
                /opt/openjdk-bin-11.0.9_p11
                /opt/openjdk-bin-8.272_p10
                libjava.so
                libjawt.so
                libjvm.so
                libodbc.so
                libodbcinst.so
 * Found a valid cache, skipping collecting phase
        analyse(), Found 4677 libraries (+855 symlinks) and 4469 binaries
 * Scanning files
        scan(), scanelf params = ['-BF', '%F;%f;%S;%n;%M'], # files: 4813
        scan(), final output length: 3738
        scan_files(); total time to get scanelf data is 314 milliseconds
        scan_files(); total filenames found: 3738 in 193 milliseconds
 * Checking dynamic linking consistency
        analyse(), Searching for 4813 libs, bins within 5532 libraries and links
        LibCheck.__init__(), new searchlibs: ['32', '64']
        LibCheck.search(), Checking for broken 32 bit libs
        LibCheck.search(), Checking for broken 64 bit libs
        LibCheck.search(); FOUND: 64bit, libbfd-2.35.1.gentoo-sys-libs-binutils-libs-st-def.so, /usr/lib64/libctf.so.0.0.0
        LibCheck.search(); Total found: 1 libs, 1 files in 152 milliseconds
 * Broken files that require: libbfd-2.35.1.gentoo-sys-libs-binutils-libs-st-def.so (64 bits)
        * /usr/lib64/libctf.so.0.0.0
        LibCheck.process_results(); total filepaths found: 1 in 0 milliseconds
 * Assign files to packages
        * /usr/lib64/libctf.so.0.0.0 -> sys-libs/binutils-libs-2.35.1-r1
        assign_packages(); assigned 1 packages, 0 orphans in 1380 milliseconds
Using selector: %s

emerge --pretend --verbose --oneshot --complete-graph=y sys-libs/binutils-libs:0/2.35.1

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-libs/binutils-libs-2.35.1-r1:0/2.35.1::gentoo  USE="-64-bit-bfd -multitarget -nls -static-libs" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
        rebuild(); emerge call for 1 ebuilds took: 5.552 seconds
rebuild return code = 0

==== %< =====

Old revdep-rebuild.sh did not complain.

revdep-rebuild -i did NOT try to rebuild binutils-libs-2.35.1-r1. However, when I omitted the -i flag in a subsequent invocation, revdep-rebuild wanted to rebuild binutils-libs-2.35.1-r1 again.

Deleting /var/cache/revdep-rebuild solved the problem permanently.

Comparing the old revdep-rebuild cache with the freshly generated one resulted in the diff attached. So for some unknown reason the old 2.34 files have not been removed properly from the revdep-rebuild cache.


Reproducible: Always

Steps to Reproduce:
1. Update binutils-libs to 2.35.1-r1 from binutils-libs-2.34.2-r2
2. Uninstall binutils-libs-2.34.2-r2 via emerge --depclean
3. Run revdep-rebuild, it rebuilds binutils-libs to 2.35.1-r1
4. Run revdep-rebuild again
Actual Results:  
revdep-rebuild rebuilds binutils-libs 2.35.1-r1 again.

Expected Results:  
revdep-rebuild should not rebuild binutils-libs 2.35.1-r1 a second time.

berry ~ # emerge --info
Portage 3.0.13 (python 3.8.7-final-0, default/linux/amd64/17.1/no-multilib, gcc-9.3.0, glibc-2.32-r5, 5.4.92-gentoo x86_64)
=================================================================
System uname: Linux-5.4.92-gentoo-x86_64-Intel_Xeon_E3-12xx_v2_-Ivy_Bridge,_IBRS-with-glibc2.2.5
KiB Mem:     6063844 total,   3060904 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Sun, 31 Jan 2021 23:45:01 +0000
Head commit of repository gentoo: f8eebb330965eb5eebe717485ddfacc82647c28d
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.8.7-r1::gentoo, 3.9.1-r1::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://localhost
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

hel
    location: /usr/local/portage/hel
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mirror.netcologne.de/gentoo/ http://mirror.netcologne.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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"
USE="acl amd64 apache2 berkdb bzip2 caps cli crypt dane dri ffmpeg fortran gdbm iconv ipv6 java7 jbig jpeg jpeg2k libglvnd libtirpc ncurses nptl openmp pam pcre png readline rle seccomp split-usr ssl svg tcpd tiff unicode wmf xattr xml zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="access_compat actions alias auth_basic authn_core authn_alias authn_anon authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_connect proxy_http remoteip rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Christoph Schulz 2021-02-01 20:33:21 UTC
Created attachment 685467 [details, diff]
differences between old and new revdep-rebuild cache