summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-06-01 17:32:20 +0000
committerminskim <minskim@pkgsrc.org>2004-06-01 17:32:20 +0000
commitd9205a030c8d9d0560552d2c9ac68546a3fc3ab7 (patch)
tree6b4abb539daf2d608bc3d78dc10d626af2a66370 /pkgtools
parent2b6ee83857865dec6f7292133e4dd217f34909ba (diff)
downloadpkgsrc-d9205a030c8d9d0560552d2c9ac68546a3fc3ab7.tar.gz
Import 20040601.
- Handle symlinks in a view correctly. - Remove superfluous escapes in BRE. This closes PR pkg/24190.
Diffstat (limited to 'pkgtools')
-rwxr-xr-xpkgtools/pkg_install/files/configure18
-rw-r--r--pkgtools/pkg_install/files/configure.ac2
-rw-r--r--pkgtools/pkg_install/files/lib/plist.c26
-rw-r--r--pkgtools/pkg_install/files/lib/version.h4
-rw-r--r--pkgtools/pkg_install/files/view/pkg_view.sh.in4
5 files changed, 33 insertions, 21 deletions
diff --git a/pkgtools/pkg_install/files/configure b/pkgtools/pkg_install/files/configure
index 72e8ed7b20c..ddb153da113 100755
--- a/pkgtools/pkg_install/files/configure
+++ b/pkgtools/pkg_install/files/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for pkg_install 20030923.
+# Generated by GNU Autoconf 2.59 for pkg_install 20040601.
#
# Report bugs to <grant@NetBSD.org>.
#
@@ -269,8 +269,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='pkg_install'
PACKAGE_TARNAME='pkg_install'
-PACKAGE_VERSION='20030923'
-PACKAGE_STRING='pkg_install 20030923'
+PACKAGE_VERSION='20040601'
+PACKAGE_STRING='pkg_install 20040601'
PACKAGE_BUGREPORT='grant@NetBSD.org'
ac_unique_file="lib/plist.c"
@@ -780,7 +780,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures pkg_install 20030923 to adapt to many kinds of systems.
+\`configure' configures pkg_install 20040601 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -841,7 +841,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of pkg_install 20030923:";;
+ short | recursive ) echo "Configuration of pkg_install 20040601:";;
esac
cat <<\_ACEOF
@@ -962,7 +962,7 @@ fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-pkg_install configure 20030923
+pkg_install configure 20040601
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
@@ -976,7 +976,7 @@ cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by pkg_install $as_me 20030923, which was
+It was created by pkg_install $as_me 20040601, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -4851,7 +4851,7 @@ _ASBOX
} >&5
cat >&5 <<_CSEOF
-This file was extended by pkg_install $as_me 20030923, which was
+This file was extended by pkg_install $as_me 20040601, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -4911,7 +4911,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-pkg_install config.status 20030923
+pkg_install config.status 20040601
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
diff --git a/pkgtools/pkg_install/files/configure.ac b/pkgtools/pkg_install/files/configure.ac
index c7a3355f4c9..777fde93792 100644
--- a/pkgtools/pkg_install/files/configure.ac
+++ b/pkgtools/pkg_install/files/configure.ac
@@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
-AC_INIT([pkg_install], [20030923], [grant@NetBSD.org])
+AC_INIT([pkg_install], [20040601], [grant@NetBSD.org])
AC_CONFIG_SRCDIR([lib/plist.c])
AC_CONFIG_HEADER(lib/config.h)
diff --git a/pkgtools/pkg_install/files/lib/plist.c b/pkgtools/pkg_install/files/lib/plist.c
index ded4b8780ab..30b12881bd5 100644
--- a/pkgtools/pkg_install/files/lib/plist.c
+++ b/pkgtools/pkg_install/files/lib/plist.c
@@ -1,4 +1,4 @@
-/* $NetBSD: plist.c,v 1.8 2004/02/07 10:37:53 grant Exp $ */
+/* $NetBSD: plist.c,v 1.9 2004/06/01 17:32:21 minskim Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: plist.c,v 1.24 1997/10/08 07:48:15 charnier Exp";
#else
-__RCSID("$NetBSD: plist.c,v 1.8 2004/02/07 10:37:53 grant Exp $");
+__RCSID("$NetBSD: plist.c,v 1.9 2004/06/01 17:32:21 minskim Exp $");
#endif
#endif
@@ -409,11 +409,23 @@ delete_package(Boolean ign_err, Boolean nukedirs, package_t *pkg)
}
buf[SymlinkHeaderLen + cc] = 0x0;
if (strcmp(buf, p->next->name) != 0) {
- printf("symlink %s is not same as recorded value, %s: %s\n",
- buf, Force ? "deleting anyway" : "not deleting", tmp);
- if (!Force) {
- fail = FAIL;
- continue;
+ if ((cc = readlink(&buf[SymlinkHeaderLen], &buf[SymlinkHeaderLen],
+ sizeof(buf) - SymlinkHeaderLen)) < 0) {
+ printf("symlink %s is not same as recorded value, %s: %s\n",
+ buf, Force ? "deleting anyway" : "not deleting", tmp);
+ if (!Force) {
+ fail = FAIL;
+ continue;
+ }
+ }
+ buf[SymlinkHeaderLen + cc] = 0x0;
+ if (strcmp(buf, p->next->name) != 0) {
+ printf("symlink %s is not same as recorded value, %s: %s\n",
+ buf, Force ? "deleting anyway" : "not deleting", tmp);
+ if (!Force) {
+ fail = FAIL;
+ continue;
+ }
}
}
}
diff --git a/pkgtools/pkg_install/files/lib/version.h b/pkgtools/pkg_install/files/lib/version.h
index e3f4d0d847a..f9e403241a0 100644
--- a/pkgtools/pkg_install/files/lib/version.h
+++ b/pkgtools/pkg_install/files/lib/version.h
@@ -1,4 +1,4 @@
-/* $NetBSD: version.h,v 1.30 2004/05/08 14:51:23 jlam Exp $ */
+/* $NetBSD: version.h,v 1.31 2004/06/01 17:32:21 minskim Exp $ */
/*
* Copyright (c) 2001 Thomas Klausner. All rights reserved.
@@ -33,6 +33,6 @@
#ifndef _INST_LIB_VERSION_H_
#define _INST_LIB_VERSION_H_
-#define PKGTOOLS_VERSION "20040508"
+#define PKGTOOLS_VERSION "20040601"
#endif /* _INST_LIB_VERSION_H_ */
diff --git a/pkgtools/pkg_install/files/view/pkg_view.sh.in b/pkgtools/pkg_install/files/view/pkg_view.sh.in
index 1333191b68e..080a4d08025 100644
--- a/pkgtools/pkg_install/files/view/pkg_view.sh.in
+++ b/pkgtools/pkg_install/files/view/pkg_view.sh.in
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: pkg_view.sh.in,v 1.3 2003/09/23 07:44:51 grant Exp $
+# $NetBSD: pkg_view.sh.in,v 1.4 2004/06/01 17:32:21 minskim Exp $
#
# Copyright (c) 2001 Alistair G. Crooks. All rights reserved.
@@ -211,7 +211,7 @@ while [ $# -gt 0 ]; do
# a view.
#
case "$doit" in
- "") (cd ${depot_pkg_dbdir}/$1; $paxprog -rwpe '-s|\./\+VIEWS$||' '-s|\./\+REQUIRED_BY$||' ./+* ${pkg_dbdir}/$1)
+ "") (cd ${depot_pkg_dbdir}/$1; $paxprog -rwpe '-s|\./+VIEWS$||' '-s|\./+REQUIRED_BY$||' ./+* ${pkg_dbdir}/$1)
$sedprog -e 's|'${depot_pkg_dbdir}/$1'|'${targetdir}'|g' < ${depot_pkg_dbdir}/$1/+CONTENTS > ${pkg_dbdir}/$1/+CONTENTS
echo "${depot_pkg_dbdir}/$1" > ${pkg_dbdir}/$1/+DEPOT
;;