Bug#835098: gcr: FTBFS: Missing build-depends on gnupg

Santiago Vila sanvila at unex.es
Mon Aug 22 13:04:08 UTC 2016


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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcr.patch.txt
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20160822/1eb5ab35/attachment.txt>


More information about the pkg-gnome-maintainers mailing list