Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jun 2014 00:10:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 191293] New: samba41 build fails missing python site-packages
Message-ID:  <bug-191293-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191293

            Bug ID: 191293
           Summary: samba41 build fails missing python site-packages
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: Infrastructure
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: dewayne@heuristicsystems.com.au

Samba41 fails to build on FreeBSD 9.3-Beta, due to missing files. 
pkg-static:
lstat(/usr/staging/usr/local/lib/python2.7/site-packages/samba/external/dns/__init__.py):
No such file or directory
pkg-static:
lstat(/usr/staging/usr/local/lib/python2.7/site-packages/samba/external/dns/dnssec.py):
No such file or directory
pkg-static:
lstat(/usr/staging/usr/local/lib/python2.7/site-packages/samba/external/dns/e164.py):
No such file or directory
...

The following failure occurs with the near default settings of
# make __MAKE_CONF=/dev/null DISABLE_VULNERABILITIES=yes
WRKDIRPREFIX=/var/ports DISTDIR=/distfiles TMPDIR=/tmp PACKAGES=/packages
STAGEDIR=/usr/staging WITH_PKGNG=yes -DBATCH clean deinstall package

and also obtain the same failure when I turn off most of the options, which is
my usual build.

--- Environment ---
For my usual build which worked on all previous samba41 versions, but I suspect
that samba is a beneficiary of a change in the infrastructure (/usr/ports/Mk)

# uname -vKU ; echo;make showconfig | grep "=on" ; echo;make -VPREFIX
FreeBSD 9.3-BETA3 #0: Tue Jun 17 09:03:07 EST 2014    
root@:/usr/obj/usr/src/sys/hqdev-smp-vga     902512 902512

     ACL_SUPPORT=on: File system ACL support
     ADS=on: Active Directory support
     AIO_SUPPORT=on: Asyncronous IO support
     LDAP=on: LDAP protocol support
     PTHREADPOOL=on: Pthread pool
     SYSLOG=on: Syslog logging support
     BIND99=on: Use bind99 as a DNS server frontend

/usr/local

--- Detail ---

# make -DBATCH -DUSE_PRODUCT -DUSE_PRESCOTT clean deinstall package
## [Selective relevant output]

'configure' finished successfully (1m36.774s)
/usr/bin/sed -i.bak -e 's|LINKFLAGS_PYEMBED.*|LINKFLAGS_PYEMBED = []|' 
/var/ports/usr/ports/net/samba41/work/samba-4.1.7/bin/c4che/default.cache.py
===>  Building for samba41-4.1.7
install:
/var/ports/usr/ports/net/samba41/work/samba-4.1.7/docs/manpages/gentest.1: No
such file or directory
install:
/var/ports/usr/ports/net/samba41/work/samba-4.1.7/docs/manpages/locktest.1: No
such file or directory
...
[ 240/3720] Compiling IDL librpc/idl/ntlmssp.idl
/var/ports/usr/ports/net/samba41/work/samba-4.1.7/librpc/idl/ntlmssp.idl:321:
warning: helper() is pidl-specific and deprecated. Use `include' instead
/var/ports/usr/ports/net/samba41/work/samba-4.1.7/librpc/idl/auth.idl:112:
warning: helper() is pidl-specific and deprecated. Use `include' instead
/var/ports/usr/ports/net/samba41/work/samba-4.1.7/librpc/idl/auth.idl:104:
error: Unable to determine origin of type `struct cli_credentials'
/var/ports/usr/ports/net/samba41/work/samba-4.1.7/librpc/idl/auth.idl:104:
error: Unable to determine origin of type `struct cli_credentials'
...
[3720/3720] Generating manpages/winbind_krb5_locator.7
Waf: Leaving directory `/var/ports/usr/ports/net/samba41/work/samba-4.1.7/bin'
'build' finished successfully (13m43.308s)
*** [pre-build] Error code 71 (ignored)
*** [pre-build] Error code 71 (ignored)
*** [pre-build] Error code 71 (ignored)
...
'install' finished successfully (2m24.610s)
====> Compressing man pages (compress-man)
===> Staging rc.d startup script(s)
===>  Installing for samba41-4.1.7
===>  Checking if net/samba41 already installed
===>   Registering installation for samba41-4.1.7
pkg-static:
lstat(/usr/staging/usr/local/lib/python2.7/site-packages/samba/external/dns/__init__.py):
No such file or directory
pkg-static:
lstat(/usr/staging/usr/local/lib/python2.7/site-packages/samba/external/dns/dnssec.py):
No such file or directory
pkg-static:
lstat(/usr/staging/usr/local/lib/python2.7/site-packages/samba/external/dns/e164.py):
No such file or directory
...
*** [fake-pkg] Error code 74

Stop in /usr/ports/net/samba41.

Because /usr/ports is mounted ro, in make.conf we have:
WRKDIRPREFIX=/var/ports
DISTDIR=/distfiles
TMPDIR=/tmp
PACKAGES=/packages
STAGEDIR=/usr/staging
DISABLE_VULNERABILITIES=yes # Always latest /usr/ports-vulnerabilities
intrinsic

which works successfully for the other 503 ports built on i386 and amd64.

Aside: Heimdal has a similar problem with info files when PREFIX!=/usr/local,
but its easier to just remove them from /usr/ports/Mk/bsd.port.mk.  Interesting
that pkg_* fails to build the package, while pkg does build it.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191293-13>