Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 2010 17:15:28 +1100
From:      "Dewayne" <dewayne.geraghty@heuristicsystems.com.au>
To:        <python@FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   Python27 package build failure - missing NIS library
Message-ID:  <38EB0627392C42BE8047DBD5B77DAC1A@HS>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38EB0627392C42BE8047DBD5B77DAC1A>