summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortnn <tnn>2008-01-14 23:06:26 +0000
committertnn <tnn>2008-01-14 23:06:26 +0000
commit2261d5a14a0c5ddacabd6c00eff731d49251b551 (patch)
treef7923f833c592f65ef1d8c723da3de616a2165d8 /mk
parent76234c27f5b67092e6c951465f68ab860cce467d (diff)
downloadpkgsrc-2261d5a14a0c5ddacabd6c00eff731d49251b551.tar.gz
Make setenv(3) a libnbcompat-provided feature.
Diffstat (limited to 'mk')
-rw-r--r--mk/features/features-vars.mk12
-rw-r--r--mk/features/features.mk4
2 files changed, 12 insertions, 4 deletions
diff --git a/mk/features/features-vars.mk b/mk/features/features-vars.mk
index cff7bdcf9f7..b93ed092670 100644
--- a/mk/features/features-vars.mk
+++ b/mk/features/features-vars.mk
@@ -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 @@ MISSING_FEATURES+= ${_feature_}
. 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 --git a/mk/features/features.mk b/mk/features/features.mk
index 0168305054f..725af3cd1d1 100644
--- a/mk/features/features.mk
+++ b/mk/features/features.mk
@@ -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 @@ LIBS+= ${FEATURE_LIBS}
# 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