summaryrefslogtreecommitdiff
path: root/lang/python27/Makefile
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2019-03-26 16:12:28 +0000
committergdt <gdt@pkgsrc.org>2019-03-26 16:12:28 +0000
commit09bbd542bf4bdc02ba4ea8acb3bee019551c3b46 (patch)
treef4a36106fe391b56e287177c6642d91baee11985 /lang/python27/Makefile
parent693e2d473b5bb53433a3e6941427550d632a8639 (diff)
downloadpkgsrc-09bbd542bf4bdc02ba4ea8acb3bee019551c3b46.tar.gz
lang/python27: Add comments about NIS detection
The logic to determine inclusion of NIS PLIST entries is confusing. Add comments to explain some and question some. This is a comment-only change.
Diffstat (limited to 'lang/python27/Makefile')
-rw-r--r--lang/python27/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile
index ae222b9c7f4..b62b2ab9741 100644
--- a/lang/python27/Makefile
+++ b/lang/python27/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.77 2019/03/05 12:43:40 adam Exp $
+# $NetBSD: Makefile,v 1.78 2019/03/26 16:12:28 gdt Exp $
.include "dist.mk"
@@ -104,6 +104,8 @@ PLIST.qt= yes
.endif
.if ${OPSYS} == "IRIX"
+# Assume that IRIX (and IRIX alone) does not support a libpython.so.
+# Assume that 32-bit IRIX has NIS and 64-bit IRIX does not.
. if ${ABI} == "64"
PLIST.no-nis= yes
. else
@@ -111,9 +113,14 @@ PLIST.nis= yes
. endif
.else
PLIST.dll= yes
+# Determine if lib-dynload/nis.so (PLIST.nis) or
+# lib-dynload/nis-failed.so (PLIST.no-nis) will be built.
. if ${OPSYS} == "MirBSD" || "${OS_VARIANT}" == "chromeos"
# neither nis nor no-nis
. elif ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat)
+# \todo Explain the "!= NetBSD"; that seems to declare that any
+# remaining system other than NetBSD will have NIS, even if ypcat is
+# missing.
PLIST.nis= yes
. else
PLIST.no-nis= yes