pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/bootstrap bootstrap: Set PKGSRC_KEEP_BIN_PKGS=no durin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d4e91a41c2fd
branches:  trunk
changeset: 324374:d4e91a41c2fd
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Oct 17 11:12:46 2018 +0000

description:
bootstrap: Set PKGSRC_KEEP_BIN_PKGS=no during bootstrap.

This avoids errors when running from a read-only pkgsrc checkout as the
resulting packages cannot be written to the default PACKAGES directory.  The
binary packages aren't useful anyway, as they are often built with reduced
configuration options due to the limited bootstrap environment.

Fixes issue reported by Julien Savard and others.

diffstat:

 bootstrap/bootstrap |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 06b8c3a78b13 -r d4e91a41c2fd bootstrap/bootstrap
--- a/bootstrap/bootstrap       Wed Oct 17 10:04:31 2018 +0000
+++ b/bootstrap/bootstrap       Wed Oct 17 11:12:46 2018 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: bootstrap,v 1.250 2018/09/09 10:01:26 schmonz Exp $
+# $NetBSD: bootstrap,v 1.251 2018/10/17 11:12:46 jperkin Exp $
 #
 # Copyright (c) 2001-2011 Alistair Crooks <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -1308,10 +1308,10 @@
 # build and register packages
 # 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)"
+       run_cmd "(cd $pkgsrcdir/$1 && $bmake $make_quiet_flags MAKE_JOBS=${make_jobs} PKG_COMPRESSION=none -DPKG_PRESERVE PKGSRC_KEEP_BIN_PKGS=no 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)"
+       run_cmd "(cd $pkgsrcdir/$1 && $bmake $make_quiet_flags MAKE_JOBS=${make_jobs} PKG_COMPRESSION=none PKGSRC_KEEP_BIN_PKGS=no MAKECONF=${BOOTSTRAP_MKCONF} install)"
 }
 
 #



Home | Main Index | Thread Index | Old Index