Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 218421 Details for
Bug 298651
revdep-rebuild does not support "include" statements in ld.so.conf
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to parse include statements in ld.so.conf
revdep-rebuild.298651.patch (text/plain), 1.18 KB, created by
Paul Varner (RETIRED)
on 2010-02-04 15:52:06 UTC
(
hide
)
Description:
Patch to parse include statements in ld.so.conf
Filename:
MIME Type:
Creator:
Paul Varner (RETIRED)
Created:
2010-02-04 15:52:06 UTC
Size:
1.18 KB
patch
obsolete
>Index: revdep-rebuild >=================================================================== >--- revdep-rebuild (revision 738) >+++ revdep-rebuild (working copy) >@@ -664,6 +664,25 @@ > einfo "Generated new $FILES_FILE" > fi > } >+parse_ld_so_conf() { >+ # FIXME: not safe for paths with spaces >+ local include >+ for path in $(sed '/^#/d;s/#.*$//' < /etc/ld.so.conf); do >+ if [[ $include = true ]]; then >+ for include_path in $(sed '/^#/d;s/#.*$//' /etc/${path}); do >+ echo $include_path >+ done >+ include="" >+ continue >+ fi >+ if [[ $path != include ]]; then >+ echo $path >+ else >+ include="true" >+ continue >+ fi >+ done >+} > get_ldpath() { > local COMPLETE_LD_LIBRARY_PATH > [[ $SEARCH_BROKEN && $FULL_LD_PATH ]] || return >@@ -676,7 +695,7 @@ > COMPLETE_LD_LIBRARY_PATH=( > /lib* > /usr/lib* >- $(sed '/^#/d;s/#.*$//' < /etc/ld.so.conf) >+ $(parse_ld_so_conf) > $(sed 's:/[^/]*$::' < "$FILES_FILE" | sort -ru) > ) > IFS=':' >@@ -1063,7 +1082,7 @@ > > # Get the directories from /etc/ld.so.conf > if [[ -r /etc/ld.so.conf && -s /etc/ld.so.conf ]]; then >- SEARCH_DIRS+=" "$(sed '/^#/d;s/#.*$//' /etc/ld.so.conf) >+ SEARCH_DIRS+=" "$(parse_ld_so_conf) > fi > > # Set the final variables
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 298651
:
214517
|
214519
| 218421