[Pkg-erlang-devel] Bug#806664: yaws: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Santiago Vila
sanvila at debian.org
Sun Nov 29 20:25:23 UTC 2015
Package: src:yaws
Version: 2.0.2-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 autotools_dev
dh_testdir -i
dh_autotools-dev_updateconfig -i
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_testdir
#
CFLAGS="-Wall -g -O2" \
./configure --host=x86_64-linux-gnu \
--build=x86_64-linux-gnu \
--prefix=/usr \
[... snipped ...]
make[3]: Entering directory '/<<PKGBUILDDIR>>/applications/wiki/src'
make[4]: Entering directory '/<<PKGBUILDDIR>>/applications/wiki/src'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/<<PKGBUILDDIR>>/applications/wiki/src'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/applications/wiki/src'
Making install in ebin
make[3]: Entering directory '/<<PKGBUILDDIR>>/applications/wiki/ebin'
make[4]: Entering directory '/<<PKGBUILDDIR>>/applications/wiki/ebin'
make[4]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/<<PKGBUILDDIR>>/debian/tmp/var/yaws/wiki/ebin/'
/usr/bin/install -c -m 644 utils.beam wiki.beam wiki_diff.beam wiki_format_txt.beam wiki_plugin_backlinks.beam wiki_plugin_dummy.beam wiki_plugin_menu.beam wiki_split.beam wiki_templates.beam wiki_to_html.beam wiki_utils.beam wiki_yaws.beam '/<<PKGBUILDDIR>>/debian/tmp/var/yaws/wiki/ebin/'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/applications/wiki/ebin'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/applications/wiki/ebin'
make[3]: Entering directory '/<<PKGBUILDDIR>>/applications/wiki'
make[4]: Entering directory '/<<PKGBUILDDIR>>/applications/wiki'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Leaving directory '/<<PKGBUILDDIR>>/applications/wiki'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/applications/wiki'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/applications/wiki'
#
# Fix permissions of application files
find /<<PKGBUILDDIR>>/debian/tmp/var/yaws -type f -exec chmod a-x \{\} \;
#
# Generate postinst and postrm scripts for applications
for app in chat mail wiki yapp ; do \
sed -e "s/@APPLICATION@/$app/g" \
debian/yaws-application.postinst.in >debian/yaws-$app.postinst || exit 1; \
sed -e "s/@APPLICATION@/$app/g" \
debian/yaws-application.postrm.in >debian/yaws-$app.postrm || exit 1 ; \
done
#
dh_install -i
cp: cannot stat 'debian/tmp/debian/tmp/usr/bin': No such file or directory
dh_install: cp --reflink=auto -a debian/tmp/debian/tmp/usr/bin debian/yaws//usr// returned exit code 1
debian/rules:122: recipe for target 'override_dh_auto_install-indep' failed
make[1]: *** [override_dh_auto_install-indep] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:35: 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-erlang-devel
mailing list