From owner-freebsd-python@FreeBSD.ORG Tue Oct 19 12:51:37 2010 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D78471065693; Tue, 19 Oct 2010 12:51:37 +0000 (UTC) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Received: from nschwqsrv01p.mx.bigpond.com (nschwqsrv01p.mx.bigpond.com [61.9.189.231]) by mx1.freebsd.org (Postfix) with ESMTP id 4327E8FC12; Tue, 19 Oct 2010 12:51:36 +0000 (UTC) Received: from nschwotgx03p.mx.bigpond.com ([58.172.114.57]) by nschwmtas02p.mx.bigpond.com with ESMTP id <20101019061630.IDBZ4250.nschwmtas02p.mx.bigpond.com@nschwotgx03p.mx.bigpond.com>; Tue, 19 Oct 2010 06:16:30 +0000 Received: from mail.heuristicsystems.com.au ([58.172.114.57]) by nschwotgx03p.mx.bigpond.com with ESMTP id <20101019061630.IEPF16083.nschwotgx03p.mx.bigpond.com@mail.heuristicsystems.com.au>; Tue, 19 Oct 2010 06:16:30 +0000 Received: from white (white.hs [10.0.5.2]) (authenticated bits=0) by mail.heuristicsystems.com.au (8.14.4/8.13.6) with ESMTP id o9J6FSSv020348 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Tue, 19 Oct 2010 17:15:30 +1100 (EST) (envelope-from dewayne.geraghty@heuristicsystems.com.au) From: "Dewayne" To: Date: Tue, 19 Oct 2010 17:15:28 +1100 Organization: Heuristic Systems Pty Ltd Message-ID: <38EB0627392C42BE8047DBD5B77DAC1A@HS> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: ActvVQaAgkJo1isET86LYn88Tf+dlQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A150204.4CBD37BE.00DC,ss=1,fgs=0 X-SIH-MSG-ID: rx81EdL3TAD0zmQv0WC2O1J3yArnq3Mt8ZoaRdJjqwQZTULdvMbOJ4/2Y9wShZ7n3S5MMBCEOGsjY7zmXY7RiA== Cc: ports@FreeBSD.org Subject: Python27 package build failure - missing NIS library X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2010 12:51:37 -0000 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 @@ -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