pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Allow to set the "bourne" shell used for buildlink3...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bb508e18b0e6
branches:  trunk
changeset: 558539:bb508e18b0e6
user:      tron <tron%pkgsrc.org@localhost>
date:      Wed May 06 10:28:01 2009 +0000

description:
Allow to set the "bourne" shell used for buildlink3 wrappers per platform.
Set it to "/bin/ksh" under Mac OS X which should reduce package build times
by more than 20%.

diffstat:

 mk/platform/Darwin.mk      |  7 ++++++-
 mk/wrapper/wrapper-defs.mk |  5 +++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r 2322743b7fe7 -r bb508e18b0e6 mk/platform/Darwin.mk
--- a/mk/platform/Darwin.mk     Wed May 06 07:07:00 2009 +0000
+++ b/mk/platform/Darwin.mk     Wed May 06 10:28:01 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.36 2009/04/27 12:03:36 tron Exp $
+# $NetBSD: Darwin.mk,v 1.37 2009/05/06 10:28:01 tron Exp $
 #
 # Variable definitions for the Darwin operating system.
 
@@ -112,6 +112,11 @@
 .  endif
 .endif
 
+# Use "/bin/ksh" for buildlink3 wrapper script to improve build performance.
+.if exists(/bin/ksh)
+WRAPPER_BIN_SH?=       /bin/ksh
+.endif
+
 # If games are to be installed setgid, then SETGIDGAME is set to 'yes'
 # (it defaults to 'no' as per defaults/mk.conf).
 # Set the group and mode to meaningful values in that case (defaults to
diff -r 2322743b7fe7 -r bb508e18b0e6 mk/wrapper/wrapper-defs.mk
--- a/mk/wrapper/wrapper-defs.mk        Wed May 06 07:07:00 2009 +0000
+++ b/mk/wrapper/wrapper-defs.mk        Wed May 06 10:28:01 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: wrapper-defs.mk,v 1.2 2005/10/10 12:33:29 tv Exp $
+# $NetBSD: wrapper-defs.mk,v 1.3 2009/05/06 10:28:01 tron Exp $
 #
 # Copyright (c) 2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -41,6 +41,7 @@
 WRAPPER_BINDIR=                ${WRAPPER_DIR}/bin
 WRAPPER_TMPDIR=                ${WRAPPER_DIR}/tmp
 WRAPPER_SRCDIR=                ${.CURDIR}/../../mk/wrapper
-WRAPPER_SHELL?=                ${SH}
+WRAPPER_BIN_SH?=       ${SH}
+WRAPPER_SHELL?=                ${WRAPPER_BIN_SH}
 
 .endif # WRAPPER_DEFS_MK



Home | Main Index | Thread Index | Old Index