Bug 273769 - security/py-gssapi py39-gssapi-1.8.3 subprocess.CalledProcessError: Command ' --libs gssapi' returned non-zero exit status 127
Summary: security/py-gssapi py39-gssapi-1.8.3 subprocess.CalledProcessError: Command '...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Robert Clausecker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-13 21:56 UTC by Oclair
Modified: 2023-09-22 05:57 UTC (History)
3 users (show)

See Also:
john: maintainer-feedback+
fuz: merge-quarterly?


Attachments
security/py-gssapi: Enforce GSSAPI OPTION selection with SINGLE (563 bytes, patch)
2023-09-19 22:43 UTC, John W. O'Brien
john: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oclair 2023-09-13 21:56:09 UTC
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
Comment 1 John W. O'Brien 2023-09-18 17:07:50 UTC
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
Comment 2 Oclair 2023-09-19 19:26:17 UTC
Hi the output was blank!
Comment 3 John W. O'Brien 2023-09-19 22:43:23 UTC
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.
Comment 4 Robert Clausecker freebsd_committer freebsd_triage 2023-09-22 01:21:21 UTC
Shall this PR be merged into the quarterly branch?
Comment 5 commit-hook freebsd_committer freebsd_triage 2023-09-22 05:08:52 UTC
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(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2023-09-22 05:56:28 UTC
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(-)
Comment 7 Robert Clausecker freebsd_committer freebsd_triage 2023-09-22 05:57:01 UTC
Thank you for your contribution.