[pkg-bacula-devel] Bug#806605: bacula: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

Santiago Vila sanvila at debian.org
Sun Nov 29 16:21:59 UTC 2015


Package: src:bacula
Version: 7.0.5+dfsg-3
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
grep: config.log: No such file or directory
dh build-indep --with autotools_dev
   dh_testdir -i
   dh_autotools-dev_updateconfig -i
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<BUILDDIR>>/bacula-7.0.5+dfsg'
grep: config.log: No such file or directory
sed -e 's/XX_DB_XX/pgsql/' -e 's/XX_DBLONGNAME_XX/postgresql/' 'debian/bacula-director-db.postinst.in' >'debian/bacula-director-pgsql.postinst'; sed -e 's/XX_DB_XX/pgsql/' -e 's/XX_DBLONGNAME_XX/postgresql/' 'debian/bacula-sd-db.install.in' >'debian/bacula-sd-pgsql.install'; sed -e 's/XX_DB_XX/pgsql/' -e 's/XX_DBLONGNAME_XX/postgresql/' 'debian/bacula-director-db.templates.in' >'debian/bacula-director-pgsql.templates'; sed -e 's/XX_DB_XX/pgsql/' -e 's/XX_DBLONGNAME_XX/postgresql/' 'debian/bacula-director-db.prerm.in' >'debian/bacula-director-pgsql.prerm'; sed -e 's/XX_DB_XX/pgsql/' -e 's/XX_DBLONGNAME_XX/postgresql/' 'debian/bacula-director-db.manpages.in' >'debian/bacula-director-pgsql.manpages'; sed -e 's/XX_DB_XX/pgsql/' -e 's/XX_DBLONGNAME_XX/postgresql/' 'debian/bacula-common-db.install.in' >'debian/bacula-common-pgsql.install'; sed -e 's/XX_DB_XX/pgsql/' -e 's/XX_DBLONGNAME_XX/postgresql/' 'debian/bacula-director-db.postrm.in' >'debian/bacula-director-pgsql.postrm'; sed -e 's/XX_DB_XX/pgsql/' -e 's/XX_DBLONGNAME_XX/postgresql/' 'debian/bacula-sd-db.manpages.in' >'debian/bacula-sd-pgsql.manpages'; sed -e 's/XX_DB_XX/pgsql/' -e 's/XX_DBLONGNAME_XX/postgresql/' 'debian/bacula-common-db.links.in' >'debian/bacula-common-pgsql.links'; sed -e 's/XX_DB_XX/pgsql/' -e 's/XX_DBLONGNAME_XX/postgresql/' 'debian/bacula-director-db.config.in' >'debian/bacula-director-pgsql.config'; sed -e 's/XX_DB_XX/mysql/' -e 's/XX_DBLONGNAME_XX/mysql/' 'debian/bacula-director-db.postinst.in' >'debian/bacula-director-mysql.postinst'; sed -e 's/XX_DB_XX/mysql/' -e 's/XX_DBLONGNAME_XX/mysql/' 'debian/bacula-sd-db.install.in' >'debian/bacula-sd-mysql.install'; sed -e 's/XX_DB_XX/mysql/' -e 's/XX_DBLONGNAME_XX/mysql/' 'debian/bacula-director-db.templates.in' >'debian/bacula-director-mysql.templates'; sed -e 's/XX_DB_XX/mysql/' -e 's/XX_DBLONGNAME_XX/mysql/' 'debian/bacula-director-db.prerm.in' >'debian/bacula-director-mysql.prerm'; sed -e 's/XX_DB_XX/mysql/' -e 's/XX_DBLONGNAME_XX/mysql/' 'debian/bacula-director-db.manpages.in' >'debian/bacula-director-mysql.manpages'; sed -e 's/XX_DB_XX/mysql/' -e 's/XX_DBLONGNAME_XX/mysql/' 'debian/bacula-common-db.install.in' >'debian/bacula-common-mysql.install'; sed -e 's/XX_DB_XX/mysql/' -e 's/XX_DBLONGNAME_XX/mysql/' 'debian/bacula-director-db.postrm.in' >'debian/bacula-director-mysql.postrm'; sed -e 's/XX_DB_XX/mysql/' -e 's/XX_DBLONGNAME_XX/mysql/' 'debian/bacula-sd-db.manpages.in' >'debian/bacula-sd-mysql.manpages'; sed -e 's/XX_DB_XX/mysql/' -e 's/XX_DBLONGNAME_XX/mysql/' 'debian/bacula-common-db.links.in' >'debian/bacula-common-mysql.links'; sed -e 's/XX_DB_XX/mysql/' -e 's/XX_DBLONGNAME_XX/mysql/' 'debian/bacula-director-db.config.in' >'debian/bacula-director-mysql.config'; sed -e 's/XX_DB_XX/sqlite3/' -e 's/XX_DBLONGNAME_XX/sqlite3/' 'debian/bacula-director-db.postinst.in' >'debian/bacula-director-sqlite3.postinst'; sed -e 's/XX_DB_XX/sqlite3/' -e 's/XX_DBLONGNAME_XX/sqlite3/' 'debian/bacula-sd-db.install.in' >'debian/bacula-sd-sqlite3.install'; sed -e 's/XX_DB_XX/sqlite3/' -e 's/XX_DBLONGNAME_XX/sqlite3/' 'debian/bacula-director-db.templates.in' >'debian/bacula-director-sqlite3.templates'; sed -e 's/XX_DB_XX/sqlite3/' -e 's/XX_DBLONGNAME_XX/sqlite3/' 'debian/bacula-director-db.prerm.in' >'debian/bacula-director-sqlite3.prerm'; sed -e 's/XX_DB_XX/sqlite3/' -e 's/XX_DBLONGNAME_XX/sqlite3/' 'debian/bacula-director-db.manpages.in' >'debian/bacula-director-sqlite3.manpages'; sed -e 's/XX_DB_XX/sqlite3/' -e 's/XX_DBLONGNAME_XX/sqlite3/' 'debian/bacula-common-db.install.in' >'debian/bacula-common-sqlite3.install'; sed -e 's/XX_DB_XX/sqlite3/' -e 's/XX_DBLONGNAME_XX/sqlite3/' 'debian/bacula-director-db.postrm.in' >'debian/bacula-director-sqlite3.postrm'; sed -e 's/XX_DB_XX/sqlite3/' -e 's/XX_DBLONGNAME_XX/sqlite3/' 'debian/bacula-sd-db.manpages.in' >'debian/bacula-sd-sqlite3.manpages'; sed -e 's/XX_DB_XX/sqlite3/' -e 's/XX_DBLONGNAME_XX/sqlite3/' 'debian/bacula-common-db.links.in' >'debian/bacula-common-sqlite3.links'; sed -e 's/XX_DB_XX/sqlite3/' -e 's/XX_DBLONGNAME_XX/sqlite3/' 'debian/bacula-director-db.config.in' >'debian/bacula-director-sqlite3.config';
autoconf -I autoconf/ -o configure autoconf/configure.in
dh_auto_configure -- --enable-smartalloc --with-tcp-wrappers --with-openssl --with-libiconv-prefix=/usr/include --with-readline=/usr/include/readline --disable-conio --with-libintl-prefix=/usr/include --docdir=\${prefix}/share/doc/bacula-common --htmldir=\${prefix}/share/doc/bacula-common/html --libdir=\${prefix}/lib/bacula --enable-batch-insert --enable-ipv6 --with-dir-password=XXX_DIRPASSWORD_XXX --with-fd-password=XXX_FDPASSWORD_XXX --with-sd-password=XXX_SDPASSWORD_XXX --with-mon-dir-password=XXX_MONDIRPASSWORD_XXX --with-mon-fd-password=XXX_MONFDPASSWORD_XXX --with-mon-sd-password=XXX_MONSDPASSWORD_XXX --with-db-name=XXX_DBNAME_XXX --with-db-user=XXX_DBUSER_XXX --with-db-password=XXX_DBPASSWORD_XXX --config-cache --with-archivedir=/nonexistant/path/to/file/archive/dir --sysconfdir=/etc/bacula --with-scriptdir=/etc/bacula/scripts --sharedstatedir=/var/lib/bacula --localstatedir=/var/lib/bacula --with-logdir=/var/log/bacula --with-pid-dir=/var/run/bacula --with-smtp-host=localhost --with-working-dir=/var/lib/bacula --with-subsys-dir=/var/lock --with-dump-email=root --with-job-email=root --with-mysql --with-postgresql --with-sqlite3 --enable-bat --with-x --with-systemd=/lib/systemd/system
	./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking --enable-smartalloc --with-tcp-wrappers --with-openssl --with-libiconv-prefix=/usr/include --with-readline=/usr/include/readline --disable-conio --with-libintl-prefix=/usr/include --docdir=\${prefix}/share/doc/bacula-common --htmldir=\${prefix}/share/doc/bacula-common/html --libdir=\${prefix}/lib/bacula --enable-batch-insert --enable-ipv6 --with-dir-password=XXX_DIRPASSWORD_XXX --with-fd-password=XXX_FDPASSWORD_XXX --with-sd-password=XXX_SDPASSWORD_XXX --with-mon-dir-password=XXX_MONDIRPASSWORD_XXX --with-mon-fd-password=XXX_MONFDPASSWORD_XXX --with-mon-sd-password=XXX_MONSDPASSWORD_XXX --with-db-name=XXX_DBNAME_XXX --with-db-user=XXX_DBUSER_XXX --with-db-password=XXX_DBPASSWORD_XXX --config-cache --with-archivedir=/nonexistant/path/to/file/archive/dir --sysconfdir=/etc/bacula --with-scriptdir=/etc/bacula/scripts --sharedstatedir=/var/lib/bacula --localstatedir=/var/lib/bacula --with-logdir=/var/log/bacula --with-pid-dir=/var/run/bacula --with-smtp-host=localhost --with-working-dir=/var/lib/bacula --with-subsys-dir=/var/lock --with-dump-email=root --with-job-email=root --with-mysql --with-postgresql --with-sqlite3 --enable-bat --with-x --with-systemd=/lib/systemd/system

[... snipped ...]

libtool: install: warning: `/<<BUILDDIR>>/bacula-7.0.5+dfsg/src/lib/libbac.la' has not been installed in `/usr/lib/bacula'
libtool: install: warning: `/<<BUILDDIR>>/bacula-7.0.5+dfsg/src/cats/libbaccats.la' has not been installed in `/usr/lib/bacula'
libtool: install: warning: `/<<BUILDDIR>>/bacula-7.0.5+dfsg/src/cats/libbacsql.la' has not been installed in `/usr/lib/bacula'
libtool: install: warning: `/<<BUILDDIR>>/bacula-7.0.5+dfsg/src/lib/libbaccfg.la' has not been installed in `/usr/lib/bacula'
libtool: install: warning: `/<<BUILDDIR>>/bacula-7.0.5+dfsg/src/lib/libbac.la' has not been installed in `/usr/lib/bacula'
libtool: install: warning: `/<<BUILDDIR>>/bacula-7.0.5+dfsg/src/lib/libbac.la' has not been installed in `/usr/lib/bacula'
libtool: install: warning: `/<<BUILDDIR>>/bacula-7.0.5+dfsg/src/lib/libbac.la' has not been installed in `/usr/lib/bacula'
libtool: install: warning: `/<<BUILDDIR>>/bacula-7.0.5+dfsg/src/lib/libbac.la' has not been installed in `/usr/lib/bacula'
chmod 755 /<<BUILDDIR>>/bacula-7.0.5+dfsg/debian/tmp/usr/sbin/bsmtp
make[2]: Leaving directory '/<<BUILDDIR>>/bacula-7.0.5+dfsg/src/tools'
make[2]: Entering directory '/<<BUILDDIR>>/bacula-7.0.5+dfsg/manpages'
/<<BUILDDIR>>/bacula-7.0.5+dfsg/autoconf/mkinstalldirs /<<BUILDDIR>>/bacula-7.0.5+dfsg/debian/tmp//usr/share/man/man8
mkdir -p -- /<<BUILDDIR>>/bacula-7.0.5+dfsg/debian/tmp//usr/share/man/man8
for I in bacula.8 bacula-dir.8 bacula-fd.8 bacula-sd.8 bconsole.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 btraceback.8 dbcheck.8 bwild.8 bregex.8 bpluginfo.8; \
  do (/bin/rm -f $I.gz; gzip -c $I >$I.gz; \
     /usr/bin/install -c -m 644 $I.gz /<<BUILDDIR>>/bacula-7.0.5+dfsg/debian/tmp/usr/share/man/man8/$I.gz; \
     rm -f $I.gz); \
done
/<<BUILDDIR>>/bacula-7.0.5+dfsg/autoconf/mkinstalldirs /<<BUILDDIR>>/bacula-7.0.5+dfsg/debian/tmp//usr/share/man/man1
mkdir -p -- /<<BUILDDIR>>/bacula-7.0.5+dfsg/debian/tmp//usr/share/man/man1
for I in bsmtp.1 bat.1; \
  do (/bin/rm -f $I.gz; gzip -c $I >$I.gz; \
     /usr/bin/install -c -m 644 $I.gz /<<BUILDDIR>>/bacula-7.0.5+dfsg/debian/tmp/usr/share/man/man1/$I.gz; \
     rm -f $I.gz); \
done
make[2]: Leaving directory '/<<BUILDDIR>>/bacula-7.0.5+dfsg/manpages'
make[1]: Leaving directory '/<<BUILDDIR>>/bacula-7.0.5+dfsg'
   debian/rules override_dh_install
make[1]: Entering directory '/<<BUILDDIR>>/bacula-7.0.5+dfsg'
HAVE_SYSTEMD=1
chmod 755 debian/additions/postinst-common
chmod 755 debian/scripts/install-dbconfig
dh_install
chmod 755 debian/bacula-common/usr/lib/bacula/btraceback
chmod: cannot access 'debian/bacula-common/usr/lib/bacula/btraceback': No such file or directory
debian/rules:118: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 1
make[1]: Leaving directory '/<<BUILDDIR>>/bacula-7.0.5+dfsg'
debian/rules:96: 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-bacula-devel mailing list