Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 191503

Summary: revdep-rebuild - /bin/grep: Argument list too long
Product: Gentoo Linux Reporter: Bernd Waibel <waebbl>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output of getMaxNEEDEDs.bash
.revdep-rebuild.0_env
.revdep-rebuild.1_files
.revdep-rebuild.2_ldpath
.revdep-rebuild.3_ldd_errors
.revdep-rebuild.3_rebuild
.revdep-rebuild.4_ebuilds
.revdep-rebuild.5_order

Description Bernd Waibel 2007-09-06 15:25:33 UTC
When running the new revdep-rebuild script it occasionally shows grep warnings about a too long argument list:

 * Checking dynamic linking consistency
[ 3% ] /usr/bin/revdep-rebuild: line 547: /bin/grep: Argument list too long
[ 3% ] /usr/bin/revdep-rebuild: line 547: /bin/grep: Argument list too long
[ 3% ] /usr/bin/revdep-rebuild: line 547: /bin/grep: Argument list too long
[ 4% ] /usr/bin/revdep-rebuild: line 547: /bin/grep: Argument list too long
[ 9% ] /usr/bin/revdep-rebuild: line 547: /bin/grep: Argument list too long
[ 17% ] /usr/bin/revdep-rebuild: line 547: /bin/grep: Argument list too long
[ 20% ] /usr/bin/revdep-rebuild: line 547: /bin/grep: Argument list too long
[ 100% ]                 

This happens almost all the time I run the script. I don't count this as a severe bug, but there may be the possibility some files have not properly checked their consistency.


Reproducible: Always

Steps to Reproduce:
1. revdep-rebuild -X -- -a
2.
3.

Actual Results:  
The process completes and it also shows up broken packages when there are some. I'm simply not sure, whether all broken packages are catched or not.


Portage 2.1.3.7 (default-linux/x86/2007.0, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-ck1 i686)
=================================================================
System uname: 2.6.22-ck1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Thu, 06 Sep 2007 11:50:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -mno-tls-direct-seg-refs"
DISTDIR="/mnt/share/download/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages metadata-transfer nostrip parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LINGUAS="de en en_GB en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment /usr/portage/local/layman/xen /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amr apache2 bash-completion berkdb bitmap-fonts bzip2 cairo caps cdr cli cracklib crypt cups curl dbus dga doc dri dts dvd eds emacs encode esd examples exif expat ffmpeg firefox flac fortran gd gdbm gif gnome gnutls gpm gstreamer gtk guile hal iconv idn imagemagick imlib ipv6 jack java javascript jbig joystick jpeg jpeg2k kdeenablefinal lcms libnotify logrotate lua mad mailwrapper midi mikmod mmap mmx mng modplug mono motif mp3 mp4 mpeg mssql mudflap mysql ncurses nls nptl nptlonly nsplugin offensive ogg openal opengl pam pango pcre pdf perl php pic png portaudio pppd python qt3 qt4 readline reflection rle samba sdl session sndfile source speex spell spl sqlite3 sse sse2 ssl startup-notification svg svga tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode urandom usb vcd vidix vorbis win32codecs wmf wxwindows x264 x86 xattr xcomposite xine xinerama xml xorg xpm xprint xrandr xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-06 16:05:09 UTC

*** This bug has been marked as a duplicate of bug 187493 ***
Comment 2 Paul Varner (RETIRED) gentoo-dev 2007-09-13 00:23:44 UTC
Which version of gentoolkit do you have installed?
Comment 3 Bernd Waibel 2007-09-13 13:48:50 UTC
(In reply to comment #2)
> Which version of gentoolkit do you have installed?
> 

I have gentoolkit-0.2.4_pre6 installed.

I already noticed that -X is no longer supported with this version of revdep-rebuild (if this is why you're asking) and the behaviour once trigged by this option is the default by now.

Because I currently don't have any broken packages I made a test some days ago and uninstalled the svgalib package and then ran 'revdep-rebuild --keep-temp --ignore'. Unfortunately I don't have the output any longer but from the output I found 3 files from the .revdep-rebuild.1_files file:
<snippet from .revdep-rebuild.1_files>
/usr/bin/engrave_test
/usr/bin/enhance-config
/usr/bin/enlightenment
/usr/bin/enlightenment-config
/usr/bin/enlightenment_fm
</snippet>
The engrave_test file needs the libvga.so library and also does the enlightenment_fm file. Between this two files the said warning occured. Because enhance-config as well as enlightenment-config are bash scripts, the only file that could have produced the warning is the enlightenment binary.

I then tried and ran the getMaxNEEDEDs.bash script (from bug 187493) with only the 3 files inbetween the two broken files in the 'list' variable within the script. I'll add attachments of the revdep-rebuild output files and the getMaxNEEDEDs.bash output after this comment. Hope this will help you in tackling down the problem.

Please let me know if I can be of more help here.

Also, because this bug is marked as a duplicate to bug 187493 wouldn't it be better to discuss this problem there leaving this bug alone?

Comment 4 Bernd Waibel 2007-09-13 13:52:41 UTC
Created attachment 130817 [details]
Output of getMaxNEEDEDs.bash

The output of the script with the list variable being set to
list=(/usr/bin/enhance-config
/usr/bin/enlightenment
/usr/bin/enlightenment-config)
Comment 5 Bernd Waibel 2007-09-13 13:56:37 UTC
Created attachment 130819 [details]
.revdep-rebuild.0_env
Comment 6 Bernd Waibel 2007-09-13 13:57:18 UTC
Created attachment 130821 [details]
.revdep-rebuild.1_files
Comment 7 Bernd Waibel 2007-09-13 13:57:48 UTC
Created attachment 130823 [details]
.revdep-rebuild.2_ldpath
Comment 8 Bernd Waibel 2007-09-13 13:58:21 UTC
Created attachment 130824 [details]
.revdep-rebuild.3_ldd_errors
Comment 9 Bernd Waibel 2007-09-13 13:58:39 UTC
Created attachment 130825 [details]
.revdep-rebuild.3_rebuild
Comment 10 Bernd Waibel 2007-09-13 13:59:08 UTC
Created attachment 130826 [details]
.revdep-rebuild.4_ebuilds
Comment 11 Bernd Waibel 2007-09-13 14:01:11 UTC
Created attachment 130828 [details]
.revdep-rebuild.5_order

omitting the .revdep-rebuild.4_{package_owner,packages,packages_raw} files and also the .revdep-rebuild.6_status file (its content is '0'). I you want any of those too, please let me know.
Comment 12 Bernd Waibel 2007-09-14 16:14:21 UTC
Since this bug doesn't occur any longer on my machine with the update to gentoolkit-0.2.4_pre7 today (see my comment in bug 187493), I close it.