Bug 254033

Summary: net/samba413 NO_PYHTON fails in packaging
Product: Ports & Packages Reporter: Henrik Rosenke <rosenke>
Component: Individual Port(s)Assignee: Timur I. Bakeyev <timur>
Status: Closed Overcome By Events    
Severity: Affects Many People Flags: bugzilla: maintainer-feedback? (timur)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
pkg-plist patch for samba413.1_2 none

Description Henrik Rosenke 2021-03-05 10:37:55 UTC
Hello,

when building samba with NO_PYTHON defined in make.conf, packaging fails. 

a few lines of the failure:

[00:09:06] =======================<phase: package        >============================
[00:09:06] ===>  Building package for samba413-4.13.1_1
[00:09:07] pkg-static: Unable to access file /wrkdirs/usr/ports/net/samba413/work/stage/usr/local/man/man8/samba-gpupdate.8.gz:No such file or directory
[00:09:07] pkg-static: Unable to access file /wrkdirs/usr/ports/net/samba413/work/stage/usr/local/lib/python3.7/site-packages/samba/__init__.py:No such file or directory
[00:09:07] pkg-static: Unable to access file /wrkdirs/usr/ports/net/samba413/work/stage/usr/local/lib/python3.7/site-packages/samba/_glue.so:No such file or directory
[00:09:07] pkg-static: Unable to access file /wrkdirs/usr/ports/net/samba413/work/stage/usr/local/lib/python3.7/site-packages/samba/_ldb.so:No such file or directory
[00:09:07] pkg-static: Unable to access file /wrkdirs/usr/ports/net/samba413/work/stage/usr/local/lib/python3.7/site-packages/samba/auth_util.py:No such file or directory
[00:09:07] pkg-static: Unable to access file /wrkdirs/usr/ports/net/samba413/work/stage/usr/local/lib/python3.7/site-packages/samba/auth.so:No such file or directory
[00:09:07] pkg-static: Unable to access file /wrkdirs/usr/ports/net/samba413/work/stage/usr/local/lib/python3.7/site-packages/samba/colour.py:No such file or directory
[00:09:07] pkg-static: Unable to access file /wrkdirs/usr/ports/net/samba413/work/stage/usr/local/lib/python3.7/site-packages/samba/common.py:No such file or directory
[00:09:07] pkg-static: Unable to access file /wrkdirs/usr/ports/net/samba413/work/stage/usr/local/lib/python3.7/site-packages/samba/compat.py:No such file or directory
[00:09:07] pkg-static: Unable to access file /wrkdirs/usr/ports/net/samba413/work/stage/usr/local/lib/python3.7/site-packages/samba/credentials.so:No such file or directory
[00:09:07] pkg-static: Unable to access file /wrkdirs/usr/ports/net/samba413/work/stage/usr/local/lib/python3.7/site-packages/samba/crypto.so:No such file or directory
[00:09:07] pkg-static: Unable to access file /wrkdirs/usr/ports/net/samba413/work/stage/usr/local/lib/python3.7/site-packages/samba/dbchecker.py:No such file or directory

Samba47 build without this problem, this seems to affect any samba version above this change: https://svnweb.freebsd.org/ports/head/net/samba410/pkg-plist?r1=505445&r2=505446&pathrev=554445
Comment 1 Henrik Rosenke 2021-03-05 10:39:49 UTC
Created attachment 222997 [details]
pkg-plist patch for samba413.1_2

With this patch, i was able to build samba413.1_2 successfully with NO_PYTHON set.
Comment 2 Timur I. Bakeyev freebsd_committer freebsd_triage 2021-05-04 00:21:14 UTC
I believe that splitting pkg-plist into smaller chunks accidentally fixed that issue for 4.13.

I've applied the fix to 4.12 though.

Thank you!