Bug#908334: glib2.0 FTCBFS: fatal error: testmarshal.h: No such file or directory

Helmut Grohne helmut at subdivi.de
Sat Sep 8 15:57:44 BST 2018


Source: glib2.0
Version: 2.58.0-1
Severity: important
Tags: patch upstream
User: helmutg at debian.org
Usertags: rebootstrap

Since version 2.58.0-1, glib2.0 fails to cross build from source,
because it fails to find testmarshal.h in tests/gobject. The rules for
generating it are conditional to !CROSS_COMPILING, because they run
glib-genmarshall. That's a good reason, but it causes the build of the
accumulator executable to fail. I guess cross compilation should either
skip that executable or it should use the build system's
glib-genmarshal. In the interest of reproducible builds, my patch opts
for the latter. When applying it, you must also add "libglib2.0-dev-bin
<cross>" to Build-Depends.

An alternative solution could be not building libglib2.0-tests during
cross compilation. That package contains the accumulator binary, so
skipping it avoids the problem. I don't see an easy way to skip building
installed tests though.

Another alternative to the self-dependency could be a native build pass
for generating glib-genmarshal. Other packages such as icu use that
approach already.

Please let me know if you have a strong opinion on the approach.

Severity set to important, because this bug regresses architecture
bootstrap.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 1528 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20180908/31a4e0e0/attachment.patch>


More information about the pkg-gnome-maintainers mailing list