Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 565814 Details for
Bug 678348
sys-devel/prelink - /etc/cron.daily/prelink complains when it inspects /sbin/init without first checking to see whether it exists
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use `prelink -p` instead of `ldd` in prelink.cron
prelink.cron.patch (text/plain), 1.37 KB, created by
Enne Eziarc
on 2019-02-19 06:18:54 UTC
(
hide
)
Description:
use `prelink -p` instead of `ldd` in prelink.cron
Filename:
MIME Type:
Creator:
Enne Eziarc
Created:
2019-02-19 06:18:54 UTC
Size:
1.37 KB
patch
obsolete
>--- /mnt/repositories/gentoo/sys-devel/prelink/files/prelink.cron 2015-08-09 01:38:18.000000000 +0100 >+++ /etc/cron.daily/prelink 2019-02-19 05:51:04.086093970 +0000 >@@ -11,15 +11,20 @@ > ionice -c3 -p $$ >/dev/null 2>&1 > renice +19 -p $$ >/dev/null 2>&1 > >+# Restart init if needed >+restart_sysvinit() { >+ local libs=$(prelink -p | awk -n '/^\S/ && p { exit }; /^\/sbin\/init / && p = 1; /^\s/ && p { print $1 };') >+ [ -n "$libs" ] && [ -n "$(find $libs -ctime -1)" ] && /sbin/telinit u >+} >+ > 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 \ > || echo Prelink failed with return value $? >> ${log} >+ restart_sysvinit > rm -f /etc/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 > exit 0 > fi >@@ -55,7 +60,6 @@ > echo /usr/sbin/prelink -av $PRELINK_OPTS > ${log} > /usr/sbin/prelink -av $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 >+restart_sysvinit > > exit 0
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 678348
: 565814