Package: checkinstall
Version: 1.5.3-3
Severity: grave
Tags: patch
Justification: renders package unusable
Checkinstall creates a script in a temporary directory for execution
by installwatch. Installwatch also uses a temporary directory, which
it removes if it already exists. Checkinstall and installwatch both
use the same algorithm to create a temporary directory name, with the
result that they both use the same temporary directory, so that
installwatch deletes the directory containing checkinstall's script.
There is then nothing for installwatch to execute, resulting in a
failure message:
/usr/bin/installwatch: line 345:
/var/tmp/KIKjLRhMLrIpmlArapqN/installscript.sh: No such file or directory
This can be fixed with certainty by making the temporary directory names
used by checkinstall and installwatch different lengths, as in the
following patch.
=================================================
--- /usr/bin/checkinstall 2004-04-12 13:58:38.000000000 +0100
+++ checkinstall 2006-05-18 19:08:37.000000000 +0100
@@ -656,7 +656,7 @@
# Find a safe TMP_DIR
-TMP_DIR=${BASE_TMP_DIR}/`awk 'BEGIN { srand(); for (i=1;i<21;i++) { a=95;
while (a > 90 && a < 97) { a=65+int(50*rand())}; printf("%c", a) } }'`
+TMP_DIR=${BASE_TMP_DIR}/`awk 'BEGIN { srand(); for (i=1;i<22;i++) { a=95;
while (a > 90 && a < 97) { a=65+int(50*rand())}; printf("%c", a) } }'`
[ -e "$TMP_DIR" ] && rm -rf $TMP_DIR
if [ -e "$TMP_DIR" ]; then
echo
=================================================
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-k7
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Versions of packages checkinstall depends on:
ii file 4.17-1 Determines file type using "magic"
ii installwatch 0.7.0beta4-1 Track installation of local softwa
checkinstall recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]