pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files Import 20040601.
details: https://anonhg.NetBSD.org/pkgsrc/rev/d93b1704a092
branches: trunk
changeset: 476013:d93b1704a092
user: minskim <minskim%pkgsrc.org@localhost>
date: Tue Jun 01 17:32:20 2004 +0000
description:
Import 20040601.
- Handle symlinks in a view correctly.
- Remove superfluous escapes in BRE.
This closes PR pkg/24190.
diffstat:
pkgtools/pkg_install/files/configure | 18 +++++++++---------
pkgtools/pkg_install/files/configure.ac | 2 +-
pkgtools/pkg_install/files/lib/plist.c | 26 +++++++++++++++++++-------
pkgtools/pkg_install/files/lib/version.h | 4 ++--
pkgtools/pkg_install/files/view/pkg_view.sh.in | 4 ++--
5 files changed, 33 insertions(+), 21 deletions(-)
diffs (171 lines):
diff -r 11d2386ac3eb -r d93b1704a092 pkgtools/pkg_install/files/configure
--- a/pkgtools/pkg_install/files/configure Tue Jun 01 17:29:09 2004 +0000
+++ b/pkgtools/pkg_install/files/configure Tue Jun 01 17:32:20 2004 +0000
@@ -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@localhost>.
#
@@ -269,8 +269,8 @@
# 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@localhost'
ac_unique_file="lib/plist.c"
@@ -780,7 +780,7 @@
# 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 @@
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 @@
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 @@
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 @@
} >&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 @@
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 -r 11d2386ac3eb -r d93b1704a092 pkgtools/pkg_install/files/configure.ac
--- a/pkgtools/pkg_install/files/configure.ac Tue Jun 01 17:29:09 2004 +0000
+++ b/pkgtools/pkg_install/files/configure.ac Tue Jun 01 17:32:20 2004 +0000
@@ -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@localhost])
+AC_INIT([pkg_install], [20040601], [grant%NetBSD.org@localhost])
AC_CONFIG_SRCDIR([lib/plist.c])
AC_CONFIG_HEADER(lib/config.h)
diff -r 11d2386ac3eb -r d93b1704a092 pkgtools/pkg_install/files/lib/plist.c
--- a/pkgtools/pkg_install/files/lib/plist.c Tue Jun 01 17:29:09 2004 +0000
+++ b/pkgtools/pkg_install/files/lib/plist.c Tue Jun 01 17:32:20 2004 +0000
@@ -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 @@
}
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 -r 11d2386ac3eb -r d93b1704a092 pkgtools/pkg_install/files/lib/version.h
--- a/pkgtools/pkg_install/files/lib/version.h Tue Jun 01 17:29:09 2004 +0000
+++ b/pkgtools/pkg_install/files/lib/version.h Tue Jun 01 17:32:20 2004 +0000
@@ -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 -r 11d2386ac3eb -r d93b1704a092 pkgtools/pkg_install/files/view/pkg_view.sh.in
--- a/pkgtools/pkg_install/files/view/pkg_view.sh.in Tue Jun 01 17:29:09 2004 +0000
+++ b/pkgtools/pkg_install/files/view/pkg_view.sh.in Tue Jun 01 17:32:20 2004 +0000
@@ -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 @@
# 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
;;
Home |
Main Index |
Thread Index |
Old Index