Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 280503 Details for
Bug 375833
sys-devel/prelink: move prelink.cache into /var
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/cron.daily/prelink patch
prelink.cron-diff (text/plain), 2.25 KB, created by
Alexander Zubkov
on 2011-07-21 07:41:43 UTC
(
hide
)
Description:
/etc/cron.daily/prelink patch
Filename:
MIME Type:
Creator:
Alexander Zubkov
Created:
2011-07-21 07:41:43 UTC
Size:
2.25 KB
patch
obsolete
>--- prelink.old 2011-07-21 11:31:29.099163574 +0400 >+++ prelink 2011-07-21 11:37:44.906395393 +0400 >@@ -2,6 +2,7 @@ > > . /etc/conf.d/prelink > log="/var/log/prelink.log" >+PRELINK_CACHE=${PRELINK_CACHE:-/var/lib/misc/prelink.cache} > > case $PRELINKING in > yes|no);; >@@ -13,11 +14,11 @@ > > if [ "$PRELINKING" != yes ]; then > sed -ri '/^[[:space:]]*#?[[:space:]]*KDE_IS_PRELINKED=/s:.*:#KDE_IS_PRELINKED=1:' /etc/env.d/*kde* 2>/dev/null >- if [ -f /etc/prelink.cache ]; then >- echo /usr/sbin/prelink -uav > ${log} >- /usr/sbin/prelink -uav >> ${log} 2>&1 \ >+ if [ -f "$PRELINK_CACHE" ]; then >+ echo /usr/sbin/prelink -uav -C "$PRELINK_CACHE" > ${log} >+ /usr/sbin/prelink -uav -C "$PRELINK_CACHE" >> ${log} 2>&1 \ > || echo Prelink failed with return value $? >> ${log} >- rm -f /etc/prelink.cache >+ rm -f "$PRELINK_CACHE" > # Restart init if needed > [ -n "$(find `ldd /sbin/init | awk 'NF == 4 { print $3 }'` /sbin/init -ctime -1 2>/dev/null )" ] && /sbin/telinit u > fi >@@ -26,11 +27,11 @@ > > sed -ri '/^[[:space:]]*#?[[:space:]]*KDE_IS_PRELINKED=/s:.*:KDE_IS_PRELINKED=1:' /etc/env.d/*kde* 2>/dev/null > >-if [ ! -f /etc/prelink.cache -o -f /var/lib/misc/prelink.force ] \ >- || grep -q '^prelink-ELF0.[0-2]' /etc/prelink.cache; then >+if [ ! -f "$PRELINK_CACHE" -o -f /var/lib/misc/prelink.force ] \ >+ || grep -q '^prelink-ELF0.[0-2]' "$PRELINK_CACHE"; then > # If cache does not exist or is from older prelink versions or > # if we were asked to explicitely, force full prelinking >- rm -f /etc/prelink.cache /var/lib/misc/prelink.force >+ rm -f "$PRELINK_CACHE" /var/lib/misc/prelink.force > PRELINK_OPTS="$PRELINK_OPTS -f" > date > /var/lib/misc/prelink.full > cp -a /var/lib/misc/prelink.full /var/lib/misc/prelink.quick >@@ -52,8 +53,8 @@ > cp -a /var/lib/misc/prelink.full /var/lib/misc/prelink.quick > fi > >-echo /usr/sbin/prelink -av $PRELINK_OPTS > ${log} >-/usr/sbin/prelink -av $PRELINK_OPTS >> ${log} 2>&1 \ >+echo /usr/sbin/prelink -av -C "$PRELINK_CACHE" $PRELINK_OPTS > ${log} >+/usr/sbin/prelink -av -C "$PRELINK_CACHE" $PRELINK_OPTS >> ${log} 2>&1 \ > || echo Prelink failed with return value $? >> ${log} > # Restart init if needed > [ -n "$(find `ldd /sbin/init | awk 'NF == 4 { print $3 }'` /sbin/init -ctime -1 2>/dev/null )" ] && /sbin/telinit u
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 Raw
Actions:
View
Attachments on
bug 375833
: 280503