Package: prelink Version: 0.0.20050901-1 Severity: normal Tags: patch
prelink looks for rpm database changes to control its activation but this is mostly pointless in Debian. Better follow dpkg database. Sample patch below, mostly comments, the only important part is 2 instances of /var/lib/rpm/Packages vs /var/lib/dpkg/status. --- /etc/cron.daily/prelink.old 2005-11-08 17:48:24.000000000 +0200 +++ /etc/cron.daily/prelink 2005-11-08 17:49:41.000000000 +0200 @@ -34,11 +34,11 @@ -a "`find /var/lib/misc/prelink.full -mtime -${PRELINK_FULL_TIME_INTERVAL} 2>/dev/null`" \ = /var/lib/misc/prelink.full ]; then # If no more than PRELINK_NONRPM_CHECK_INTERVAL days elapsed from last prelink - # (be it full or quick) and no packages have been upgraded via rpm since then, + # (be it full or quick) and no packages have been touched via dpkg since then, # don't do anything. [ "`find /var/lib/misc/prelink.quick -mtime -${PRELINK_NONRPM_CHECK_INTERVAL:-7} 2>/dev/null`" \ - -a -f /var/lib/rpm/Packages \ - -a /var/lib/rpm/Packages -ot /var/lib/misc/prelink.quick ] && exit 0 + -a -f /var/lib/dpkg/status \ + -a /var/lib/dpkg/status -ot /var/lib/misc/prelink.quick ] && exit 0 date > /var/lib/misc/prelink.quick # If prelink without -q has been run in the last # PRELINK_FULL_TIME_INTERVAL days, just use quick mode --- /etc/default/prelink.old 2005-11-08 17:53:16.000000000 +0200 +++ /etc/default/prelink 2005-11-08 17:54:23.000000000 +0200 @@ -23,18 +23,18 @@ PRELINK_FULL_TIME_INTERVAL=14 # How often should prelink run (in days) even if -# no packages have been upgraded via rpm. +# no packages have been touched via dpkg. # If $PRELINK_FULL_TIME_INTERVAL days have not elapsed # yet since last normal mode prelinking, last # quick mode prelinking happened less than # $PRELINK_NONRPM_CHECK_INTERVAL days ago -# and no packages have been upgraded by rpm +# and no packages have been touched by dpkg # since last quick mode prelinking, prelink # will not do anything. # Change to # PRELINK_NONRPM_CHECK_INTERVAL=0 -# if you want to disable the rpm database timestamp -# check (especially if you don't use rpm/up2date/yum/apt-rpm +# if you want to disable the dpkg database timestamp +# check (especially if you don't use dpkg # exclusively to upgrade system libraries and/or binaries). PRELINK_NONRPM_CHECK_INTERVAL=7 -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14-g741b2252 Locale: LANG=et_EE.ISO-8859-15, LC_CTYPE=et_EE.ISO-8859-15 (charmap=ISO-8859-15) Versions of packages prelink depends on: ii libc6 2.3.5-7 GNU C Library: Shared libraries an ii libelfg0 0.8.5-1 an ELF object file access library ii libselinux1 1.26-1 SELinux shared libraries prelink recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]