diff options
author | seb <seb> | 2006-06-17 12:18:24 +0000 |
---|---|---|
committer | seb <seb> | 2006-06-17 12:18:24 +0000 |
commit | 4b6fb912be5d1b3ff8c20d5164401650e542b590 (patch) | |
tree | fa04c5ce095f8ce585f2aab223828ed6bdcb143b /pkgtools/pkg_comp | |
parent | 820c2fdba23e0186d96684bc2d6b3e42b85ba2b6 (diff) | |
download | pkgsrc-4b6fb912be5d1b3ff8c20d5164401650e542b590.tar.gz |
Update to version 1.29
Ensure that libkver.so is loaded if needed via LD_PRELOAD
for all kind of commands run via the chroot target.
This fix PR pkg/32921.
Approved by MAINTAINER.
Diffstat (limited to 'pkgtools/pkg_comp')
-rw-r--r-- | pkgtools/pkg_comp/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkg_comp/files/pkg_comp.sh | 19 |
2 files changed, 18 insertions, 5 deletions
diff --git a/pkgtools/pkg_comp/Makefile b/pkgtools/pkg_comp/Makefile index 44ef74c9b54..5fa4dbe5c18 100644 --- a/pkgtools/pkg_comp/Makefile +++ b/pkgtools/pkg_comp/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.36 2006/03/12 19:36:01 jmmv Exp $ +# $NetBSD: Makefile,v 1.37 2006/06/17 12:18:24 seb Exp $ -DISTNAME= pkg_comp-1.28 +DISTNAME= pkg_comp-1.29 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkg_comp/files/pkg_comp.sh b/pkgtools/pkg_comp/files/pkg_comp.sh index 951a86d0b18..69034048bde 100644 --- a/pkgtools/pkg_comp/files/pkg_comp.sh +++ b/pkgtools/pkg_comp/files/pkg_comp.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: pkg_comp.sh,v 1.31 2006/03/12 19:36:01 jmmv Exp $ +# $NetBSD: pkg_comp.sh,v 1.32 2006/06/17 12:18:24 seb Exp $ # # pkg_comp - Build packages inside a clean chroot environment # Copyright (c) 2002, 2003, 2004, 2005 Julio M. Merino Vidal <jmmv@NetBSD.org> @@ -838,18 +838,31 @@ EOF # pkg_chroot() { + local prefix script + [ -d $DESTDIR ] || err "$DESTDIR does not exist" copy_vulnerabilities fsmount echo "PKG_COMP ==> Entering sandbox \`$DESTDIR'" + prefix=`mktemp $DESTDIR/pkg_comp/tmp/pkg_comp-XXXX` + rm $prefix + script="$prefix.sh" + init_script $script if [ $# -eq 0 ]; then - ENV=/etc/shrc chroot $DESTDIR $ROOTSHELL + cat >> $script <<EOF +ENV=/etc/shrc $ROOTSHELL +EOF else - ENV=/etc/shrc chroot $DESTDIR $* + cat >> $script <<EOF +$* +EOF fi + chmod +x $script + ENV=/etc/shrc chroot $DESTDIR /pkg_comp/tmp/`basename $script` echo + rm $script fsumount } |