Subject: problems with update to pkg_install-20070814
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <k.heinz.aug.sieben@kh-22.de>
List: tech-pkg
Date: 08/19/2007 18:57:51
--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
current version of pkg_install is 20051122 on NetBSD 3, pkgsrc was
updated just a few minutes ago. I use USE_DESTDIR=full.
It looks to me that the configuration of libarchive happens twice:
...
ranlib libnbcompat.a
=> Fixing paths in scripts.
cd /var/tmp2/pkgsrc-clean/pkgtools/pkg_install/work.i386/libarchive
...
[ first run of configure ]
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --disable-shared
--disable-bsdtar...
[ second run of configure ]
Is this the expected behaviour?
During configuration of pkg_install I see the familiar warning from
packages which are not adapted to *BSD systems:
configure: WARNING: sys/mount.h: present but cannot be compiled
configure: WARNING: sys/mount.h: check for missing prerequisite headers?
configure: WARNING: sys/mount.h: see the Autoconf documentation
configure: WARNING: sys/mount.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/mount.h: proceeding with the preprocessor's result
configure: WARNING: sys/mount.h: in the future, the compiler will take precedence
I _am_ slightly disappointed to see this in such a package...
Patch appended.
Package installation to DESTDIR works, but package creation does not:
=> Checking for work-directory references in pkg_install-20070814
===> Building binary package for pkg_install-20070814
pkg_create: unknown option -- u
usage: pkg_create [-ORUEhlVv] [-P dpkgs] [-C cpkgs] [-p prefix] [-f contents]
[-i iscript] [-k dscript] [-r rscript] [-t template]
[-X excludefile] [-D displayfile] [-m mtreefile]
[-b build-version-file] [-B build-info-file]
[-I realprefix]
-c comment -d description -f packlist pkg-name
ERROR: pkg_create -K pkg failed (1)
*** Error code 1
The options "-u ${REAL_ROOT_USER} -g ${REAL_ROOT_GROUP}" in
mk/flavor/pkg/package.mk cannot work if the appropriate pkg_create is
just in the process of being installed.
ciao
Klaus
--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="configure.ac.diff"
--- configure.ac.orig 2007-08-19 17:27:35.000000000 +0200
+++ configure.ac 2007-08-19 18:48:32.000000000 +0200
@@ -78,7 +78,13 @@
pwd.h regex.h signal.h stdarg.h stdio.h stdlib.h string.h \
termcap.h termios.h time.h unistd.h vis.h])
AC_CHECK_HEADERS([db1/db.h db_185.h db.h])
-AC_CHECK_HEADERS([sys/cdefs.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h \
+AC_CHECK_HEADERS([sys/param.h])
+AC_CHECK_HEADERS([sys/mount.h], [], [],
+[#ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+# endif
+])
+AC_CHECK_HEADERS([sys/cdefs.h sys/file.h sys/ioctl.h \
sys/poll.h sys/queue.h sys/resource.h sys/signal.h sys/stat.h \
sys/statvfs.h sys/time.h sys/types.h sys/utsname.h sys/vfs.h \
sys/wait.h])
--azLHFNyN32YCQGCU--