Bug 258898

Summary: security/sssd: Fails to package: pkg-static: Unable to access file /.../python3.7/site-packages/*.so:No such file or directory
Product: Ports & Packages Reporter: rainer
Component: Individual Port(s)Assignee: Tijl Coosemans <tijl>
Status: Closed FIXED    
Severity: Affects Only Me CC: amendlik, beat, karli.sjoberg, lukas.slebodnik, lwhsu, tijl
Priority: --- Flags: bugzilla: maintainer-feedback? (lukas.slebodnik)
koobs: merge-quarterly+
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257866
Attachments:
Description Flags
patch tijl: maintainer-approval? (lukas.slebodnik)

Description rainer 2021-10-03 22:09:11 UTC
===> Staging rc.d startup script(s)
===========================================================================
=======================<phase: package        >============================
===>  Building package for sssd-1.16.5_3
pkg-static: Unable to access file /wrkdirs/usr/ports/security/sssd/work/stage/usr/local/lib/python3.7/site-packages/pyhbac.so:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/security/sssd/work/stage/usr/local/lib/python3.7/site-packages/pysss.so:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/security/sssd/work/stage/usr/local/lib/python3.7/site-packages/pysss_murmur.so:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/security/sssd/work/stage/usr/local/lib/python3.7/site-packages/pysss_nss_idmap.so:No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/ports/security/sssd
=>> Cleaning up wrkdir
===>  Cleaning for sssd-1.16.5_3
build of security/sssd | sssd-1.16.5_3 ended at Sun Oct  3 18:36:06 CEST 2021
build time: 00:23:00
!!! build failure encountered !!!


This is from 2021Q4 ports-tree.

---Begin OPTIONS List---
===> The following configuration options are available for sssd-1.16.5_3:
     DOCS=on: Build and/or install documentation
     SMB=on: Install IPA and AD providers (requires Samba4)
===> Use 'make config' to modify these settings
---End OPTIONS List---
Comment 1 amendlik 2021-10-09 04:29:35 UTC
This seems to have been caused by the latest change to this port: https://cgit.freebsd.org/ports/commit/?id=5945f7dd94e4a347f4ae3b32cf17222c988674ad
Comment 2 Tijl Coosemans freebsd_committer freebsd_triage 2021-10-09 16:20:35 UTC
Created attachment 228545 [details]
patch

Please try the attached patch.
Comment 3 rainer 2021-10-09 22:07:39 UTC
Builds in poudriere now - thanks!
Comment 4 Karli Sjöberg 2021-10-20 19:22:29 UTC
Patch worked for me as well! When is it going to get merged?
Comment 5 amendlik 2021-10-20 21:10:25 UTC
The patch works for me too.
Comment 6 commit-hook freebsd_committer freebsd_triage 2021-10-24 16:44:45 UTC
A commit in branch main references this bug:

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

commit b07a361a29711f26c51b24b433662baa37648194
Author:     Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2021-10-09 13:16:12 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2021-10-24 16:44:21 +0000

    security/sssd: Fix installation with automake 1.16.4

    Patch the configure script so it evaluates a variable that uses
    PYTHON_PREFIX (since automake 1.16.4) before PYTHON_PREFIX is unset.

    PR:             258898
    Approved by:    maintainer timeout (2 weeks)

 security/sssd/files/patch-configure.ac | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
Comment 7 rainer 2021-10-27 07:15:26 UTC
Can this be merged back into 2021Q4?
Comment 8 commit-hook freebsd_committer freebsd_triage 2021-10-27 19:26:54 UTC
A commit in branch 2021Q4 references this bug:

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

commit 78b01411ebc078d12fc4fa01db49d00f7e36a526
Author:     Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2021-10-09 13:16:12 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2021-10-27 19:26:27 +0000

    security/sssd: Fix installation with automake 1.16.4

    Patch the configure script so it evaluates a variable that uses
    PYTHON_PREFIX (since automake 1.16.4) before PYTHON_PREFIX is unset.

    PR:             258898
    Approved by:    maintainer timeout (2 weeks)

    (cherry picked from commit b07a361a29711f26c51b24b433662baa37648194)

 security/sssd/files/patch-configure.ac | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)