Package: checkinstall
Version: 1.6.1-5
Severity: wishlist
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu intrepid ubuntu-patch
Hi,
If the user has an alias defined for "which", then it can cause
checkinstall to fail. Using the absolute path to "which" ensures
that this doesn't happen. The following patch is used in Ubuntu
to provide this behaviour. Please consider applying it.
Thanks,
James
diff -pruN 1.6.1-5/checkinstall 1.6.1-5ubuntu1/checkinstall
--- 1.6.1-5/checkinstall 2007-11-18 16:12:42.000000000 +0000
+++ 1.6.1-5ubuntu1/checkinstall 2007-11-18 16:11:28.000000000 +0000
@@ -908,7 +908,7 @@ if ! [ -x "$VISUAL" ]; then
if [ -x "$EDITOR" ]; then
VISUAL=$EDITOR
else
- VISUAL=`which vi`
+ VISUAL=`/usr/bin/which vi`
fi
fi
@@ -920,7 +920,7 @@ BADTAR=0
if [ "$TAR" ]; then
! [ -x "$TAR" ] && BADTAR=1
else
- TAR=`which tar-1.13 2> /dev/null`
+ TAR=`/usr/bin/which tar-1.13 2> /dev/null`
fi
if ! [ -x "$TAR" ]; then
@@ -1910,7 +1910,7 @@ FAILED=0
if [ $INSTALL -gt 0 ]; then
# Verify that we have the "installpkg" command in our path
- INSTALLPKG_PATH=`which installpkg 2> /dev/null`
+ INSTALLPKG_PATH=`/usr/bin/which installpkg 2> /dev/null`
if ! [ -x "$INSTALLPKG_PATH" ]; then
echo
@@ -2117,7 +2117,7 @@ FAILED=0
# Verify that we have the rpm command in our path
-RPM_PATH=`which rpm 2> /dev/null`
+RPM_PATH=`/usr/bin/which rpm 2> /dev/null`
if ! [ -x "$RPM_PATH" ]; then
echo
@@ -2167,7 +2167,7 @@ else
RPMBUILD="rpm"
fi
-if [ "$RPMBUILD" = "rpmbuild" -a ! -x "`which rpmbuild 2> /dev/null`" ]; then
+if [ "$RPMBUILD" = "rpmbuild" -a ! -x "`/usr/bin/which rpmbuild 2> /dev/null`"
]; then
echo
echo "*** The \"rpmbuild\" program is not in your PATH!"
echo
@@ -2395,7 +2395,7 @@ FAILED=0
# Verify that we have the dpkg command in our path
-DPKG_PATH=`which dpkg 2> /dev/null`
+DPKG_PATH=`/usr/bin/which dpkg 2> /dev/null`
if ! [ -x "$DPKG_PATH" ]; then
echo
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]