Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 580C41A9239 for ; Fri, 14 Jan 2022 14:46:53 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 9213684F34; Fri, 14 Jan 2022 14:46:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id C96F284F2B for ; Fri, 14 Jan 2022 14:46:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id Bm0-vy8m1_G2 for ; Fri, 14 Jan 2022 14:46:51 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 4645084CBC for ; Fri, 14 Jan 2022 14:46:51 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 40377FB24; Fri, 14 Jan 2022 14:46:51 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1642171611288920" MIME-Version: 1.0 Date: Fri, 14 Jan 2022 14:46:51 +0000 From: "Amitai Schleier" Subject: CVS commit: pkgsrc/mk To: pkgsrc-changes@NetBSD.org Reply-To: schmonz@netbsd.org X-Mailer: log_accum Message-Id: <20220114144651.40377FB24@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1642171611288920 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: schmonz Date: Fri Jan 14 14:46:51 UTC 2022 Modified Files: pkgsrc/mk/features: features.mk pkgsrc/mk/platform: Darwin.mk Log Message: For macOS, getline(3) arrived sometime after 10.6 -- guessing 10.7 like strnlen(3). Make libnbcompat's implementation available to packages via USE_FEATURES=getline. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 pkgsrc/mk/features/features.mk cvs rdiff -u -r1.111 -r1.112 pkgsrc/mk/platform/Darwin.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1642171611288920 Content-Disposition: inline Content-Length: 1748 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/mk/features/features.mk diff -u pkgsrc/mk/features/features.mk:1.9 pkgsrc/mk/features/features.mk:1.10 --- pkgsrc/mk/features/features.mk:1.9 Mon Jul 8 22:09:22 2019 +++ pkgsrc/mk/features/features.mk Fri Jan 14 14:46:50 2022 @@ -1,4 +1,4 @@ -# $NetBSD: features.mk,v 1.9 2019/07/08 22:09:22 sevan Exp $ +# $NetBSD: features.mk,v 1.10 2022/01/14 14:46:50 schmonz 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 strnlen utimes vsnprintf warn +. for f in asprintf cdefs err fts_close fts_open fts_read fts_set getline getopt_long glob nbcompat regcomp setenv snprintf strnlen utimes vsnprintf warn . if !empty(MISSING_FEATURES:M${f}) _FEATURE_USE_NBCOMPAT= yes . endif Index: pkgsrc/mk/platform/Darwin.mk diff -u pkgsrc/mk/platform/Darwin.mk:1.111 pkgsrc/mk/platform/Darwin.mk:1.112 --- pkgsrc/mk/platform/Darwin.mk:1.111 Thu Dec 2 09:44:03 2021 +++ pkgsrc/mk/platform/Darwin.mk Fri Jan 14 14:46:51 2022 @@ -1,4 +1,4 @@ -# $NetBSD: Darwin.mk,v 1.111 2021/12/02 09:44:03 jperkin Exp $ +# $NetBSD: Darwin.mk,v 1.112 2022/01/14 14:46:51 schmonz Exp $ # # Variable definitions for the Darwin operating system. @@ -253,7 +253,7 @@ MAKE_ENV+= MACOSX_DEPLOYMENT_TARGET="10. CONFIGURE_ENV+= gl_cv_func_getcwd_abort_bug=no .endif -# strnlen(3) is available from Lion onwards +# strnlen(3) and getline(3) are available from Lion onwards .if ${OPSYS_VERSION} < 100700 -_OPSYS_MISSING_FEATURES+= strnlen +_OPSYS_MISSING_FEATURES+= strnlen getline .endif --_----------=_1642171611288920--