pkgsrc-WIP-changes archive

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

py-nis: use libnsl if glibc is guaranteed to not have nis



Module Name:	pkgsrc-wip
Committed By:	Niclas Rosenvik <nros%pkgsrc.org@localhost>
Pushed By:	nros
Date:		Thu Dec 7 21:14:15 2023 +0100
Changeset:	475e245db9fdb40b1a25c160e779ee896aa11e22

Modified Files:
	py-nis/Makefile

Log Message:
py-nis: use libnsl if glibc is guaranteed to not have nis

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=475e245db9fdb40b1a25c160e779ee896aa11e22

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

diffstat:
 py-nis/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diffs:
diff --git a/py-nis/Makefile b/py-nis/Makefile
index 65496e8047..32f5e32d0b 100644
--- a/py-nis/Makefile
+++ b/py-nis/Makefile
@@ -13,9 +13,16 @@ HOMEPAGE=	https://github.com/niclasr/python-nis/
 COMMENT=	NIS python module
 LICENSE=	python-software-foundation
 
+USE_TOOLS+=	pkg-config
+
 CMAKE_USE_GNU_INSTALL_DIRS=	no
 PY_PATCHPLIST=			yes
 
 .include "../../devel/cmake/build.mk"
 .include "../../lang/python/extension.mk"
+.if ${OPSYS} == "Linux"
+.  if ${GLIBC_VERSION:C/[0-9]\.//g} > 31
+.include "../../wip/libnsl/buildlink3.mk"
+.  endif
+.endif
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index