pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/features



Module Name:    pkgsrc
Committed By:   sevan
Date:           Mon Jul  8 22:09:22 UTC 2019

Modified Files:
        pkgsrc/mk/features: features-vars.mk features.mk

Log Message:
Support USE_FEATURES=strnlen to provide an implementation of strnlen(3) via libnbcompat, should the host OS lack support


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/mk/features/features-vars.mk
cvs rdiff -u -r1.8 -r1.9 pkgsrc/mk/features/features.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/features/features-vars.mk
diff -u pkgsrc/mk/features/features-vars.mk:1.24 pkgsrc/mk/features/features-vars.mk:1.25
--- pkgsrc/mk/features/features-vars.mk:1.24    Fri Nov 30 18:38:19 2018
+++ pkgsrc/mk/features/features-vars.mk Mon Jul  8 22:09:22 2019
@@ -1,4 +1,4 @@
-# $NetBSD: features-vars.mk,v 1.24 2018/11/30 18:38:19 rillig Exp $
+# $NetBSD: features-vars.mk,v 1.25 2019/07/08 22:09:22 sevan Exp $
 #
 # The platforms that are supported by pkgsrc differ in the amount of
 # functions they provide in the C library (libc). Functions that are
@@ -46,6 +46,7 @@
 #      * glob
 #      * regcomp
 #      * snprintf, vsnprintf
+#      * strnlen
 #      * utimes
 #      * nbcompat: All of the above.
 #
@@ -60,8 +61,8 @@
 #
 # Keywords: feature features asprintf vasprintf cdefs err errx warn warnx
 # Keywords: fts fts_open fts_read fts_set fts_close getopt_long
-# Keywords: getprogname setprogname glob regcomp setenv snprintf vsnprintf
-# Keywords: utimes libnbcompat nbcompat
+# Keywords: getprogname setprogname glob regcomp setenv snprintf strnlen
+# Keywords: vsnprintf utimes libnbcompat nbcompat
 
 _VARGROUPS+=           features
 _USER_VARS.features=   # none
@@ -183,6 +184,10 @@ MISSING_FEATURES+= ${_feature_}
 .  endif
 .endfor
 
+.if !empty(USE_FEATURES:Mstrnlen)
+MISSING_FEATURES+=     strnlen
+.endif
+
 .for _feature_ in utimes
 .  if !empty(USE_FEATURES:M${_feature_})
 .    if ${OPSYS} == "Interix"

Index: pkgsrc/mk/features/features.mk
diff -u pkgsrc/mk/features/features.mk:1.8 pkgsrc/mk/features/features.mk:1.9
--- pkgsrc/mk/features/features.mk:1.8  Thu Jan  1 07:51:47 2015
+++ pkgsrc/mk/features/features.mk      Mon Jul  8 22:09:22 2019
@@ -1,4 +1,4 @@
-# $NetBSD: features.mk,v 1.8 2015/01/01 07:51:47 dholland Exp $
+# $NetBSD: features.mk,v 1.9 2019/07/08 22:09:22 sevan 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 cdefs err fts_close fts_open fts_read fts_set getopt_long glob nbcompat regcomp setenv snprintf utimes vsnprintf warn
+.  for f in asprintf cdefs err fts_close fts_open fts_read fts_set getopt_long glob nbcompat regcomp setenv snprintf strnlen utimes vsnprintf warn
 .    if !empty(MISSING_FEATURES:M${f})
 _FEATURE_USE_NBCOMPAT= yes
 .    endif



Home | Main Index | Thread Index | Old Index