[Pkg-samba-maint] Bug#818146: samba: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Santiago Vila
sanvila at debian.org
Mon Mar 14 09:20:54 UTC 2016
Package: src:samba
Version: 2:4.3.6+dfsg-1
User: sanvila at debian.org
Usertags: binary-indep
Severity: important
Dear maintainer:
I tried to build this package with "dpkg-buildpackage -A"
(i.e. only architecture-independent packages), and it failed:
--------------------------------------------------------------------------------
[...]
debian/rules build-indep
dh build-indep --with python2 --with systemd
dh_testdir -i
dh_update_autotools_config -i
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<BUILDDIR>>/samba-4.3.6+dfsg'
cd ctdb; CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" FCFLAGS="-g -O2 -fstack-protector-strong" FFLAGS="-g -O2 -fstack-protector-strong" GCJFLAGS="-g -O2 -fstack-protector-strong" LDFLAGS="-Wl,-z,relro -Wl,--as-needed" OBJCFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" OBJCXXFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --sysconfdir=/etc --localstatedir=/var --with-socketpath=/var/run/ctdb/ctdbd.socket --with-logdir=/var/log/ctdb
Checking for program gcc or cc : /usr/bin/gcc
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
[... snipped ...]
install -m 0755 debian/mksmbpasswd.awk /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/usr/sbin/mksmbpasswd
mkdir -p debian/samba/usr/lib/python2.7/dist-packages/samba
mv /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/usr/lib/python2.7/dist-packages/samba/dckeytab.so \
debian/samba/usr/lib/python2.7/dist-packages/samba/dckeytab.so
# use upstream version of smb.conf.5 if there is no built version
# this is a temporary workaround for #750593 in xsltproc
[ -e /usr/share/man/man5/smb.conf.5 ] || \
cp docs/manpages/smb.conf.5 /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/usr/share/man/man5/smb.conf.5
# Tests that shouldn't be installed
rm -f /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/usr/bin/async_connect_send_test
# Remove ctdb dev files
rm /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/usr/include/samba-4.0/ctdb*.h
rm /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/usr/include/ctdb*.h
rm /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/usr/lib/*/pkgconfig/ctdb.pc
# Remove ctdb tests
rm /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/usr/bin/ctdb_run_tests
rm /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/usr/bin/ctdb_run_cluster_tests
rm -rf /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/usr/lib/*/ctdb-tests
rm -rf /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/usr/share/ctdb-tests
# Remove libpam-smbpass, which is broken and slated for removal upstream.
rm -f /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/lib/*/security/pam_smbpass.so
rm -f /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/usr/bin/async_connect_send_test
# Install ctdb conffiles
mkdir -p /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/lib/systemd/system/
install -m 0644 ctdb/config/ctdb.service /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp/lib/systemd/system/
dh_install --sourcedir=/<<BUILDDIR>>/samba-4.3.6+dfsg/debian/tmp --list-missing --fail-missing
make[1]: Leaving directory '/<<BUILDDIR>>/samba-4.3.6+dfsg'
debian/rules override_dh_installdocs
make[1]: Entering directory '/<<BUILDDIR>>/samba-4.3.6+dfsg'
cp ctdb/config/events.d/README ctdb/README.eventscripts
cp ctdb/config/notify.d.README ctdb/README.notify.d
dh_installdocs
#patch doc
sed -i 's|/etc/sysconfig/|/etc/default/|' /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/ctdb/usr/share/doc/ctdb/web/*.html
sed: can't read /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/ctdb/usr/share/doc/ctdb/web/*.html: No such file or directory
debian/rules:108: recipe for target 'override_dh_installdocs' failed
make[1]: *** [override_dh_installdocs] Error 2
make[1]: Leaving directory '/<<BUILDDIR>>/samba-4.3.6+dfsg'
debian/rules:77: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit status 2
--------------------------------------------------------------------------------
Sorry not to have a fix, as I am reporting many bugs similar to
this one. The common hints are:
* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them
now.
* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").
Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.
Thanks.
More information about the Pkg-samba-maint
mailing list