Package: src:workrave
Version: 1.10.15-2
User: [email protected]
Usertags: binary-indep
Severity: important
Tags: patch
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 autoreconf
dh_testdir -i
dh_update_autotools_config -i
debian/rules override_dh_autoreconf
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_autoreconf ./autogen.sh
Copying file config.rpath
Copying file m4/codeset.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
[... snipped ...]
dh_installexamples
chmod +x
/<<PKGBUILDDIR>>/debian/workrave/usr/share/doc/workrave/examples/gnuplot-workrave
chmod: cannot access
'/<<PKGBUILDDIR>>/debian/workrave/usr/share/doc/workrave/examples/gnuplot-workrave':
No such file or directory
debian/rules:34: recipe for target 'override_dh_installexamples' failed
make[1]: *** [override_dh_installexamples] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:9: 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 debian/workrave/[...] does not exist, as we are
creating arch-independent packages only and workrave is arch-dependent.
The following (untested) patch might fix this bug.
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. I recommend that you try it.
Thanks.
--- a/rules
+++ b/rules
@@ -30,7 +30,7 @@ override_dh_compress:
override_dh_install:
dh_install --list-missing
-override_dh_installexamples:
+override_dh_installexamples-arch:
dh_installexamples
chmod +x
$(CURDIR)/debian/workrave/usr/share/doc/workrave/examples/gnuplot-workrave
chmod +x
$(CURDIR)/debian/workrave/usr/share/doc/workrave/examples/workrave-dump