ports/155099: Not handled "nis_failed.so" file by python port in world without NIS

Ildar Ibragimov dar.quonb at gmail.com
Sun Feb 27 19:30:11 UTC 2011


>Number:         155099
>Category:       ports
>Synopsis:       Not handled "nis_failed.so" file by python port in world without NIS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 27 19:30:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ildar Ibragimov
>Release:        8.2 amd64
>Organization:
>Environment:
FreeBSD ???.??? 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sat Feb 19 19:03:40 MSK 2011     root@???.???:/usr/obj/usr/src/sys/MYKERNEL  amd64
>Description:
There are no /usr/bin/yp* utilities in world built with "WITHOUT_NIS=" option in /etc/src.conf.
/usr/ports/lang/python??/Makefile checks this situation and include or exclude library /usr/local/lib/python?.?/lib-dynload/nis.so accordingly.
But in world without NIS python installs library /usr/local/lib/python?.?/lib-dynload/nis_failed.so instead.
>How-To-Repeat:
Install and uninstall a python interpretor (/usr/ports/lang/python??) in world without NIS.
The file /usr/local/lib/python?.?/lib-dynload/nis_failed.so will be left.
>Fix:
Change in Makefile

.if !exists(/usr/bin/ypcat) # the world with NO_NIS
PLIST_SUB+=     NO_NIS="@comment "
.else
PLIST_SUB+=     NO_NIS=""
.endif

to

.if !exists(/usr/bin/ypcat) # the world with NO_NIS
PLIST_SUB+=     NIS=""
PLIST_SUB+=     NO_NIS="@comment "
.else
PLIST_SUB+=     NIS="@comment "
PLIST_SUB+=     NO_NIS=""
.endif

And add to pkg-plist:

%%NIS%%%%PYTHON_LIBDIR%%/lib-dynload/nis_failed.so

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list