Python27 package build failure - missing NIS library
Dewayne
dewayne.geraghty at heuristicsystems.com.au
Tue Oct 19 12:51:37 UTC 2010
Unfortunately my FreeBSD 8.1Stable systems are built without NIS, using
/etc/src.conf
WITHOUT_NIS=yes
During a package build, I receive the failure message:
tar: lib/python2.7/lib-dynload/nis.so: Cannot stat: No such file or
directory
May I suggest the following patch to address this error:
--- /usr/ports/lang/python27/Makefile.orig 2010-10-19
04:33:12.000000000 +0000
+++ /usr/ports/lang/python27/Makefile 2010-10-19 05:00:17.000000000 +0000
@@ -55,6 +55,7 @@
UCS4 "Use UCS4 for unicode support" on \
PYMALLOC "Use python's internal malloc" on \
IPV6 "Enable IPv6 support" on \
+ NIS "Enable NIS support" on \
FPECTL "Enable floating point exception handling" off
.include <bsd.port.pre.mk>
@@ -130,8 +131,9 @@
CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900
.endif
-.if !exists(/usr/bin/ypcat) # the world with NO_NIS
+.if !defined(WITHOUT_NIS) # the world with NO_NIS
PLIST_SUB+= NO_NIS="@comment "
+PLIST_FILES+=%%PYTHON_LIBDIR%%/lib-dynload/nis.so
.else
PLIST_SUB+= NO_NIS=""
.endif
--- /usr/ports/lang/python27/pkg-plist.orig 2010-10-19
05:00:28.000000000 +0000
+++ /usr/ports/lang/python27/pkg-plist 2010-10-19 05:00:41.000000000 +0000
@@ -885,7 +885,6 @@
%%PYTHON_LIBDIR%%/lib-dynload/itertools.so
%%PYTHON_LIBDIR%%/lib-dynload/math.so
%%PYTHON_LIBDIR%%/lib-dynload/mmap.so
-%%NO_NIS%%%%PYTHON_LIBDIR%%/lib-dynload/nis.so
%%PYTHON_LIBDIR%%/lib-dynload/operator.so
%%PYTHON_LIBDIR%%/lib-dynload/ossaudiodev.so
%%PYTHON_LIBDIR%%/lib-dynload/parser.so
Interestingly when I "make clean deinstall" the file
/usr/local/lib/python2.7/lib-dynload/nis_failed.so remains? It is the only
file that does remain.
Thank-you for managing this port, I hope that you will accept this change.
Kind regards, Dewayne
More information about the freebsd-python
mailing list