Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 108803 Details for
Bug 137313
revdep-rebuild (/bin/sed: Argument list too long)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
revdep-rebuild.patch
revdep-rebuild.patch (text/plain), 2.21 KB, created by
Laurence v/d Elshout
on 2007-01-31 23:19:38 UTC
(
hide
)
Description:
revdep-rebuild.patch
Filename:
MIME Type:
Creator:
Laurence v/d Elshout
Created:
2007-01-31 23:19:38 UTC
Size:
2.21 KB
patch
obsolete
>--- /usr/bin/revdep-rebuild 2006-06-20 03:41:42.000000000 +0200 >+++ /home/laurencevde/revdep-rebuild 2007-01-31 23:38:00.000000000 +0100 >@@ -96,7 +96,6 @@ > then > PRELIMINARY_SEARCH_DIRS="$PRELIMINARY_SEARCH_DIRS $((. /etc/profile.env; echo ${ROOTPATH}:${PATH}) | tr ':' ' ')" > fi >- > # Get the directories from /etc/ld.so.conf > if [ -e /etc/ld.so.conf ] > then >@@ -386,10 +385,21 @@ > echo /lib* /usr/lib* | sed 's/ /:/g' > sed '/^#/d;s/#.*$//' </etc/ld.so.conf > sed 's:/[^/]*$::' <$LIST.1_files | sort -ru >- ) | tr '\n' : | tr -d '\r' | sed 's/:$//' >$LIST.2_ldpath >- echo -e " done.\n ($LIST.2_ldpath)" >+ ) | split -d --suffix-length=1 --line-bytes=120000 - $LIST.2_split >+ # we split the list up, for the unlikely event that it gets bigger than >+ # what the OS can handle for the argument size (typically 128kB on Linux) >+ # Fixes Bug 137313 >+ i=0 >+ while [[ -f $LIST.2_split$i ]] >+ do >+ cat $LIST.2_split$i | tr '\n' : | tr -d '\r' | sed 's/:$//' >$LIST.2_ldpath$i >+ COMPLETE_LD_LIBRARY_PATH$i="$(< $LIST.2_ldpath$i)" 2>/dev/null >+ i=$((i+1)) >+ done >+ >+ echo -e " done.\n ($LIST.2_ldpath*)" > fi >- export COMPLETE_LD_LIBRARY_PATH="$(cat $LIST.2_ldpath)" >+ #export COMPLETE_LD_LIBRARY_PATH="$(cat $LIST.2_ldpath)" > fi > > echo >@@ -406,7 +416,14 @@ > # with complete path (special add ons are rare). > if ldd "$FILE" 2>/dev/null | grep -v "$LD_MASK" | $SONAME_GREP -q "$SONAME_SEARCH" ; then > if $SEARCH_BROKEN ; then >- if LD_LIBRARY_PATH="$COMPLETE_LD_LIBRARY_PATH" ldd "$FILE" 2>/dev/null | grep -v "$LD_MASK" | $SONAME_GREP -q "$SONAME_SEARCH" ; then >+ i=0 >+ # perform the checking until we either run out of COMPLETE_LD_LIBRARY_PATH's, or the file has everything >+ while [[ -n COMPLETE_LD_LIBRARY_PATH$i && $(LD_LIBRARY_PATH="$COMPLETE_LD_LIBRARY_PATH$i" ldd "$FILE" 2>/dev/null | grep -v "$LD_MASK" | $SONAME_GREP -q "$SONAME_SEARCH") ]] >+ do >+ i=$((i+1)) >+ done >+ # if we ran out of COMPLETE_LD_LIBRARY_PATH's, then the file truly misses something >+ if [[ -z COMPLETE_LD_LIBRARY_PATH$i ]] ; then > # FIX: I hate duplicating code > # Only build missing direct dependencies > ALL_MISSING_LIBS=$(ldd "$FILE" 2>/dev/null | sort -u | sed -n 's/ \(.*\) => not found/\1/p' | tr '\n' ' ' | sed 's/ $//' )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 137313
:
90103
|
90999
| 108803