Package: src:gcr
Version: 3.20.0-2
Severity: serious
Tags: patch

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with autoreconf,gir,gnome
   dh_testdir -i
   dh_update_autotools_config -i
   debian/rules override_dh_autoreconf
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_autoreconf --as-needed
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build'.
libtoolize: copying file 'build/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build/m4'.
libtoolize: copying file 'build/m4/libtool.m4'
libtoolize: copying file 'build/m4/ltoptions.m4'
libtoolize: copying file 'build/m4/ltsugar.m4'

[...]

checking for gpg... no
checking for gpg2... no

[...]

**
ERROR:gcr/test-gnupg-collection.c:161:test_load: assertion failed (error == 
NULL): Failed to execute child process "gpg" (No such file or directory) 
(g-exec-error-quark, 8)
FAIL: test-gnupg-collection 2 /gcr/gnupg-collection/load
FAIL: test-gnupg-collection 3 /gcr/gnupg-collection/reload
**
ERROR:gcr/test-gnupg-collection.c:208:test_reload: assertion failed (error == 
NULL): Failed to execute child process "gpg" (No such file or directory) 
(g-exec-error-quark, 8)
ERROR: test-gnupg-collection process failed: 250

[...]

debian/rules:24: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:9: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

The gnupg package is not essential, so if this package needs it during
the build, it should declare it in Build-Depends.

[ In this case, the fact that I was doing "dpkg-buildpackage -A" does not 
matter,
  it would also fail with ordinary "dpkg-buildpackage" ].

To reproduce, please try to build the package on a chroot not having
gnupg installed (neither gnupg1 or gnupg).

The attached patch (untested) might fix this bug.

Thanks.
--- a/debian/control.in
+++ b/debian/control.in
@@ -9,6 +9,7 @@ Build-Depends: debhelper (>= 9),
                docbook-xml,
                dpkg-dev (>= 1.16.1~),
                gnome-pkg-tools (>= 0.10),
+               gnupg,
                gtk-doc-tools (>= 1.9),
                gobject-introspection (>= 1.34),
                intltool (>= 0.35.0),

Reply via email to