pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_chk Update "pkg_chk" package to version 1...
details: https://anonhg.NetBSD.org/pkgsrc/rev/17830b0475a9
branches: trunk
changeset: 521165:17830b0475a9
user: tron <tron%pkgsrc.org@localhost>
date: Sun Nov 05 21:53:27 2006 +0000
description:
Update "pkg_chk" package to version 1.83:
Do *not* use "TMPDIR" variable. If the user has already set an environment
variable "TMPDIR" it well be overwritten my the path to the directory
created by the script and passed to "make". As a result it will get
compiled into certain packages (e.g. "sysutils/dbus") which will no
longer work after the directory has been removed.
diffstat:
pkgtools/pkg_chk/Makefile | 4 ++--
pkgtools/pkg_chk/files/pkg_chk.sh | 16 ++++++++--------
2 files changed, 10 insertions(+), 10 deletions(-)
diffs (58 lines):
diff -r 96c0b077da7e -r 17830b0475a9 pkgtools/pkg_chk/Makefile
--- a/pkgtools/pkg_chk/Makefile Sun Nov 05 21:51:50 2006 +0000
+++ b/pkgtools/pkg_chk/Makefile Sun Nov 05 21:53:27 2006 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.45 2006/10/02 07:33:38 abs Exp $
+# $NetBSD: Makefile,v 1.46 2006/11/05 21:53:27 tron Exp $
-DISTNAME= pkg_chk-1.82
+DISTNAME= pkg_chk-1.83
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
diff -r 96c0b077da7e -r 17830b0475a9 pkgtools/pkg_chk/files/pkg_chk.sh
--- a/pkgtools/pkg_chk/files/pkg_chk.sh Sun Nov 05 21:51:50 2006 +0000
+++ b/pkgtools/pkg_chk/files/pkg_chk.sh Sun Nov 05 21:53:27 2006 +0000
@@ -1,6 +1,6 @@
#!@SH@ -e
#
-# $Id: pkg_chk.sh,v 1.43 2006/10/02 07:33:38 abs Exp $
+# $Id: pkg_chk.sh,v 1.44 2006/11/05 21:53:27 tron Exp $
#
# TODO: Make -g check dependencies and tsort
# TODO: Variation of -g which only lists top level packages
@@ -88,8 +88,8 @@
cleanup_and_exit()
{
- rm -f $TMPFILE
- rmdir $TMPDIR
+ rm -f $MY_TMPFILE
+ rmdir $MY_TMPDIR
exit "$@"
}
@@ -248,9 +248,9 @@
fi
# Unfortunately pkgsrc always outputs to a file, but it does helpfully
# allows # us to specify the name
- rm -f $TMPFILE
- ${MAKE} _BUILD_VERSION_FILE=$TMPFILE $TMPFILE
- cat $TMPFILE
+ rm -f $MY_TMPFILE
+ ${MAKE} _BUILD_VERSION_FILE=$MY_TMPFILE $MY_TMPFILE
+ cat $MY_TMPFILE
}
list_packages()
@@ -668,8 +668,8 @@
usage "Additional argument ($*) given"
fi
-TMPDIR=`mktemp -d /tmp/${0##*/}.XXXXXX`
-TMPFILE=$TMPDIR/tmp
+MY_TMPDIR=`mktemp -d ${TMPDIR-/tmp}/${0##*/}.XXXXXX`
+MY_TMPFILE=$MY_TMPDIR/tmp
# Hide PKG_PATH to avoid breakage in 'make' calls
saved_PKG_PATH=$PKG_PATH
Home |
Main Index |
Thread Index |
Old Index