Package: src:compiz
Version: 1:0.9.13.0+16.10.20160818.2-3
Severity: serious
Tags: patch
Dear maintainer:
I tried to build this package with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder already tried as well)
but it failed:
--------------------------------------------------------------------------------
[...]
debian/rules build-indep
dh build-indep --parallel --with python2
dh_testdir -i -O--parallel
dh_update_autotools_config -i -O--parallel
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<BUILDDIR>>/compiz-0.9.13.0+16.10.20160818.2'
dh_auto_configure -- -DCOMPIZ_BUILD_WITH_RPATH=FALSE
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DCOMPIZ_PACKAGING_ENABLED=TRUE
-DCOMPIZ_DISABLE_GS_SCHEMAS_INSTALL=OFF -DCOMPIZ_DISABLE_PLUGIN_KDE=ON
-DCOMPIZ_BUILD_TESTING=OFF -DUSE_KDE4=OFF -DBUILD_XORG_GTEST=OFF
-DBUILD_METACITY=OFF
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc
-DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCOMPIZ_BUILD_WITH_RPATH=FALSE
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DCOMPIZ_PACKAGING_ENABLED=TRUE
-DCOMPIZ_DISABLE_GS_SCHEMAS_INSTALL=OFF -DCOMPIZ_DISABLE_PLUGIN_KDE=ON
-DCOMPIZ_BUILD_TESTING=OFF -DUSE_KDE4=OFF -DBUILD_XORG_GTEST=OFF
-DBUILD_METACITY=OFF
-- The C compiler identification is GNU 6.2.1
-- The CXX compiler identification is GNU 6.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
[... snipped ...]
make[1]: Leaving directory '/<<BUILDDIR>>/compiz-0.9.13.0+16.10.20160818.2'
dh_installdocs -i -O--parallel
dh_installchangelogs -i -O--parallel
dh_installman -i -O--parallel
dh_python2 -i -O--parallel
W: dh_python2:479: Please add dh-python package to Build-Depends
dh_lintian -i -O--parallel
dh_icons -i -O--parallel
dh_perl -i -O--parallel
dh_link -i -O--parallel
dh_strip_nondeterminism -i -O--parallel
dh_compress -i -O--parallel
dh_fixperms -i -O--parallel
dh_installdeb -i -O--parallel
debian/rules override_dh_gencontrol
make[1]: Entering directory '/<<BUILDDIR>>/compiz-0.9.13.0+16.10.20160818.2'
dh_gencontrol -- -Vcoreabiversion=20151010
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is
not NFS-safe
dpkg-gencontrol: warning: Depends field of package
compizconfig-settings-manager: unknown substitution variable ${shlibs:Depends}
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is
not NFS-safe
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is
not NFS-safe
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is
not NFS-safe
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is
not NFS-safe
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is
not NFS-safe
make[1]: Leaving directory '/<<BUILDDIR>>/compiz-0.9.13.0+16.10.20160818.2'
dh_md5sums -i -O--parallel
debian/rules override_dh_builddeb
make[1]: Entering directory '/<<BUILDDIR>>/compiz-0.9.13.0+16.10.20160818.2'
# Workaround for a possible dh_makeshlibs bug:
echo 'activate-noawait ldconfig' >> debian/compiz-gnome/DEBIAN/triggers
/bin/sh: 1: cannot create debian/compiz-gnome/DEBIAN/triggers: Directory
nonexistent
debian/rules:76: recipe for target 'override_dh_builddeb' failed
make[1]: *** [override_dh_builddeb] Error 2
make[1]: Leaving directory '/<<BUILDDIR>>/compiz-0.9.13.0+16.10.20160818.2'
debian/rules:82: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit
status 2
--------------------------------------------------------------------------------
This happens because we are creating arch-indep packages only,
so debian/compiz-gnome/[...] does not exist.
This could be fixed by overriding dh_builddeb only for arch-dependent builds.
Trivial (but untested) patch follows.
Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -72,7 +72,7 @@ override_dh_gencontrol:
override_dh_auto_test:
#dh_auto_test
-override_dh_builddeb:
+override_dh_builddeb-arch:
# Workaround for a possible dh_makeshlibs bug:
echo 'activate-noawait ldconfig' >> debian/compiz-gnome/DEBIAN/triggers
chmod 644 debian/compiz-gnome/DEBIAN/triggers