Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 400488 Details for
Bug 545006
sys-libs/musl: expand ldconfig support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch against ldconfig-0.1
ldconfig.patch (text/plain), 1.35 KB, created by
Felix Janda
on 2015-04-03 16:17:11 UTC
(
hide
)
Description:
Proposed patch against ldconfig-0.1
Filename:
MIME Type:
Creator:
Felix Janda
Created:
2015-04-03 16:17:11 UTC
Size:
1.35 KB
patch
obsolete
>--- ldconfig-0.1 2014-11-19 21:56:11.923329891 -0200 >+++ ldconfig-0.2 2015-04-03 17:22:18.071138488 -0200 >@@ -10,16 +10,6 @@ > > LDSO_CONF_DIR=$(dirname $LDSO_CONF) > >-LDSO_PATH=$(ls /lib/ld-musl-*.so.1) >-if [[ ! -e $LDSO_PATH ]]; then >- echo "$LDSO_PATH not found" >&2 >- exit 1 >-fi >- >-LDSO_ARCH=$(basename $LDSO_PATH) >-LDSO_NAME=${LDSO_ARCH%.so.1} >-ETC_LDSO_PATH=/etc/${LDSO_NAME}.path >- > VERBOSE=0 > > get_options() { >@@ -33,7 +23,7 @@ > ROOT=$OPTARG > ;; > f) >- LDSOCONF=$OPTARG >+ LDSO_CONF=$OPTARG > ;; > \?) > echo "Invalid option: -$opt" >&2 >@@ -106,7 +96,7 @@ > fi > fi > done >- done < $LDSO_CONF >+ done < $1 > > echo $drs > } >@@ -121,16 +111,25 @@ > } > > get_options "$@" >-drs=$(read_ldso_conf) >+drs=$(read_ldso_conf "$LDSO_CONF") >+for f in $LDSO_CONF.d/*; do >+ drs="$drs $(read_ldso_conf "$f")" >+done > drs=$(sanitize $drs) > >+LDSO_PATH=$(readelf -l /bin/bash | grep -o '\/lib\/ld-musl-.*\.so\.1') >+if [[ ! -e $LDSO_PATH ]]; then >+ echo "$LDSO_PATH not found" >&2 >+ exit 1 >+fi >+ >+LDSO_ARCH=$(basename $LDSO_PATH) >+LDSO_NAME=${LDSO_ARCH%.so.1} >+ETC_LDSO_PATH=/etc/${LDSO_NAME}.path >+ > X=$(mktemp --tmpdir=/tmp ${LDSO_NAME}.XXXXXX) >-cat << EOF > $X >-# $ETC_LDSO_PATH autogenerated by env-update; make all changes to >-# contents of /etc/env.d directory >-EOF > for d in $drs; do > echo $d >> $X > done >+chmod 644 $X > mv $X $ETC_LDSO_PATH >-
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 545006
:
400100
| 400488