First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 172543
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Toolchain Maintainers <toolchain@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Antti Mäkelä <zarhan@iki.fi>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 172543 depends on: Show dependency tree
Bug 172543 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-03-28 10:33 0000
I hadn't even noticed that prelink, after an update, installed a cronjob. My
updating procedure has usually consisted, after emerge -uvDaN world && emerge
--depclean && revdep-rebuild of prelinking with prelink -avmR.

I was wondering, why after every world-run, even if only a few packages got
updated my prelink went through the entire system. Then I found this cronjob:

----
if [ "$PRELINKING" != yes ]; then
  if [ -f /etc/prelink.cache ]; then
    echo /usr/sbin/prelink -uav > /var/log/prelink.log
    /usr/sbin/prelink -uav >> /var/log/prelink.log 2>&1 \
      || echo Prelink failed with return value $? >> /var/log/prelink.log
    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
----

 and then read description at conf.d/prelink

----
# Set this to no to disable prelinking altogether
# (if you change this from yes to no prelink -ua
# will be run next night to undo prelinking)
PRELINKING=no
---

 Checked documentation at http://www.gentoo.org/doc/en/prelink-howto.xml

----
sys-devel/prelink-20060213 and later install a cron job in
/etc/cron.daily/prelink. To enable it, edit the configuration file
/etc/conf.d/prelink. This will run prelink daily in the background, as needed,
saving you running the command manually.
-----

Now, the way I'm understanding the docs, the *intended* functionality is that
you can still run prelink manually instead of cron un-prelinking everything at
next cron-run. Why is there the "prelink -uav"?

Right now I deleted the entire cronscript, but maybe the conf.d/prelink should
contain a third value "manual", which would be the default - so it wouldn't
automatically prelink or un-prelink..I don't want to remember to remove the
cronscript everytime prelink gets updated.

------- Comment #1 From John Brendler 2007-03-28 17:35:41 0000 -------
A second user's perspective.  I like this scrpt!  But I do concur.  I initially
went through the same thought process (although for me it was right after
install, when I read the elog notice in my email).  

One of these two things should be:

either (a) 3 branches in the script: off, manual, and automatic;
or (b) the script should be initially installed commented out

Also, many thanks for fixing the kde lines already! :)

------- Comment #2 From SpanKY 2007-03-30 05:57:36 0000 -------
added to cvs, thanks for the idea !

# Control prelinking behavior in the cronjob.
#  yes - automatically prelink the system
#  no  - automatically un-prelink the system
#  ""  - do nothing at all (user manages)
# (if you change this from yes to no prelink -ua
# will be run next night to undo prelinking)
PRELINKING=""

First Last Prev Next    No search results available      Search page      Enter new bug