Bug#909542: opam: FTBFS when built with dpkg-buildpackage -A
Package: src:opam
Version: 2.0.0-4
Severity: serious
Tags: ftbfs
Dear maintainer:
I tried to build this package in buster but it failed:
--------------------------------------------------------------------------------
[...]
debian/rules binary-indep
dh binary-indep --with ocaml
dh_testdir -i
dh_update_autotools_config -i
dh_autoreconf -i
find ! -ipath "./debian/*" -a ! \( -path '*/.git/*' -o -path '*/.hg/*' -o -path '*/.bzr/*' -o -path '*/.svn/*' -o -path '*/CVS/*' \) -a -type f -exec md5sum {} + -o -type l -printf "symlink %p
" > debian/autoreconf.before
grep -q ^XDT_ configure.ac
autoreconf -f -i
find ! -ipath "./debian/*" -a ! \( -path '*/.git/*' -o -path '*/.hg/*' -o -path '*/.bzr/*' -o -path '*/.svn/*' -o -path '*/CVS/*' \) -a -type f -exec md5sum {} + -o -type l -printf "symlink %p
" > debian/autoreconf.after
dh_ocamlinit -i
touch ocamlinit-stamp
debian/rules override_dh_auto_configure
[... snipped ...]
dh_perl -i
dh_usrlocal -i
dh_link -i
dh_installwm -i
dh_installxfonts -i
dh_strip_nondeterminism -i
rm -f debian/opam-docs.debhelper.log
debian/rules override_dh_compress
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_compress -X.pdf
cd debian/opam-docs
chmod a-x usr/share/doc/opam-docs/README.md usr/share/doc/opam-docs/changelog usr/share/doc/opam-docs/changelog.Debian usr/share/man/man1/opam-admin-cache.1 usr/share/man/man1/opam-admin-filter.1 usr/share/man/man1/opam-admin-index.1 usr/share/man/man1/opam-admin-lint.1 usr/share/man/man1/opam-admin-list.1 usr/share/man/man1/opam-admin-upgrade.1 usr/share/man/man1/opam-admin.1 usr/share/man/man1/opam-clean.1 usr/share/man/man1/opam-config.1 usr/share/man/man1/opam-env.1 usr/share/man/man1/opam-exec.1 usr/share/man/man1/opam-help.1 usr/share/man/man1/opam-info.1 usr/share/man/man1/opam-init.1 usr/share/man/man1/opam-install.1 usr/share/man/man1/opam-lint.1 usr/share/man/man1/opam-list.1 usr/share/man/man1/opam-pin.1 usr/share/man/man1/opam-reinstall.1 usr/share/man/man1/opam-remote.1 usr/share/man/man1/opam-remove.1 usr/share/man/man1/opam-repository.1 usr/share/man/man1/opam-search.1 usr/share/man/man1/opam-show.1 usr/share/man/man1/opam-source.1 usr/share/man/man1/opam-switch.1 usr
/share/man/man1/opam-uninstall.1 usr/share/man/man1/opam-unpin.1 usr/share/man/man1/opam-update.1 usr/share/man/man1/opam-upgrade.1 usr/share/man/man1/opam-var.1 usr/share/man/man1/opam.1
gzip -9nf usr/share/doc/opam-docs/README.md usr/share/doc/opam-docs/changelog usr/share/doc/opam-docs/changelog.Debian usr/share/man/man1/opam-admin-cache.1 usr/share/man/man1/opam-admin-filter.1 usr/share/man/man1/opam-admin-index.1 usr/share/man/man1/opam-admin-lint.1 usr/share/man/man1/opam-admin-list.1 usr/share/man/man1/opam-admin-upgrade.1 usr/share/man/man1/opam-admin.1 usr/share/man/man1/opam-clean.1 usr/share/man/man1/opam-config.1 usr/share/man/man1/opam-env.1 usr/share/man/man1/opam-exec.1 usr/share/man/man1/opam-help.1 usr/share/man/man1/opam-info.1 usr/share/man/man1/opam-init.1 usr/share/man/man1/opam-install.1 usr/share/man/man1/opam-lint.1 usr/share/man/man1/opam-list.1 usr/share/man/man1/opam-pin.1 usr/share/man/man1/opam-reinstall.1 usr/share/man/man1/opam-remote.1 usr/share/man/man1/opam-remove.1 usr/share/man/man1/opam-repository.1 usr/share/man/man1/opam-search.1 usr/share/man/man1/opam-show.1 usr/share/man/man1/opam-source.1 usr/share/man/man1/opam-switch.1 usr
/share/man/man1/opam-uninstall.1 usr/share/man/man1/opam-unpin.1 usr/share/man/man1/opam-update.1 usr/share/man/man1/opam-upgrade.1 usr/share/man/man1/opam-var.1 usr/share/man/man1/opam.1
cd '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_fixperms -i
find debian/opam-docs ! -type l -a -true -a -true -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s
find debian/opam-docs/usr/share/doc -type f -a -true -a ! -regex 'debian/opam-docs/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null | xargs -0r chmod 0644
find debian/opam-docs/usr/share/doc -type d -a -true -a -true -print0 2>/dev/null | xargs -0r chmod 0755
find debian/opam-docs/usr/share/man -type f -a -true -a -true -print0 2>/dev/null | xargs -0r chmod 0644
find debian/opam-docs -type f \( -name '*.so.*' -o -name '*.so' -o -name '*.la' -o -name '*.a' -o -name '*.js' -o -name '*.css' -o -name '*.scss' -o -name '*.sass' -o -name '*.jpeg' -o -name '*.jpg' -o -name '*.png' -o -name '*.gif' -o -name '*.cmxs' \) -a -true -a -true -print0 2>/dev/null | xargs -0r chmod 0644
rm -f debian/opam-docs.debhelper.log
debian/rules override_dh_missing
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_missing --fail-missing
dh_missing: usr/doc/opam-installer/CHANGES exists in debian/tmp but is not installed to anywhere
dh_missing: usr/doc/opam-installer/README.md exists in debian/tmp but is not installed to anywhere
dh_missing: usr/doc/opam-installer/LICENSE exists in debian/tmp but is not installed to anywhere
dh_missing: missing files, aborting
The following debhelper tools have reported what they installed (with files per package)
* dh_install: opam (1), opam-docs (32), opam-installer (3)
* dh_installdocs: opam (0), opam-docs (2), opam-installer (0)
* dh_installexamples: opam (0), opam-docs (0), opam-installer (0)
* dh_installinfo: opam (0), opam-docs (0), opam-installer (0)
* dh_installman: opam (0), opam-docs (0), opam-installer (0)
If the missing files are installed by another tool, please file a bug against it.
When filing the report, if the tool is not part of debhelper itself, please reference the
"Logging helpers and dh_missing" section from the "PROGRAMMING" guide for debhelper (10.6.3+).
(in the debhelper package: /usr/share/doc/debhelper/PROGRAMMING.gz)
Be sure to test with dpkg-buildpackage -A/-B as the results may vary when only a subset is built
For a short-term work-around: Add the files to debian/not-installed
make[1]: *** [debian/rules:52: override_dh_missing] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:13: binary-indep] Error 2
dpkg-buildpackage: error: debian/rules binary-indep subprocess returned exit status 2
--------------------------------------------------------------------------------
To reproduce please try building with "dpkg-buildpackage -A".
Please consider uploading in source-only form (dpkg-buildpackage -S) so that this
kind of bugs do not propagate to testing.
Thanks.
Reply to: