Hi there I saw there was not already a report so perhaps someone is also unable to build py39-gssapi-1.8.3 from ports. Kind Regards, Jason # cd /usr/ports/security/py-gssapi root@nq3:/usr/ports/security/py-gssapi # make clean ===> Cleaning for py39-gssapi-1.8.3 root@nq3:/usr/ports/security/py-gssapi # make ===> License ISCL accepted by the user ===> py39-gssapi-1.8.3 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by py39-gssapi-1.8.3 for building ===> Extracting for py39-gssapi-1.8.3 => SHA256 Checksum OK for gssapi-1.8.3.tar.gz. ===> Patching for py39-gssapi-1.8.3 ===> py39-gssapi-1.8.3 depends on executable: cython-3.9 - found ===> py39-gssapi-1.8.3 depends on package: py39-setuptools>=63.1.0 - found ===> py39-gssapi-1.8.3 depends on file: /usr/local/bin/python3.9 - found ===> Configuring for py39-gssapi-1.8.3 Using from env /bin/sh: --libs: not found Traceback (most recent call last): File "<string>", line 1, in <module> File "setup.py", line 109, in <module> link_args = shlex.split(get_output(f"{kc} --libs gssapi")) File "setup.py", line 22, in get_output res = subprocess.check_output(*args, shell=True, **kwargs) File "/usr/local/lib/python3.9/subprocess.py", line 424, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/local/lib/python3.9/subprocess.py", line 528, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command ' --libs gssapi' returned non-zero exit status 127. *** Error code 1 Stop. make[1]: stopped in /usr/ports/security/py-gssapi *** Error code 1
Thank you for your report, Jason. "Using from env" [0] implies that KRB5CONFIG [1] is not being set. What is the output of make -V PORT_OPTIONS -V KRB5CONFIG ? [0] https://github.com/pythongssapi/python-gssapi/blob/v1.8.3/setup.py#L40 [1] https://cgit.freebsd.org/ports/tree/security/py-gssapi/Makefile?id=7588876e01271f3f2191cfa238deb86a51fd2d03#n27
Hi the output was blank!
Created attachment 245030 [details] security/py-gssapi: Enforce GSSAPI OPTION selection with SINGLE (In reply to Oclair from comment #2) You must set exactly one OPTION from among GSSAPI_BASE, GSSAPI_HEIMDAL, and GSSAPI_MIT. The attached patch, converting that OPTION group from RADIO to SINGLE will make the error much clearer in this case. Not bumping PORTREVISION, because this change does not affect any working build.
Shall this PR be merged into the quarterly branch?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c561d3281419fefe3495732244b6a570d0145b74 commit c561d3281419fefe3495732244b6a570d0145b74 Author: John W. O'Brien <john@saltant.com> AuthorDate: 2023-09-22 01:19:09 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-09-22 04:56:49 +0000 security/py-gssapi: enforce that exactly one GSSAPI_* option is set You must set exactly one OPTION from among GSSAPI_BASE, GSSAPI_HEIMDAL, and GSSAPI_MIT. This patch, converting that OPTION group from RADIO to SINGLE will make the error much clearer in this case. PR: 273769 Reported by: Oclair <jason@aventia.pw> MFH: 2023Q3 security/py-gssapi/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
A commit in branch 2023Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=180f204723aad9bf022fac60b1f3822b2abdad80 commit 180f204723aad9bf022fac60b1f3822b2abdad80 Author: John W. O'Brien <john@saltant.com> AuthorDate: 2023-09-22 01:19:09 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-09-22 05:32:33 +0000 security/py-gssapi: enforce that exactly one GSSAPI_* option is set You must set exactly one OPTION from among GSSAPI_BASE, GSSAPI_HEIMDAL, and GSSAPI_MIT. This patch, converting that OPTION group from RADIO to SINGLE will make the error much clearer in this case. PR: 273769 Reported by: Oclair <jason@aventia.pw> MFH: 2023Q3 (cherry picked from commit c561d3281419fefe3495732244b6a570d0145b74) security/py-gssapi/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Thank you for your contribution.