DevHeads.net

compilation of lollypop fails on mock build server

Hi,

when trying to build lollypop on the fedora mock build server, the package build fails, when test suite (%meson_test) is enabled.

rpm -E "%meson_test"

/usr/bin/ninja test -v -j2 -C x86_64-redhat-linux-gnu ||
{ rc=$?;
echo "-----BEGIN TESTLOG-----";
cat x86_64-redhat-linux-gnu/meson-logs/testlog.txt;
echo "-----END TESTLOG-----";
exit $rc; }

build.log: <a href="https://kojipkgs.fedoraproject.org//work/tasks/980/25540980/build.log" title="https://kojipkgs.fedoraproject.org//work/tasks/980/25540980/build.log">https://kojipkgs.fedoraproject.org//work/tasks/980/25540980/build.log</a>

how can i solve this ?

Comments

Re: compilation of lollypop fails on mock build server

By Jerry James at 03/07/2018 - 11:12

On Wed, Mar 7, 2018 at 7:54 AM, Martin Gansser <martin. ... at gmail dot com> wrote:
Does it help to pass the --nonet option to appstream-util?

Re: compilation of lollypop fails on mock build server

By Martin Gansser at 03/07/2018 - 11:42

the --nonet option is already used in the spec file:
<a href="https://src.fedoraproject.org/cgit/rpms/lollypop.git/tree/lollypop.spec" title="https://src.fedoraproject.org/cgit/rpms/lollypop.git/tree/lollypop.spec">https://src.fedoraproject.org/cgit/rpms/lollypop.git/tree/lollypop.spec</a>

Re: compilation of lollypop fails on mock build server

By Jerry James at 03/07/2018 - 23:06

On Wed, Mar 7, 2018 at 8:42 AM, Martin Gansser <martin. ... at gmail dot com> wrote:
Yes, but look at your build log. That option doesn't appear:

/usr/bin/appstream-util validate-relax
/builddir/build/BUILD/lollypop-0.9.400.1/noarch-redhat-linux-gnu/data/org.gnome.Lollypop.appdata.xml

That's because your invocation of appstream-util never happened; this
is due to the package itself defining a test that invokes
appstream-util. See data/meson.build. It invokes
desktop-file-validate as well, so everything except %meson_test in
%check is redundant.

Re: compilation of lollypop fails on mock build server

By Martin Gansser at 03/08/2018 - 05:07

then I will omit meson_test in the %check section.