diff options
author | jperkin <jperkin> | 2016-11-01 20:44:22 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2016-11-01 20:44:22 +0000 |
commit | 436c0b984a5b6a61b9bf81e734589e78e0e42646 (patch) | |
tree | b550b90a1531c5e536a9066bf37bb562c8518213 /bootstrap | |
parent | a2ac6e68598e4fe0f1ca3b0dcbda80f13a07c79d (diff) | |
download | pkgsrc-436c0b984a5b6a61b9bf81e734589e78e0e42646.tar.gz |
When building cwrappers via bootstrap, either directly via --cwrappers or
indirectly via it being pulled in using USE_CWRAPPERS=auto, we need to
ensure that it is not built with -DPKG_PRESERVE as otherwise it interacts
badly with pbulk's pkg_delete test.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 1ee9e51d3bd..c8c4cd22862 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.232 2016/06/22 11:40:16 joerg Exp $ +# $NetBSD: bootstrap,v 1.233 2016/11/01 20:44:22 jperkin Exp $ # # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> # All rights reserved. @@ -1287,10 +1287,24 @@ echo ".endif # end pkgsrc settings" >> ${TARGET_MKCONF} echo ".endif # end pkgsrc settings" >> ${BOOTSTRAP_MKCONF} # build and register packages -# usage: build_package <packagedirectory> [additional arguments] +# usage: build_package <packagedirectory> build_package() { run_cmd "(cd $pkgsrcdir/$1 && $bmake $make_quiet_flags MAKE_JOBS=${make_jobs} PKG_COMPRESSION=none -DPKG_PRESERVE MAKECONF=${BOOTSTRAP_MKCONF} install)" } +build_package_nopreserve() { + run_cmd "(cd $pkgsrcdir/$1 && $bmake $make_quiet_flags MAKE_JOBS=${make_jobs} PKG_COMPRESSION=none MAKECONF=${BOOTSTRAP_MKCONF} install)" +} + +# +# cwrappers is special, we don't want to set it as a BOOTSTRAP_PKG but must +# build it (if required) without -DPKG_PRESERVE set so that it can be deleted. +# +use_cwrappers=`(cd $pkgsrcdir/devel/bmake && $bmake show-var VARNAME=_USE_CWRAPPERS)` +case "$use_cwrappers" in +yes) + build_package_nopreserve "pkgtools/cwrappers" + ;; +esac # # Please make sure that the following packages and |