Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298651 - revdep-rebuild does not support "include" statements in ld.so.conf
Summary: revdep-rebuild does not support "include" statements in ld.so.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 3 votes (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 237964 305793
  Show dependency tree
 
Reported: 2009-12-28 08:53 UTC by tman
Modified: 2010-03-14 12:32 UTC (History)
31 users (show)

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


Attachments
libbfd.la (libbfd.la,956 bytes, text/plain)
2009-12-29 04:08 UTC, Willard Dawson
Details
libopcodes.la (libopcodes.la,980 bytes, text/plain)
2009-12-29 04:11 UTC, Willard Dawson
Details
Patch to parse include statements in ld.so.conf (revdep-rebuild.298651.patch,1.18 KB, patch)
2010-02-04 15:52 UTC, Paul Varner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2009-12-28 08:53:57 UTC
every revdep-rebuild force gentoo to rebuild sys-devel/binutils-2.20. in addtion to this "eclean-pkg -d" throws following errors: "'/usr/bin/eclean-pkg-2.6' does not exist"


emerge --info
#####################

Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9700_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 28 Dec 2009 07:30:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/X11/Sessions/awesome /etc/X11/Sessions/dwm /etc/X11/xorg.conf /etc/apache2/httpd.conf /etc/conf.d/hwclock /etc/conf.d/keymaps /etc/fstab /etc/make.conf /etc/xdg/openbox/autostart.sh /etc/xdg/openbox/menu.xml /etc/xdg/openbox/rc.xml /etc/xdg/openbox/start /usr/share/X11/xkb /usr/share/config /usr/share/xsessions/openbox.desktop /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="de en vi"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/devnull /usr/portage/local/layman/ibormuth /usr/portage/local/layman/java-overlay /usr/portage/local/layman/pro-audio /usr/portage/local/layman/scarabeus /usr/portage/local/layman/enlightenment /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/gnome /usr/portage/local/layman/science /usr/portage/local/local-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi adns afs aim alsa amd64 ao apache2 ass atm audio audiofile bash-completion beagle berkdb bidi bluetooth bzip2 cairo caps cdda cdio cdparanoia cdr cgi cjk cli clisp consolekit cracklib crypt cscope css csv cups curl curlwrappers cvs dbus dc1394 dga dhcp dhcpcd dia dirac directfb dmx dri dts dv dvd dvdr dvi emacs enca encode enscript erandom exif expat extras faac faad fam fastcgi fbcon ffmpeg firefox flac flash fortran ftp fuse gcj gd gdbm geoip ggi gif gimp git glib gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gs gstreamer gtk gzip hal hash hddtemp highlight httpd iconv icq icu idn ieee1394 imagemagick imap imlib ipv6 jabber jack java java6 javascript jingle joystick jpeg jpeg2k kde kerberos lame lapack latex lcms ldap libcaca libwww live logrotate lua lzo mad maildir matroska md5sum memlimit mhash midi mikmod mime mjpeg mmap mmx mmxext mng mono motif mp3 mp4 mpeg mplayer msn mudflap mule multilib musepack mysql nas nautilus ncurses network networkmanager nfs nls nptl nptlonly nsplugin nvidia ogg ogg123 openal openexr opengl openmp oss pam pcmcia pcre pdf perl php pic pidgin png posix postgres ppds ps pulseaudio python qt3support qt4 quicktime radio rar raw rdesktop readline reflection rss rtsp ruby samba sasl savedconfig schroedinger sdl sdl-image session sip slang slp smp soap sockets sox spamassassin speex spell spl sqlite sse sse2 ssl ssse3 startup-notificatio stream stun subversion svg swat sysfs syslog sysvipc tcl tcpd theora threads tidy tiff timidity tk tokenizer truetype ucs2 udev unicode urandom usb userlocales v4l v4l2 vcd vhosts video vim-syntax vlc vlm vnc vorbis wav wavpack webkit wifi wma wmf wxwidgets x264 xattr xcb xcomposite xft xinerama xinetd xml xmlrpc xorg xpm xprint xscreensaver xsl xulrunner xv xvid xvmc yahoo zip zlib zsh-completion" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES=" actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en vi" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev vga vmware" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always

Steps to Reproduce:
1. emerge-sync
2. emerge -uDN world
3. revdep-rebuild

Actual Results:  
 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 36% ]  *   broken /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20/libbfd.la (requires -liberty)
 *   broken /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20/libopcodes.la (requires -liberty)
[ 100% ]                 
 * Generated new 3_broken.rr
 * Assigning files to packages
 *   /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20/libbfd.la -> sys-devel/binutils
 *   /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20/libopcodes.la -> sys-devel/binutils
 * Generated new 4_raw.rr and 4_owners.rr
 * Cleaning list of packages to rebuild
 * Generated new 4_pkgs.rr
 * Assigning packages to ebuilds
 * Generated new 4_ebuilds.rr
 * Evaluating package order
 * Generated new 5_order.rr
 * All prepared. Starting rebuild
emerge --oneshot  sys-devel/binutils:0
..........
Calculating dependencies... done!
Comment 1 Rafał Mużyło 2009-12-28 11:50:28 UTC
Attach that la file.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-12-28 12:38:03 UTC
The eclean-pkg issue is unrelated. Please file a new bug report for each separate issue - this is a bug tracker and not a forum.

Maybe run `emerge lafilefixer && lafilefixer --justfixit' too.
Comment 3 Willard Dawson 2009-12-29 04:06:59 UTC
(In reply to comment #2)
> The eclean-pkg issue is unrelated. Please file a new bug report for each
> separate issue - this is a bug tracker and not a forum.
> 
> Maybe run `emerge lafilefixer && lafilefixer --justfixit' too.
> 

I have the same revdep-rebuild issue with sys-devel/binutils-2.20. I tried lafilefixer - both libbfd.la and libopcodes.la are "already clean." Per comment #1, I will attach both la files.
Comment 4 Willard Dawson 2009-12-29 04:08:21 UTC
Created attachment 214517 [details]
libbfd.la
Comment 5 Willard Dawson 2009-12-29 04:11:46 UTC
Created attachment 214519 [details]
libopcodes.la
Comment 6 Willard Dawson 2009-12-29 04:13:21 UTC
I should include this, I suppose:

# emerge --info
Portage 2.1.7.16 (default/linux/x86/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.30-gentoo-r6 i686)                                                                      
=================================================================               
System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Pentium-R-_M_processor_2.00GHz-with-gentoo-2.0.1                                                             
Timestamp of tree: Mon, 28 Dec 2009 22:00:02 +0000                              
app-shells/bash:     4.0_p35                                                    
dev-java/java-config: 2.1.10                                                    
dev-lang/python:     2.5.4-r3, 2.6.4, 3.1.1-r1                                  
dev-python/pycrypto: 2.1.0                                                      
dev-util/cmake:      2.8.0                                                      
sys-apps/baselayout: 2.0.1                                                      
sys-apps/openrc:     0.6.0                                                      
sys-apps/sandbox:    2.2                                                        
sys-devel/autoconf:  2.13, 2.65                                                 
sys-devel/automake:  1.5-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1       
sys-devel/binutils:  2.20                                                       
sys-devel/gcc-config: 1.4.1                                                     
sys-devel/libtool:   2.2.6b                                                     
virtual/os-headers:  2.6.30-r1                                                  
ACCEPT_KEYWORDS="x86 ~x86"                                                      
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 Nessus-EULA sun-bcla-java-vm"             
CBUILD="i686-pc-linux-gnu"                                                      
CFLAGS="-march=i686 -O2 -pipe -ggdb"                                            
CHOST="i686-pc-linux-gnu"                                                       
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                      
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"                                                 
CXXFLAGS="-march=i686 -O2 -pipe -ggdb"                                          
DISTDIR="/usr/portage/distfiles"                                                
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                 
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                           
LDFLAGS="-Wl,-O1"                                                               
MAKEOPTS=""                                                                     
PKGDIR="/usr/portage/packages"                                                  
PORTAGE_CONFIGROOT="/"                                                          
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                  
PORTAGE_TMPDIR="/var/tmp"                                                       
PORTDIR="/usr/portage"                                                          
PORTDIR_OVERLAY="/usr/local/portage"                                            
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                  
USE="3dnow 3dnowext X a52 aac acl acpi aiglx alsa apache2 apm ati audiofile avahi avi bash-completion berkdb bitmap-fonts bzip2 cairo caps cardbus cdio cdr cli consolekit cracklib crypt ctype cups cxx dba dbtool dbus digitalradio diskio djvu dri dts dvdread eds emboss encode esd ethereal exif expat fastbuild ffmpeg fftw fglrx foomaticdb force-cgi-redirect fortran ftp fuse gamin gd gdbm gif glib glitz glut gmp gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imlib ipv6 ithreads jack java jpeg kde kerberos kqemu lcms ldap libclamav libg++ libwww lirc live lm_sensors lua mad madwifi matroska mdnsresponder-compat memlimit mhash mikmod mmx mmxext mng modules mono motif mozilla mp3 mpeg mudflap mysql ncurses netboot netjack networking nforce2 nls nptl nptlonly nsplugin nvidia ocaml ogg oggvorbis opengl openmp oss pam pango pch pcmcia pcre pdf pdflib pear perl php pmu png policykit portaudio posix pppd pulseaudio python qt qt3support qtmt quicktime readline reflection ruby samba sasl sdl session simplexml slang sndfile snmp soap sockets spell spl sql sqlite sse sse2 ssl svg sysfs tcl tcltk tcpd theora threads threadsafe tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode utempter vorbis webkit wifi win32codecs x86 xanim xinerama xml xmlrpc xorg xscreensaver xsl xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FOO2ZJS_DEVICES="hp2600n" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Brandon Penglase 2009-12-29 15:44:53 UTC
Same here, lafilefixer reports already clean:
# lafilefixer /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20               
/usr/lib64/binutils/x86_64-pc-linux-gnu/2.20/libbfd.la already clean, skipping update.
/usr/lib64/binutils/x86_64-pc-linux-gnu/2.20/libopcodes.la already clean, skipping update.

--
My emerge --info:
Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.32-zen4-2 x86_64)
=================================================================
System uname: Linux-2.6.32-zen4-2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 29 Dec 2009 14:45:02 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=core2 -D_FILE_OFFSET_BITS=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com http://mirror.datapipe.net/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.chem.wisc.edu/gentoo"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=30"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex 3dnowext acl acpi amd64 apache2 asterisk avi bzip2 bzlib cdr clamav cli cracklib crypt ctype cups cxx dba dbus dga dri dts dv dvd dvdr dvdread fam firefox flac foomatic foomaticdb fortran ftp gd gdbm gif gmp gnutls gpm gtk2 hal iconv ieee1394 imap imlib ipv6 ivtv java jpeg ldap libflt libwww lm_sensors lsapsam maildir mmt mmx modules mpeg mpi mudflap multilib mysql ncurses nls nptl nptlonly nss_ldap oggvorbis opengl opengl2 openldap openmp pam pam_ldap pcre perl php pnp posix ppds python qt3support quicktime readline reflection rtc samba sasl sdl server session snmp sockets spell spl sse sse2 ssl sysfs tcpd threads tiff transcode unicode usb usb2 user-homedirs v4l2 vda video videos virtual-users vorbis winbind xine xml xml2 xosl xv xvid zaptel zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="en_US en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 8 Brandon Penglase 2009-12-29 15:47:35 UTC
Whoops, forgot to mention this is a new install as of last night.
Comment 9 William Keaney 2009-12-30 07:33:55 UTC
Same problem here, x86_64, new build.
I have tried lafilefixer, and I have tried renaming the "broken" files and re-emerging.  The freshly-built files still come up as broken in revdep-rebuild.
Comment 10 William Keaney 2009-12-31 02:40:20 UTC
Tried downgrading libtool to 2.2.6a, which is what I'm running on a functional amd64 system.  No improvement.
I have binutils-2.20, gentoolkit-0.3.0_rc7, python-2.6.4  all installed on both my malfunctioning and my working system.
Since libiberty's libraries are getting installed to the correct location, I have a feeling revdep-rebuild is reporting a false positive.  However, I am not sure /why/ yet.
Comment 11 William Keaney 2009-12-31 16:49:18 UTC
It looks like /etc/env.d/05binutils is missing a line:
LDPATH=/usr/x86_64-pc-linux-gnu/lib

This was the only difference in this file between my malfunctioning and working systems, and adding it followed by an env-update resolved the revdep-rebuild problem.

I don't know what provides this file - it's not owned by any package.
Comment 12 William Keaney 2009-12-31 17:07:52 UTC
sys-devel/binutils-config-2 removes the LDPATH variable from /etc/env.d/05binutils and puts the data from it in /etc/ld.conf.d/05binutils.  
However, it looks like env-update and/or revdep-rebuild aren't processing this directory, so it doesn't make it into the LDPATH when revdep-rebuild is run.

Downgrading to binutils-config-1.9-r4 works as a temporary measure.
Comment 13 Graynder 2010-01-01 19:28:28 UTC
My system is not x86_64 , but i have the same problem

#emerge --info
Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.11-r1, 2.6.32.2-gr i686)
=================================================================                            
System uname: Linux-2.6.32.2-gr-i686-Intel-R-_Core-TM-2_Duo_CPU_E7400_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 01 Jan 2010 17:30:01 +0000                                               
app-shells/bash:     4.0_p35                                                                     
dev-lang/python:     2.6.4, 3.1.1-r1                                                             
dev-util/cmake:      2.8.0                                                                       
sys-apps/baselayout: 2.0.1                                                                       
sys-apps/openrc:     0.6.0                                                                       
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -msse4.1 -mfpmath=sse,387 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -msse4.1 -mfpmath=sse,387 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo-mirror.spb.ru/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa bootstrap branding bzip2 cairo cdda cddb cdr cli consolekit cracklib cups cxx dbus djvu dri dts dvd dvdr eds emboss encode evo fam ffmpeg firefox flac fontconfig gdbm gif gnutls gpm gstreamer iconv jpeg jpeg2k kde lame libnotify mad matroska mikmod mmx modules mp3 mp4 mpeg mysql ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf png ppds pppd qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads thunar tiff truetype unicode usb vorbis web win32codecs x264 x86 xcomposite xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache 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 rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
-------------------------------------------------------------------------
#revdep-rebuild

* Checking dynamic linking consistency
[ 40% ] * broken /usr/lib/binutils/i686-pc-linux-gnu/2.20/libbfd.la (requires -liberty)
* broken /usr/lib/binutils/i686-pc-linux-gnu/2.20/libopcodes.la (requires -liberty)
[ 100% ]
* Generated new 3_broken.rr
* Assigning files to packages
* /usr/lib/binutils/i686-pc-linux-gnu/2.20/libbfd.la -> sys-devel/binutils
* /usr/lib/binutils/i686-pc-linux-gnu/2.20/libopcodes.la -> sys-devel/binutils
* Generated new 4_raw.rr and 4_owners.rr
* Cleaning list of packages to rebuild
* Generated new 4_pkgs.rr
* Assigning packages to ebuilds
* Generated new 4_ebuilds.rr
* Evaluating package order
* Generated new 5_order.rr
* All prepared. Starting rebuild
emerge --oneshot sys-devel/binutils:0
  
Comment 14 SpanKY gentoo-dev 2010-01-02 03:49:24 UTC
sounds like revdep-rebuild is broken

/usr/$CTARGET/lib/ should contain a libiberty.a symlink to /usr/lib/binutils/$CTARGET/<ver>/libiberty.a and /etc/ld.so.conf* should mention /usr/$CTARGET/lib/
Comment 15 Willard Dawson 2010-01-04 03:04:48 UTC
(In reply to comment #14)
> sounds like revdep-rebuild is broken
> 
> /usr/$CTARGET/lib/ should contain a libiberty.a symlink to
> /usr/lib/binutils/$CTARGET/<ver>/libiberty.a and /etc/ld.so.conf* should
> mention /usr/$CTARGET/lib/
> 

# ls -l /usr/i686-pc-linux-gnu/lib/libiberty.a
lrwxrwxrwx 1 root root 52 Jan  3 20:50 /usr/i686-pc-linux-gnu/lib/libiberty.a -> /usr/lib/binutils/i686-pc-linux-gnu/2.20/libiberty.a

# grep '/usr/i686-pc-linux-gnu/lib' /etc/ld.so.conf /etc/ld.so.conf.d/*
/etc/ld.so.conf.d/05binutils.conf:/usr/i686-pc-linux-gnu/lib

...

So, where does that leave me?

Comment 16 SpanKY gentoo-dev 2010-01-05 01:14:12 UTC
you wait for revdep-rebuild to be fixed.  the output you've shown looks correct to me.
Comment 17 Benedict Holysword 2010-01-05 15:33:49 UTC
I confirm this behavior of revdep-rebuild for my machine
"Linux kuroiryu 2.6.32-zen2 #1 ZEN SMP PREEMPT Fri Dec 25 10:17:01 BRST 2009 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz GenuineIntel GNU/Linux"

I'm using ~amd64 flag with completely up-to-date system (just merged everything with emerge -aueND world)

In fact it presented a similar behavior with a lot of packages, but I managed to solve it by unmerging and merging them again. I cannot do that for binutils for obvious reasons.
Comment 18 Roman Gruber 2010-01-07 15:04:20 UTC
(In reply to comment #17)
> I confirm this behavior of revdep-rebuild for my machine

localhost ~ # revdep-rebuild --ignore
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 38% ]  *   broken /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20/libbfd.la (requires -liberty)
 *   broken /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20/libopcodes.la (requires -liberty)
[ 100% ]                 
 * Generated new 3_broken.rr
 * Assigning files to packages
 *   /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20/libbfd.la -> sys-devel/binutils
 *   /usr/lib64/binutils/x86_64-pc-linux-gnu/2.20/libopcodes.la -> sys-devel/binutils
 * Generated new 4_raw.rr and 4_owners.rr
 * Cleaning list of packages to rebuild
 * Generated new 4_pkgs.rr
 * Assigning packages to ebuilds
 * Generated new 4_ebuilds.rr
 * Evaluating package order
 * Generated new 5_order.rr
 * All prepared. Starting rebuild
emerge --oneshot   sys-devel/binutils:0
..........
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-devel/binutils-2.20


localhost ~ # uname -a
Linux localhost 2.6.32-tuxonice_13_Dezember_2009 #1 SMP Sun Dec 13 12:22:20 CET 2009 x86_64 Intel(R) Core(TM)2 Duo CPU T9500 @ 2.60GHz GenuineIntel GNU/Linux


localhost ~ # uname -a
Linux localhost 2.6.32-tuxonice_13_Dezember_2009 #1 SMP Sun Dec 13 12:22:20 CET 2009 x86_64 Intel(R) Core(TM)2 Duo CPU T9500 @ 2.60GHz GenuineIntel GNU/Linux
localhost ~ # ^C
localhost ~ # emerge --info
Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-tuxonice_13_Dezember_2009 x86_64)
=================================================================
System uname: Linux-2.6.32-tuxonice_13_Dezember_2009-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9500_@_2.60GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 07 Jan 2010 06:15:02 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA DOOM3 PUEL RTCW RTCW-ETEULA DLJ dlj-1.1 EULA as-is"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://ftp.first-world.info/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://mirror.netcologne.de/gentoo/  ftp://ftp.vectranet.pl/gentoo/ http://distfiles.gentoo.org/   ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://distro.ibiblio.org/pub/Linux/distributions/gentoo/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo"
LANG="en"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/sunrise /usr/local/portage/layman/gnome /usr/local/portage/layman/roman"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="64bit 7zip X Xaw3d a52 aac aalib acl acpi alsa amd64 amr amrnb amrwb ao archive ares aspell atmo avahi bash-completion beagle berkdb bidi binfilter bittorrent bl blender-game branding brasero bzip2 cairo cdda cddax cddb cdio cdparanoia cdr cdrom chm clamav clamd clamdtop cli consolekit cracklib crypt ctypes-python cups curl custom-optimization cxx dbus dc1394 device-mapper devil dga dia dirac directfb dmraid dmx dri dts dv dvb dvd dvdr eds emboss emovix enca encode epiphany esd evo exif expat faac faad fam fat fbcon ffmpeg fftw firefox flac flickr flite fluidsynth fontconfig fortran ftp fts3 gadu gcj gcrypt gdbm gdu geoip ggi gif git glade glitz gmp gmplayer gnome gnutls gpm groovy groupwise gsm gstreamer gtk guile gzip-el hal hddtemp hfs http iconv id3 id3tag idn ieee1394 imagemagick imlib inkjar inotify jabber jack java javascript jbig jfs joystick jpeg jpeg2k kate krb4 ladspa lame lasi latex lcms libass libcaca libnl libnotify libproxy libsamplerate libssh2 libsysfs libtiger libv4l2 live lm_sensors lua lvm lvm1 lzma lzo mad matroska md5sum md5sum-external meanwhile metalink midi mikmod mjpeg mmx mmxext mng modplug modules mono moonlight motif mp3 mp4 mpeg mplayer mtp mudflap multilib musepack musicbrainz mysql nas nautilus ncurses networking nntp nptl nptlonly nsplugin ntfs nut nuv odbc odk ogg openal opencore-amr openexr opengl openmp openssl optimisememory optimized-qmake osc oss pam pango pcre pdf perl pidgin pkcs11 plotutils png policykit postproc postscript ppds pppd prediction pulseaudio pvr python qt3 qt3support qt4 quicktime radio readline redland reflection reiser4 reiserfs rle rtsp ruby sasl schroedinger sdl sdl-image session shine shout silc sip skins skype slang smi smp sndfile soundex soundtouch sox speex spell spl spoof-source sql sse sse2 sse3 ssl ssse3 startup-notification stream subversion svg sysfs taglib tcl tcpd templates theora threads thunar tiff tk toolkit-scroll-bars truetype twolame udev unicode upnp usb v4l v4l2 vamp vcd vcdinfo vcdx vdpau vhook vlm vorbis wav wavpack webkit websockets wma wma-fixed wmf wxwidgets wxwindows x264 xanim xattr xcb xcomposite xfs xft xine xinerama xml xmp xorg xosd xpsmall xulrunner xv xvid xvmc yv12 zephyr zlib zvbi" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache 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 rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics keyboard mouse wacom joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en " RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS=" vesa nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 19 Dirk Gouders 2010-01-08 11:14:34 UTC
(In reply to comment #11)
> It looks like /etc/env.d/05binutils is missing a line:
> LDPATH=/usr/x86_64-pc-linux-gnu/lib

This hint helped me to solve this problem on my machine on which I ran
a `emerge -DuN', recently:

On my machine, the symbolic links in /usr/x86_64-pc-linux-gnu/lib were
all broken, because they still pointed to targets of version 2.18 of binutils.
After I fixed the symbolic links to point the respective targets in
/usr/lib64/binutils/x86_64-pc-linux-gnu/2.20/, revdep-rebuild once again
reinstalled binutils-2.20 and after that run everything seems to be clean.
Comment 20 Willard Dawson 2010-01-09 02:47:00 UTC
(In reply to comment #12)
> sys-devel/binutils-config-2 removes the LDPATH variable from
> /etc/env.d/05binutils and puts the data from it in /etc/ld.conf.d/05binutils.  
> However, it looks like env-update and/or revdep-rebuild aren't processing this
> directory, so it doesn't make it into the LDPATH when revdep-rebuild is run.
> 
> Downgrading to binutils-config-1.9-r4 works as a temporary measure.
> 

I don't have /etc/ld.conf.d at all.
Comment 21 Christian 2010-01-11 10:08:48 UTC
added
=sys-devel/binutils-config-2
to /etc/portage/package.mask did 
emerge --update --newuse --deep world
than
sys-devel/binutils-config-1.9-r4
was build
did revdep-rebuild and binutils 2.20 was rebuilt and another revdep-rebuild showed no errors anymore.

So thanks for the tip with using an older binutils.
Comment 22 Boney McCracker 2010-01-26 13:24:51 UTC
(In reply to comment #12)
> sys-devel/binutils-config-2 removes the LDPATH variable from
> /etc/env.d/05binutils and puts the data from it in /etc/ld.conf.d/05binutils.  
> However, it looks like env-update and/or revdep-rebuild aren't processing this
> directory, so it doesn't make it into the LDPATH when revdep-rebuild is run.

I agree.
Comment 23 Juergen Rose 2010-01-26 16:35:27 UTC
I have the same problem here at one new computer. binutils-config-2 is installed at Jan 20th and at Jan 21th. LDPATH=/usr/x86_64-pc-linux-gnu/lib is missing in /etc/env.d/05binutils and /etc/ld.so.conf.d/05binutils.conf contains only the line
/usr/x86_64-pc-linux-gnu/lib
but no LDPATH=/usr/x86_64-pc-linux-gnu/lib.

On a second rather similar amd64 computer binutils-config-2 was installed at Dec 21st, Dec 23rd and Jan 18th LDPATH=/usr/x86_64-pc-linux-gnu/lib is contained /etc/env.d/05binutils and there is no /etc/ld.so.conf.d/05binutils.conf and revdep-rebuild has no problems with binutils.
Comment 24 Boney McCracker 2010-01-28 13:25:38 UTC
Now that you mention it, I have the same situation.

Two similar machines with binutils-config-2. the working one is set up with LDPATH in /etc/env.d/05binutils.  The broken one has it in /etc/ld.so.conf.d/05binutils.conf.

Moreover, today's update of binutils changed nothing on the working one, and erased my work-around LDPATH entry from env.d on the broken one.

So, it would seem we have two issues here -- the first being a bug and the second possibly being intentional and a good thing:

a) env-update or revdep-rebuild is not processing the new /etc/ld.so.conf.d/

b) binutils-config-2 was modified to use /etc/ld.so.conf.d/ without a release bump.
Comment 25 Boney McCracker 2010-01-28 14:25:32 UTC
On my working and broken systems, I initiated a revdep-rebuild and then interrupted it (CTRL+C) when it reported it had "Generated new 2_ldpath.rr", so I could examine the files it is working with.

------ broken -----------------------------------
system1 # cat /var/cache/revdep-rebuild/0_env.rr 
SEARCH_DIRS="/bin
include                           <----- [?]
ld.so.conf.d/*.conf               <----- [?]
/lib
/opt/bin
/sbin
/usr/bin
/usr/games/bin
/usr/games/lib
/usr/i686-pc-linux-gnu/gcc-bin/4.4.2
/usr/lib
/usr/libexec


------ working -----------------------------------
system2 # cat /var/cache/revdep-rebuild/0_env.rr
SEARCH_DIRS="/bin
/lib
/opt/bin
/sbin
/usr/bin
/usr/games/bin
/usr/games/lib
/usr/i486-pc-linux-gnu/gcc-bin/4.1.2
/usr/i686-pc-linux-gnu/gcc-bin/4.4.2
/usr/i686-pc-linux-gnu/lib             <--------- [path is present]
/usr/lib
/usr/libexec


My guess would be that {
    include
    ld.so.conf.d/*.conf
}

... is not getting expanded or interpreted as intended, but I have no idea where that should be happening.
Comment 26 SpanKY gentoo-dev 2010-01-28 20:46:36 UTC
seems revdep-rebuild doesnt support the full ld.so.conf syntax
Comment 27 Paul Varner (RETIRED) gentoo-dev 2010-02-01 19:37:40 UTC
vapier: Do you have a pointer to where the full syntax is documented?  All I can find is from the ldconfig man page that states it is a "File containing a list of colon, space, tab, newline, or  comma-separated  directories  in which to search for libraries."
Comment 28 Boney McCracker 2010-02-01 22:25:10 UTC
(In reply to comment #27)
> vapier: Do you have a pointer to where the full syntax is documented?  All I
> can find is from the ldconfig man page that states it is a "File containing a
> list of colon, space, tab, newline, or  comma-separated  directories  in which
> to search for libraries."
> 

This is not a "list of directories".  "include" is not a directory.  Nor is "ld.so.conf.d/*.conf".

It seems to me the format of the file is not the problem; the problem is that the code which is supposed to be populating 0_env.rr is failing to actually add the contents of ld.so.conf.d/ and is instead adding the literal "include\n ld.so.conf.d/*conf".

------ broken -----------------------------------
system1 # cat /var/cache/revdep-rebuild/0_env.rr 
SEARCH_DIRS="/bin
include                           <----- [?]
ld.so.conf.d/*.conf               <----- [?]
/lib
/opt/bin
/sbin
/usr/bin
/usr/games/bin
/usr/games/lib
/usr/i686-pc-linux-gnu/gcc-bin/4.4.2
/usr/lib
/usr/libexec
Comment 29 Paul Varner (RETIRED) gentoo-dev 2010-02-01 22:42:45 UTC
You are correct that revdep-rebuild is not parsing the file correctly.  The reason it is not parsing coreectly is because it assumes the file is a list of directories as the ldconfig man page describes.  In order to fix revdep-rebuild, I need to know what the the syntax of the file can be which is why I asked for the pointer to where the syntax of the file is documented.
Comment 30 SpanKY gentoo-dev 2010-02-03 01:55:56 UTC
the syntax is:
include <glob pattern relative to /etc>

for glob pattern syntax, see `man glob` ... the glob() function is called with no flags, so you can ignore the extended stuff
Comment 31 Valeriy V. Argunov 2010-02-04 12:35:39 UTC
The same problem. Waiting for resolution.
Comment 32 Paul Varner (RETIRED) gentoo-dev 2010-02-04 15:52:06 UTC
Created attachment 218421 [details, diff]
Patch to parse include statements in ld.so.conf

Quick and dirty patch.  This patch works with both stable and unstable versions of revdep-rebuild. Note: it will break if there are paths with spaces in them in the ld.so.conf file.
Comment 33 SpanKY gentoo-dev 2010-02-04 16:30:28 UTC
Valeriy: dont post comments like that.  you add nothing useful to the discussion and only serve to annoy developers that would otherwise be working on the problem.  if you have something useful to contribute, then feel free to do so.  otherwise, please wait patiently like everyone else.

Paul: the only magic id is "include".  if the line doesnt have that as the first token, i'm pretty sure you're supposed to treat the entire line as one path.
Comment 34 Paul Varner (RETIRED) gentoo-dev 2010-02-05 16:26:40 UTC
The patch works fine on my system with the issue. Additionally, revdep-rebuild currently doesn't support paths with spaces, so that part is currently not an issue.
Comment 35 Boney McCracker 2010-02-05 17:50:18 UTC
Looks good to me, Paul (and thank you).

I'm not clear on whether it is legal for an "include" entry in ld.so.conf to be split over two lines.  I have seen it showing up on one line and on two lines. 

Like this:
include ld.so.conf.d/*.conf

And like this:
include
ld.so.conf.d/*.conf

I know Paul's current parsing logic will handle either, but if it were ALWAYS on one line (or ALWAYS on two), it might be easier to accommodate paths having spaces.
Comment 36 SpanKY gentoo-dev 2010-02-05 21:00:55 UTC
if it's split on two lines, whatever created that file is broken.  not a revdep-rebuild problem.
Comment 37 Zac Medico gentoo-dev 2010-02-05 21:06:08 UTC
(In reply to comment #36)
> if it's split on two lines, whatever created that file is broken.  not a
> revdep-rebuild problem.

I know that `eselect env update` does/did that. I don't know if it's been fixed. Portage's env-update/update-env handles it correctly.
Comment 38 Christian 2010-02-18 10:05:38 UTC
Can we have this patch included soon? It is very annoying and whenever you build a new system (or rebuild full system) you have to first patch that file. Otherwise you don't know if all is ok in your system.

revdep-rebuild is a very important tool in every gentoo system (at least if you ask me) and it should have high priority that it works and not fails completely.

The bug is now more than 2 month old. And there is a fix for 2 weeks.

What can we do to get it in portage finally?

I really love gentoo and have several sheevaplugs running with it. It is much better than the original ubuntu.
Comment 39 Andrew Brouwers 2010-02-19 12:58:27 UTC
(In reply to comment #38)
> Can we have this patch included soon? It is very annoying and whenever you
> build a new system (or rebuild full system) you have to first patch that file.
> Otherwise you don't know if all is ok in your system.
> 
> revdep-rebuild is a very important tool in every gentoo system (at least if you
> ask me) and it should have high priority that it works and not fails
> completely.
> 
> The bug is now more than 2 month old. And there is a fix for 2 weeks.
> 
> What can we do to get it in portage finally?
> 
> I really love gentoo and have several sheevaplugs running with it. It is much
> better than the original ubuntu.
> 

I had a new system install yesterday, and after fully updating and using rc9 from yesterdays update, binutils does not get reported while running through revdep-rebuild.

Any chance to update + confirm that the behavior is resolved?
Comment 40 Christian 2010-02-19 13:44:53 UTC
I checked it on AMD64, x86 and ARM with rc9.

On all the issue is gone and revdep-rebuild does not have any problems anymore.

Thanks!
Comment 41 Paul Varner (RETIRED) gentoo-dev 2010-02-19 15:26:14 UTC
Released in gentoolkit-0.3.0_rc9 and gentoolkit-0.2.4.6
Comment 42 Boney McCracker 2010-02-20 00:47:47 UTC
Thanks, Paul.