Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 825230 - sys-apps/flatpak-1.12.2 - Parse error: Expected end of text, found type (at char 218), (line:12, col:1)
Summary: sys-apps/flatpak-1.12.2 - Parse error: Expected end of text, found type (at c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zac Medico
URL: https://github.com/flatpak/flatpak/is...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-20 09:44 UTC by Toralf Förster
Modified: 2021-12-17 06:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.38 KB, text/plain)
2021-11-20 09:44 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,158.83 KB, text/plain)
2021-11-20 09:44 UTC, Toralf Förster
Details
environment (environment,122.60 KB, text/plain)
2021-11-20 09:44 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,23.49 KB, application/x-bzip)
2021-11-20 09:44 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,14.49 KB, application/x-bzip)
2021-11-20 09:44 UTC, Toralf Förster
Details
sys-apps:flatpak-1.12.2:20211120-034251.log (sys-apps:flatpak-1.12.2:20211120-034251.log,15.39 KB, text/plain)
2021-11-20 09:44 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,31.49 KB, application/x-bzip)
2021-11-20 09:44 UTC, Toralf Förster
Details
Fix build on dev-python/pyparsing-3.0.6 (flatpak-pyparsing.patch,784 bytes, patch)
2021-11-30 16:34 UTC, gentoo@imrebuild.com
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-11-20 09:44:38 UTC
	
/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"
Comment 1 Toralf Förster gentoo-dev 2021-11-20 09:44:39 UTC
Created attachment 753686 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-11-20 09:44:41 UTC
Created attachment 753690 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-11-20 09:44:42 UTC
Created attachment 753694 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-11-20 09:44:44 UTC
Created attachment 753698 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-11-20 09:44:45 UTC
Created attachment 753702 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-11-20 09:44:46 UTC
Created attachment 753706 [details]
sys-apps:flatpak-1.12.2:20211120-034251.log
Comment 7 Toralf Förster gentoo-dev 2021-11-20 09:44:47 UTC
Created attachment 753710 [details]
temp.tar.bz2
Comment 8 Zac Medico gentoo-dev 2021-11-20 23:58:29 UTC
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  \
Comment 9 Kenton Groombridge gentoo-dev 2021-11-21 14:25:44 UTC
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.
Comment 10 Michael Moon 2021-11-24 01:08:06 UTC
Upstream bug: https://github.com/flatpak/flatpak/issues/4534

Apparently something to do with PyParsing version
Comment 12 Larry the Git Cow gentoo-dev 2021-11-24 01:25:45 UTC
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(-)
Comment 13 Larry the Git Cow gentoo-dev 2021-11-24 01:50:35 UTC
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(-)
Comment 14 gentoo@imrebuild.com 2021-11-30 16:34:27 UTC
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.
Comment 15 Larry the Git Cow gentoo-dev 2021-12-17 02:52:51 UTC
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(+)