Bug 267399

Summary: lang/python311 fails to package if WITHOUT_NIS defined in src.conf
Product: Ports & Packages Reporter: Raivo Hool <raivo>
Component: Individual Port(s)Assignee: freebsd-python (Nobody) <python>
Status: Closed FIXED    
Severity: Affects Only Me CC: lwhsu
Priority: --- Flags: bugzilla: maintainer-feedback? (python)
Version: Latest   
Hardware: Any   
OS: Any   

Description Raivo Hool 2022-10-28 08:32:09 UTC
Python 3.11 fails to package if WITHOUT_NIS=true is defined in /etc/src.conf.

pkg-static: Unable to access file /wrkdirs/usr/ports/lang/python311/work/stage/usr/local/lib/python3.11/lib-dynload/nis.cpython-311.so:No such file or directory

This is due to the conditional %%NO_NIS%% having been removed from pkg-plist in the case of 3.11.

3.10:
%%NO_NIS%%lib/python%%XYDOT%%/lib-dynload/nis.cpython-%%XY%%%%ABI%%.so

3.11:
lib/python%%XYDOT%%/lib-dynload/nis.cpython-%%XY%%.so

I recommend returning it.
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-10-28 08:55:11 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e59b196194fc817e4e7cc35db056233f53f90226

commit e59b196194fc817e4e7cc35db056233f53f90226
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2022-10-28 08:50:56 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-10-28 08:50:56 +0000

    lang/python311: Fix packaging when WITHOUT_NIS is defined

    PR:             267399
    Reported by:    Raivo Hool <raivo@lehma.com>

 lang/python311/pkg-plist | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Li-Wen Hsu freebsd_committer freebsd_triage 2022-10-28 08:55:30 UTC
Fixed, thanks for reporting!
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-10-28 09:15:15 UTC
A commit in branch 2022Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=86d267c8e4662446cc51fa32dd2399fcbfff90f6

commit 86d267c8e4662446cc51fa32dd2399fcbfff90f6
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2022-10-28 08:50:56 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-10-28 09:13:41 +0000

    lang/python311: Fix packaging when WITHOUT_NIS is defined

    PR:             267399
    Reported by:    Raivo Hool <raivo@lehma.com>

    (cherry picked from commit e59b196194fc817e4e7cc35db056233f53f90226)

 lang/python311/pkg-plist | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)