pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk mk: Cache _UNAME_V on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ac8c59606fff
branches:  trunk
changeset: 388601:ac8c59606fff
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Nov 23 11:59:08 2022 +0000

description:
mk: Cache _UNAME_V on SunOS.

diffstat:

 mk/bsd.prefs.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 2e0ac2b31411 -r ac8c59606fff mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk   Wed Nov 23 11:55:43 2022 +0000
+++ b/mk/bsd.prefs.mk   Wed Nov 23 11:59:08 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.428 2022/09/29 02:25:16 charlotte Exp $
+# $NetBSD: bsd.prefs.mk,v 1.429 2022/11/23 11:59:08 jperkin Exp $
 #
 # This file includes the mk.conf file, which contains the user settings.
 #
@@ -283,7 +283,10 @@
 LOWER_VENDOR?=         sun
 LOWER_OPSYS?=          solaris
 LOWER_OPSYS_VERSUFFIX= 2.${OS_VERSION:C/5.//}
+.  if !defined(_UNAME_V)
 _UNAME_V!=             ${UNAME} -v
+MAKEFLAGS+=            _UNAME_V=${_UNAME_V:Q}
+.  endif
 .  if !empty(_UNAME_V:Mjoyent_*)
 OS_VARIANT=            SmartOS
 LOWER_VARIANT_VERSION= ${_UNAME_V:C/joyent_//}



Home | Main Index | Thread Index | Old Index