[Pkg-nagios-devel] Bug#806623: icinga2: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Santiago Vila
sanvila at debian.org
Sun Nov 29 16:22:38 UTC 2015
Package: src:icinga2
Version: 2.4.0-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 systemd
dh_testdir -i
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
test -f third-party/cmake/GNUInstallDirs.cmake.disabled || \
mv third-party/cmake/GNUInstallDirs.cmake third-party/cmake/GNUInstallDirs.cmake.disabled
dh_auto_configure -- \
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DICINGA2_RUNDIR=/run \
-DICINGA2_USER=nagios \
[... snipped ...]
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/22-migrating-from-icinga-1x.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/7-icinga-template-library.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/1-about.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/4-configuring-icinga-2.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/20-script-debugger.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/5-advanced-topics.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/8-cli-commands.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/21-development.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/12-agent-based-checks.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/18-language-reference.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/9-icinga2-api.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/13-distributed-monitoring-ha.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/17-upgrading-icinga-2.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/14-addons-plugins.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/16-troubleshooting.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/19-library-reference.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/15-features.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/10-monitoring-remote-systems.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/11-icinga2-client.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/23-appendix.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/icinga2/markdown/2-getting-started.md
-- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/bin/icinga-studio
-- Set runtime path of "/<<PKGBUILDDIR>>/debian/tmp/usr/bin/icinga-studio" to "/usr/lib/x86_64-linux-gnu/icinga2"
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
# remove features-enabled - these will be activated by postinst later
rm -r debian/tmp/etc/icinga2/features-enabled/*
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_install
if [ -d debian/icinga2-common/ ]; then chmod +x debian/icinga2-common/usr/lib/icinga2/prepare-dirs; fi
# remove ido files from other packages
if [ -d debian/icinga2-common/ ]; then rm debian/icinga2-common/etc/icinga2/features-available/ido-*; fi
rm debian/libicinga2/usr/lib/*/icinga2/libdb_ido_*
rm: cannot remove 'debian/libicinga2/usr/lib/*/icinga2/libdb_ido_*': No such file or directory
debian/rules:38: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:6: 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-nagios-devel
mailing list