/usr/bin/glib-mkenums --template common/flatpak-enum-types.c.template common/flatpak.h common/flatpak-ref.h common/flatpak-error.h common/flatpak-installed-ref.h common/flatpak-remote-ref.h common/flatpak-related-ref.h common/flatpak-bundle-ref.h common/flatpak-installation.h common/flatpak-remote.h common/flatpak-version-macros.h common/flatpak-portal-error.h common/flatpak-transaction.h common/flatpak-instance.h > \ common/flatpak-enum-types.c.tmp && mv common/flatpak-enum-types.c.tmp common/flatpak-enum-types.c ./subprojects/variant-schema-compiler/variant-schema-compiler --outfile-header common/flatpak-variant-private.h --outfile common/flatpak-variant-impl-private.h --prefix var ./data/flatpak-variants.gv Parse error: Expected end of text, found 'type' (at char 218), (line:12, col:1) make: *** [Makefile:7681: common/flatpak-variant-private.h] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: sys-apps/flatpak-1.12.2::gentoo failed (compile phase): * emake failed ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome-j4-20211118-152943 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.2.0 * clang version 13.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/13/bin /usr/lib/llvm/13 13.0.0 Python 3.9.9 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby27 (with Rubygems) [3] ruby30 (with Rubygems) * Available Rust versions: [1] rust-1.56.1 * The Glorious Glasgow Haskell Compilation System, version 8.10.4 php cli: HEAD of ::gentoo commit 07d1a9ea427a201aba144e64acee50dafebc30d8 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Nov 20 02:51:29 2021 +0000 2021-11-20 02:51:28 UTC emerge -qpvO sys-apps/flatpak [ebuild N ] sys-apps/flatpak-1.12.2 USE="gtk introspection policykit seccomp -doc -kde -systemd"
Created attachment 753686 [details] emerge-info.txt
Created attachment 753690 [details] emerge-history.txt
Created attachment 753694 [details] environment
Created attachment 753698 [details] etc.portage.tar.bz2
Created attachment 753702 [details] logs.tar.bz2
Created attachment 753706 [details] sys-apps:flatpak-1.12.2:20211120-034251.log
Created attachment 753710 [details] temp.tar.bz2
I haven't been able to reproduce the failure. For me, the variant-schema-compiler call succeeds, and then it goes on to call gdbus-codegen: > ./subprojects/variant-schema-compiler/variant-schema-compiler --outfile-header common/flatpak-variant-private.h --outfile common/flatpak-variant-impl-private.h --prefix var ./data/flatpak-variants.gv > sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='common/flatpak-variant-impl-private.h' mode='w' encoding='UTF-8'> > sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='common/flatpak-variant-private.h' mode='w' encoding='UTF-8'> > mkdir -p ./app > /usr/bin/gdbus-codegen \ > --interface-prefix org.freedesktop.impl.portal \ > --c-namespace XdpDbus \ > --generate-c-code ./app/flatpak-permission-dbus-generated \ > ./data/org.freedesktop.impl.portal.PermissionStore.xml \
I'm also getting this error. My system normally uses a clang/LLVM toolchain, but I am able to reproduce it using gcc as well.
Upstream bug: https://github.com/flatpak/flatpak/issues/4534 Apparently something to do with PyParsing version
Also see https://gitlab.gnome.org/alexl/variant-schema-compiler/-/issues/4
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b737f64b9cebb80430d4fcb40bfa4da90f0697c commit 1b737f64b9cebb80430d4fcb40bfa4da90f0697c Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2021-11-24 01:22:48 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2021-11-24 01:25:40 +0000 sys-apps/flatpak: pin to pyparsing-2.x Bug: https://bugs.gentoo.org/825230 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/flatpak/flatpak-1.10.5.ebuild | 3 ++- sys-apps/flatpak/flatpak-1.12.2.ebuild | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b9e6cf4b10f978d2bced20dd2dbc4e3935a5141 commit 1b9e6cf4b10f978d2bced20dd2dbc4e3935a5141 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2021-11-24 01:48:56 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2021-11-24 01:50:31 +0000 sys-apps/flatpak: pin to less than pyparsing-3.0.2 The failure first appeared with pyparsing-3.0.2. Bug: https://bugs.gentoo.org/825230 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/flatpak/flatpak-1.10.5.ebuild | 2 +- sys-apps/flatpak/flatpak-1.12.2.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Created attachment 757100 [details, diff] Fix build on dev-python/pyparsing-3.0.6 I can build sys-apps/flatpak-1.12.2 with dev-python/pyparsing-3.0.6 by removing .leaveWhitespace() in subprojects/variant-schema-compiler/variant-schema-compiler.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d3061fa2f40c2897d8362a15e17d0a04ca5b26f commit 3d3061fa2f40c2897d8362a15e17d0a04ca5b26f Author: Sam James <sam@gentoo.org> AuthorDate: 2021-12-17 00:51:46 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-12-17 02:52:41 +0000 sys-apps/flatpak: fix compatibility with newer pyparsing Bug: https://bugs.gentoo.org/825230 Signed-off-by: Sam James <sam@gentoo.org> .../flatpak-1.12.2-pyparsing-3.0.2-compat.patch | 42 ++++++++ sys-apps/flatpak/flatpak-1.12.2-r1.ebuild | 106 +++++++++++++++++++++ 2 files changed, 148 insertions(+)