pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/features Make setenv(3) a libnbcompat-provided feat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4da0e265575f
branches:  trunk
changeset: 537719:4da0e265575f
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Jan 14 23:06:26 2008 +0000

description:
Make setenv(3) a libnbcompat-provided feature.

diffstat:

 mk/features/features-vars.mk |  12 ++++++++++--
 mk/features/features.mk      |   4 ++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diffs (51 lines):

diff -r b91d33db831e -r 4da0e265575f mk/features/features-vars.mk
--- a/mk/features/features-vars.mk      Mon Jan 14 21:32:29 2008 +0000
+++ b/mk/features/features-vars.mk      Mon Jan 14 23:06:26 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: features-vars.mk,v 1.14 2007/11/29 08:53:14 rillig Exp $
+# $NetBSD: features-vars.mk,v 1.15 2008/01/14 23:06:26 tnn Exp $
 #
 # The platforms that are supported by pkgsrc differ in the amount of
 # functions they provide in the C library (libc). Functions that are
@@ -59,7 +59,7 @@
 #
 # Keywords: feature features asprintf vasprintf err errx warn warnx
 # Keywords: fts fts_open fts_read fts_set fts_close getopt_long
-# Keywords: getprogname setprogname glob regcomp snprintf vsnprintf
+# Keywords: getprogname setprogname glob regcomp setenv snprintf vsnprintf
 # Keywords: utimes libnbcompat nbcompat
 
 _VARGROUPS+=           features
@@ -134,6 +134,14 @@
 .  endif
 .endfor
 
+.for _feature_ in setenv
+.  if !empty(USE_FEATURES:M${_feature_})
+.    if !empty(MACHINE_PLATFORM:MHPUX-11.11-hppa) # XXX too narrow?
+MISSING_FEATURES+=     ${_feature_}
+.   endif
+.  endif
+.endfor
+
 .for _feature_ in snprintf vsnprintf
 .  if !empty(USE_FEATURES:M${_feature_})
 .    if ${OPSYS} == "IRIX"
diff -r b91d33db831e -r 4da0e265575f mk/features/features.mk
--- a/mk/features/features.mk   Mon Jan 14 21:32:29 2008 +0000
+++ b/mk/features/features.mk   Mon Jan 14 23:06:26 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: features.mk,v 1.5 2007/11/20 17:49:49 rillig Exp $
+# $NetBSD: features.mk,v 1.6 2008/01/14 23:06:26 tnn Exp $
 #
 # This file is included by bsd.pkg.mk.
 #
@@ -36,7 +36,7 @@
 # libnbcompat provides many of the current features.
 #
 _FEATURE_USE_NBCOMPAT?=        no
-.  for f in asprintf err fts_close fts_open fts_read fts_set getopt_long glob nbcompat regcomp snprintf utimes vsnprintf warn
+.  for f in asprintf err fts_close fts_open fts_read fts_set getopt_long glob nbcompat regcomp setenv snprintf utimes vsnprintf warn
 .    if !empty(MISSING_FEATURES:M${f})
 _FEATURE_USE_NBCOMPAT= yes
 .    endif



Home | Main Index | Thread Index | Old Index