Bug#966951: libpeas: FTBFS: dh_auto_test: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 MESON_TESTTHREADS=4 ninja test returned exit code 1

2020-09-18 Thread Simon McVittie
Control: clone -1 -2
Control: retitle -1 libpeas: FTBFS with Meson >= 0.55.0: Typelib file for 
namespace 'Introspection', version '1.0' not found
Control: reassign -1 libpeas 1.26.0-2
Control: tags -1 = ftbfs pending
Control: severity -2 normal
Control: retitle -2 meson: gnome module stopped generating uninstalled typelib 
depended on by an executable
Control: reassign -2 meson 0.55.0-2
Control: forwarded -2 https://github.com/mesonbuild/meson/issues/7756
Control: tags -2 = upstream

On Mon, 03 Aug 2020 at 13:09:55 +0100, Simon McVittie wrote:
> I've confirmed that this succeeds in a pure bullseye chroot and fails if
> I upgrade meson (only) to the version from unstable. I'm not completely
> sure whether this is a straightforward regression in meson, or whether
> libpeas is holding it wrong.

I'm still not sure whose bug this is, but I've found a workaround that
libpeas can use (or a fix that can be applied, depending whether this
is considered to be a bug in Meson or in libpeas).

I'll close the original FTBFS report by fixing or working around this in
libpeas; I'm cloning it as a non-RC Meson bug report for investigation
of whether Meson is doing the wrong thing.

Please see the upstream Meson bug for more details and a somewhat
minimal reproducer.

Thanks,
smcv



Bug#966951: libpeas: FTBFS: dh_auto_test: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 MESON_TESTTHREADS=4 ninja test returned exit code 1

2020-08-03 Thread Simon McVittie
On Mon, 03 Aug 2020 at 13:09:55 +0100, Simon McVittie wrote:
> I've confirmed that this succeeds in a pure bullseye chroot and fails if
> I upgrade meson (only) to the version from unstable. I'm not completely
> sure whether this is a straightforward regression in meson, or whether
> libpeas is holding it wrong.
> 
> It seems that what is meant to happen here is that the libpeas build
> system builds tests/libpeas/introspection/*.[ch] into a shared library,
> introspects them, and uses the generated introspection data during the
> build-time tests.
> 
> With meson 0.54.3-1, I get:
> 
> obj-x86_64-linux-gnu/tests/libpeas/introspection/Introspection-1.0.typelib
> obj-x86_64-linux-gnu/tests/libpeas/introspection/Introspection-1.0.gir
> 
> With 0.55.0-2, the introspection data (typelib and GIR XML) isn't generated.

Bisection says this regressed in b1e3440e "ninjabackend: Treat GNOME
gir/typelib as libraries" - or maybe it's a pre-existing bug in libpeas
exposed by that commit, it isn't clear to me which.

smcv



Bug#966951: libpeas: FTBFS: dh_auto_test: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 MESON_TESTTHREADS=4 ninja test returned exit code 1

2020-08-03 Thread Simon McVittie
Control: reassign -1 libpeas,meson
Control: found -1 libpeas/1.26.0-2
Control: found -1 meson/0.55.0-2

On Mon, 03 Aug 2020 at 10:54:40 +0200, Lucas Nussbaum wrote:
> Relevant part (hopefully):
> > 1/8 test-engine   FAIL   0.02s (killed by signal 6 
> > SIGABRT)
> > 
> > --- command ---
> > 17:26:39 NO_AT_BRIDGE='1' GSETTINGS_BACKEND='memory' G_DEBUG='gc-friendly' 
> > MALLOC_CHECK_='2' /<>/obj-x86_64-linux-gnu/tests/libpeas/engine
> > --- stdout ---
> > # random seed: R02S24bd2039e5be9936225c32c9afe1adbd
> > Bail out! ERROR:../tests/libpeas/testing/testing.c:54:testing_init: 
> > assertion failed (error == NULL): Typelib file for namespace 
> > 'Introspection', version '1.0' not found (g-irepository-error-quark, 0)
> > --- stderr ---
> > **
> > ERROR:../tests/libpeas/testing/testing.c:54:testing_init: assertion failed 
> > (error == NULL): Typelib file for namespace 'Introspection', version '1.0' 
> > not found (g-irepository-error-quark, 0)
> > ---

I've confirmed that this succeeds in a pure bullseye chroot and fails if
I upgrade meson (only) to the version from unstable. I'm not completely
sure whether this is a straightforward regression in meson, or whether
libpeas is holding it wrong.

It seems that what is meant to happen here is that the libpeas build
system builds tests/libpeas/introspection/*.[ch] into a shared library,
introspects them, and uses the generated introspection data during the
build-time tests.

With meson 0.54.3-1, I get:

$ find obj-x86_64-linux-gnu/tests/libpeas/introspection
obj-x86_64-linux-gnu/tests/libpeas/introspection
obj-x86_64-linux-gnu/tests/libpeas/introspection/Introspection-1.0.typelib
obj-x86_64-linux-gnu/tests/libpeas/introspection/Introspection-1.0.gir
obj-x86_64-linux-gnu/tests/libpeas/introspection/libintrospection-1.0.so
obj-x86_64-linux-gnu/tests/libpeas/introspection/7ddd279@@introspection-1.0@sha
obj-x86_64-linux-gnu/tests/libpeas/introspection/7ddd279@@introspection-1.0@sha/introspection-unimplemented.c.o
obj-x86_64-linux-gnu/tests/libpeas/introspection/7ddd279@@introspection-1.0@sha/introspection-prerequisite.c.o
obj-x86_64-linux-gnu/tests/libpeas/introspection/7ddd279@@introspection-1.0@sha/introspection-has-prerequisite.c.o
obj-x86_64-linux-gnu/tests/libpeas/introspection/7ddd279@@introspection-1.0@sha/introspection-callable.c.o
obj-x86_64-linux-gnu/tests/libpeas/introspection/7ddd279@@introspection-1.0@sha/introspection-base.c.o
obj-x86_64-linux-gnu/tests/libpeas/introspection/7ddd279@@introspection-1.0@sha/introspection-abstract.c.o
obj-x86_64-linux-gnu/tests/libpeas/introspection/7ddd279@@introspection-1.0@sha/Introspection_1.0_gir_filelist
obj-x86_64-linux-gnu/tests/libpeas/introspection/7ddd279@@introspection-1.0@sha/libintrospection-1.0.so.symbols

With 0.55.0-2, the introspection data (typelib and GIR XML) isn't generated:

obj-x86_64-linux-gnu/tests/libpeas/introspection
obj-x86_64-linux-gnu/tests/libpeas/introspection/libintrospection-1.0.so
obj-x86_64-linux-gnu/tests/libpeas/introspection/libintrospection-1.0.so.p
obj-x86_64-linux-gnu/tests/libpeas/introspection/libintrospection-1.0.so.p/libintrospection-1.0.so.symbols
obj-x86_64-linux-gnu/tests/libpeas/introspection/libintrospection-1.0.so.p/introspection-unimplemented.c.o
obj-x86_64-linux-gnu/tests/libpeas/introspection/libintrospection-1.0.so.p/introspection-prerequisite.c.o
obj-x86_64-linux-gnu/tests/libpeas/introspection/libintrospection-1.0.so.p/introspection-has-prerequisite.c.o
obj-x86_64-linux-gnu/tests/libpeas/introspection/libintrospection-1.0.so.p/introspection-callable.c.o
obj-x86_64-linux-gnu/tests/libpeas/introspection/libintrospection-1.0.so.p/introspection-base.c.o
obj-x86_64-linux-gnu/tests/libpeas/introspection/libintrospection-1.0.so.p/introspection-abstract.c.o
obj-x86_64-linux-gnu/tests/libpeas/introspection/libintrospection-1.0.so.p/Introspection_1.0_gir_filelist

smcv



Bug#966951: libpeas: FTBFS: dh_auto_test: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 MESON_TESTTHREADS=4 ninja test returned exit code 1

2020-08-03 Thread Lucas Nussbaum
Source: libpeas
Version: 1.26.0-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200802 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> make[1]: Entering directory '/<>'
> HOME=/<> xvfb-run -a dh_auto_test
>   cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 MESON_TESTTHREADS=4 ninja test
> [0/1] Running all tests.
> 1/8 test-engine   FAIL   0.02s (killed by signal 6 
> SIGABRT)
> 2/8 test-extension-c  FAIL   0.01s (killed by signal 6 
> SIGABRT)
> 3/8 test-extension-setFAIL   0.01s (killed by signal 6 
> SIGABRT)
> 4/8 test-plugin-info  FAIL   0.01s (killed by signal 6 
> SIGABRT)
> 5/8 test-extension-py FAIL   0.01s (killed by signal 6 
> SIGABRT)
> 6/8 test-plugin-manager   OK 0.17s
> 7/8 test-plugin-manager-store OK 0.22s
> 8/8 test-plugin-manager-view  OK 0.22s
> 
> Ok: 3   
> Expected Fail:  0   
> Fail:   5   
> Unexpected Pass:0   
> Skipped:0   
> Timeout:0   
> 
> 
> The output from the failed tests:
> 
> 1/8 test-engine   FAIL   0.02s (killed by signal 6 
> SIGABRT)
> 
> --- command ---
> 17:26:39 NO_AT_BRIDGE='1' GSETTINGS_BACKEND='memory' G_DEBUG='gc-friendly' 
> MALLOC_CHECK_='2' /<>/obj-x86_64-linux-gnu/tests/libpeas/engine
> --- stdout ---
> # random seed: R02S24bd2039e5be9936225c32c9afe1adbd
> Bail out! ERROR:../tests/libpeas/testing/testing.c:54:testing_init: assertion 
> failed (error == NULL): Typelib file for namespace 'Introspection', version 
> '1.0' not found (g-irepository-error-quark, 0)
> --- stderr ---
> **
> ERROR:../tests/libpeas/testing/testing.c:54:testing_init: assertion failed 
> (error == NULL): Typelib file for namespace 'Introspection', version '1.0' 
> not found (g-irepository-error-quark, 0)
> ---
> 
> 2/8 test-extension-c  FAIL   0.01s (killed by signal 6 
> SIGABRT)
> 
> --- command ---
> 17:26:39 NO_AT_BRIDGE='1' GSETTINGS_BACKEND='memory' G_DEBUG='gc-friendly' 
> MALLOC_CHECK_='2' 
> /<>/obj-x86_64-linux-gnu/tests/libpeas/extension-c
> --- stdout ---
> # random seed: R02S35e63bb219e9bc5c0ba2fb0f4d465e51
> Bail out! ERROR:../tests/libpeas/testing/testing.c:54:testing_init: assertion 
> failed (error == NULL): Typelib file for namespace 'Introspection', version 
> '1.0' not found (g-irepository-error-quark, 0)
> --- stderr ---
> **
> ERROR:../tests/libpeas/testing/testing.c:54:testing_init: assertion failed 
> (error == NULL): Typelib file for namespace 'Introspection', version '1.0' 
> not found (g-irepository-error-quark, 0)
> ---
> 
> 3/8 test-extension-setFAIL   0.01s (killed by signal 6 
> SIGABRT)
> 
> --- command ---
> 17:26:39 NO_AT_BRIDGE='1' GSETTINGS_BACKEND='memory' G_DEBUG='gc-friendly' 
> MALLOC_CHECK_='2' 
> /<>/obj-x86_64-linux-gnu/tests/libpeas/extension-set
> --- stdout ---
> # random seed: R02S74612be6e60fad0516038e18f9c67589
> Bail out! ERROR:../tests/libpeas/testing/testing.c:54:testing_init: assertion 
> failed (error == NULL): Typelib file for namespace 'Introspection', version 
> '1.0' not found (g-irepository-error-quark, 0)
> --- stderr ---
> **
> ERROR:../tests/libpeas/testing/testing.c:54:testing_init: assertion failed 
> (error == NULL): Typelib file for namespace 'Introspection', version '1.0' 
> not found (g-irepository-error-quark, 0)
> ---
> 
> 4/8 test-plugin-info  FAIL   0.01s (killed by signal 6 
> SIGABRT)
> 
> --- command ---
> 17:26:39 NO_AT_BRIDGE='1' GSETTINGS_BACKEND='memory' G_DEBUG='gc-friendly' 
> MALLOC_CHECK_='2' 
> /<>/obj-x86_64-linux-gnu/tests/libpeas/plugin-info
> --- stdout ---
> # random seed: R02S1c83a50e9dd243feb0c45ac92f39a129
> Bail out! ERROR:../tests/libpeas/testing/testing.c:54:testing_init: assertion 
> failed (error == NULL): Typelib file for namespace 'Introspection', version 
> '1.0' not found (g-irepository-error-quark, 0)
> --- stderr ---
> **
> ERROR:../tests/libpeas/testing/testing.c:54:testing_init: assertion failed 
> (error == NULL): Typelib file for namespace 'Introspection', version '1.0' 
> not found (g-irepository-error-quark, 0)
> ---
> 
> 5/8 test-extension-py FAIL   0.01s (killed by signal 6 
> SIGABRT)
> 
> --- command ---
> 17:26:39 NO_AT_BRIDGE='1' GSETTINGS_BACKEND='memory' G_DEBUG='gc-friendly' 
> MALLOC_CHECK_='2' 
> /<>/obj-x86_64-linux-gnu/tests/libpeas/extension-py
> --- stdout ---
> # random seed: R02S1d44196482b3ded34ac25b203f5ec8e9
> Bail out! ERROR:../tests/libpeas/testing/testing.c:54:testing_init: assertion 
> failed (error == NULL): Typelib file for namespace 'Introspection', version 
> '1.0' not found (g-irepository-error-quark, 0)
> --- stderr ---
> **
> ERROR:../tests/libpeas/testing/testing.c:54:testing_init: assert