Bug 271939 - security/sssd fails to build on Poudriere at the Package phase: pkg-static: Unable to access file /wrkdirs/usr/ports/security/sssd/work-default/stage/usr/local/libexec/sssd/sssd_pac: No such file or directory
Summary: security/sssd fails to build on Poudriere at the Package phase: pkg-static: U...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Mateusz Piotrowski
URL:
Keywords: needs-qa
: 272453 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-06-10 18:25 UTC by ddrinnon
Modified: 2023-07-15 11:02 UTC (History)
5 users (show)

See Also:
jhixson: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ddrinnon 2023-06-10 18:25:33 UTC
security/sssd fails to build on Poudriere at the Package phase:

=======================<phase: package        >============================
===== env: 'PKG_NOTES=build_timestamp built_by' 'PKG_NOTE_build_timestamp=2023-06-09T12:53:53+0000' 'PKG_NOTE_built_by=poudriere-git-3.3.99.20220831' NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building package for sssd-1.16.5_9
pkg-static: Unable to access file /wrkdirs/usr/ports/security/sssd/work-default/stage/usr/local/lib/krb5/plugins/authdata/sssd_pac_plugin.so:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/security/sssd/work-default/stage/usr/local/libexec/sssd/sssd_pac:No such file or directory
*** Error code 1
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2023-06-11 12:07:40 UTC
Which versions of FreeBSD? Host and jail.

Does a simple re-run of the build (without prior use of poudriere-ports(8)) lead to the same error? 

I could not reproduce the issue with poudriere-devel-3.3.99.20220831 and a 1400090 jail.
Comment 2 ddrinnon 2023-06-11 17:29:58 UTC
(In reply to Graham Perrin from comment #1)

This is happening on FreeBSD_12-4-RELEASE amd64 running poudriere-devel-3.3.99.20220831.  It is failing the Package phase - it Builds without any problems.
Comment 3 ddrinnon 2023-06-11 17:31:51 UTC
Host and Jail are also FreeBSD_12-4-RELEASE amd64.
Comment 4 ddrinnon 2023-06-13 03:10:12 UTC
(In reply to Graham Perrin from comment #1)

It also fails to package on FreeBSD_13-2x64-RELEASE Poudriere Host and Jail for amd64.  

=======================<phase: package        >============================
===== env: 'PKG_NOTES=build_timestamp built_by' 'PKG_NOTE_build_timestamp=2023-06-12T23:31:25+0000' 'PKG_NOTE_built_by=poudriere-git-3.3.99.20220831' NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building package for sssd-1.16.5_9
pkg-static: Unable to access file /wrkdirs/usr/ports/security/sssd/work-default/stage/usr/local/lib/krb5/plugins/authdata/sssd_pac_plugin.so:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/security/sssd/work-default/stage/usr/local/libexec/sssd/sssd_pac:No such file or directory
*** Error code 1
Comment 5 John Hixson freebsd_committer freebsd_triage 2023-07-05 20:00:15 UTC
I'll look into this soon.
Comment 6 rainer 2023-07-13 07:52:33 UTC
Please also fix 2023Q3
Comment 7 Mateusz Piotrowski freebsd_committer freebsd_triage 2023-07-13 09:15:30 UTC
*** Bug 272453 has been marked as a duplicate of this bug. ***
Comment 8 Mateusz Piotrowski freebsd_committer freebsd_triage 2023-07-13 09:21:51 UTC
I'm working on the fix.
Comment 9 commit-hook freebsd_committer freebsd_triage 2023-07-13 09:45:57 UTC
A commit in branch main references this bug:

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

commit ae334add4bdb2a871fc604510b1d734ceeb30660
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2023-07-13 09:43:49 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2023-07-13 09:43:49 +0000

    security/sssd: Fix pkg-plist and chase krb5 update

    This patch fixes two issues.

    The first issue was presence of missing files of the SSSDConfig Python
    module: PKG-INFO, SOURCES.txt, dependency_links., and top_level.txt. It
    looks like those files are not installed anymore so let's just remove
    them from pkg-plist.

    The other issue was the build system not accepting the new version of
    secruity/krb5. The fix is to patch sssd's build system to accept the new
    version. This is how we fixed previous incarnations of this bug in the
    past.

    PR:             271939
    Reported by:    ddrinnon@cdor.net
    Fixes:  7228a09df016 security/krb5: krb5-121 is now default
    MFH:            2023Q3
    Sponsored by:   Klara Inc.

 security/sssd/Makefile                                    | 2 +-
 security/sssd/files/patch-src__external__pac_responder.m4 | 5 +++--
 security/sssd/pkg-plist                                   | 4 ----
 3 files changed, 4 insertions(+), 7 deletions(-)
Comment 10 commit-hook freebsd_committer freebsd_triage 2023-07-13 11:48:18 UTC
A commit in branch 2023Q3 references this bug:

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

commit 0784000f84c77ccd98ff973f99b26f61460b9c5e
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2023-07-13 09:43:49 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2023-07-13 11:46:35 +0000

    security/sssd: Fix pkg-plist and chase krb5 update

    This patch fixes two issues.

    The first issue was presence of missing files of the SSSDConfig Python
    module: PKG-INFO, SOURCES.txt, dependency_links., and top_level.txt. It
    looks like those files are not installed anymore so let's just remove
    them from pkg-plist.

    The other issue was the build system not accepting the new version of
    secruity/krb5. The fix is to patch sssd's build system to accept the new
    version. This is how we fixed previous incarnations of this bug in the
    past.

    PR:             271939
    Reported by:    ddrinnon@cdor.net
    Fixes:  7228a09df016 security/krb5: krb5-121 is now default
    MFH:            2023Q3
    Sponsored by:   Klara Inc.

    (cherry picked from commit ae334add4bdb2a871fc604510b1d734ceeb30660)

 security/sssd/Makefile                                    | 2 +-
 security/sssd/files/patch-src__external__pac_responder.m4 | 5 +++--
 security/sssd/pkg-plist                                   | 4 ----
 3 files changed, 4 insertions(+), 7 deletions(-)
Comment 11 Fernando Apesteguía freebsd_committer freebsd_triage 2023-07-15 11:02:43 UTC
How could this happened? I even added a comment to security/krb5/Makefile to build security/sssd with SMB=on :-(