Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 901035 - media-gfx/inkscape-1.2.2 - /.../selected-style.cpp: error: statement-expressions are not allowed outside functions nor in template
Summary: media-gfx/inkscape-1.2.2 - /.../selected-style.cpp: error: statement-expressi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-03-13 17:00 UTC by Toralf Förster
Modified: 2023-03-17 04:43 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.69 KB, text/plain)
2023-03-13 17:00 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,122.46 KB, text/plain)
2023-03-13 17:00 UTC, Toralf Förster
Details
environment (environment,136.11 KB, text/plain)
2023-03-13 17:00 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,703 bytes, application/x-bzip)
2023-03-13 17:00 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,19.09 KB, application/x-bzip)
2023-03-13 17:00 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,7.58 KB, application/x-bzip)
2023-03-13 17:00 UTC, Toralf Förster
Details
media-gfx:inkscape-1.2.2:20230313-135926.log.bz2 (media-gfx:inkscape-1.2.2:20230313-135926.log.bz2,35.64 KB, application/x-bzip)
2023-03-13 17:00 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,66.40 KB, application/x-bzip)
2023-03-13 17:00 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-03-13 17:00:05 UTC
In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9,
                 from /usr/include/glib-2.0/glib/gtypes.h:34,
                 from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glibmm-2.4/glibmm/unicode.h:23,
                 from /usr/include/glibmm-2.4/glibmm/ustring.h:21:
/var/tmp/portage/media-gfx/inkscape-1.2.2/work/inkscape-1.2.2/src/ui/widget/selected-style.cpp:111:6: error: statement-expressions are not allowed outside functions nor in template-argument lists
  111 |     {g_strdup("application/x-oswb-color"), 0, APP_OSWB_COLOR}
      |      ^~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd_merged_usr-j5-20230312-132220

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.7
Python 3.10.10
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.67.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit 72d97244c052b137221eefe9ebb5ffe41f892a9c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Mar 13 12:31:56 2023 +0000

    2023-03-13 12:31:56 UTC

emerge -qpvO media-gfx/inkscape
[ebuild  N    ] media-gfx/inkscape-1.2.2  USE="X cdr exif jpeg openmp postscript readline spell -dia -graphicsmagick -imagemagick -inkjar (-jemalloc) -svg2 -test -visio -wpg" PYTHON_SINGLE_TARGET="python3_10 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2023-03-13 17:00:06 UTC
Created attachment 857501 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-03-13 17:00:07 UTC
Created attachment 857503 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-03-13 17:00:09 UTC
Created attachment 857505 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-03-13 17:00:10 UTC
Created attachment 857507 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-03-13 17:00:11 UTC
Created attachment 857509 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-03-13 17:00:12 UTC
Created attachment 857511 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-03-13 17:00:13 UTC
Created attachment 857513 [details]
media-gfx:inkscape-1.2.2:20230313-135926.log.bz2
Comment 8 Toralf Förster gentoo-dev 2023-03-13 17:00:14 UTC
Created attachment 857515 [details]
temp.tar.bz2
Comment 9 Robert Schultz 2023-03-16 16:32:00 UTC
This happens on my machine as well. inkscape-1.2.1-r2 also fails with the same problem
Comment 10 Larry the Git Cow gentoo-dev 2023-03-16 23:51:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=494fdf6d476ec4dfa6b6c801b66709765bdce45a

commit 494fdf6d476ec4dfa6b6c801b66709765bdce45a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-16 23:47:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-16 23:50:33 +0000

    dev-libs/glib: backport fix for building C++ applications
    
    Closes: https://bugs.gentoo.org/901211
    Closes: https://bugs.gentoo.org/901035
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/glib/files/glib-2.76.0-g_strdup-c++.patch | 132 ++++++++++
 dev-libs/glib/glib-2.76.0-r1.ebuild                | 284 +++++++++++++++++++++
 2 files changed, 416 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b9054009ad1ec24f32e5122f71993d25a15c130

commit 5b9054009ad1ec24f32e5122f71993d25a15c130
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-16 23:48:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-16 23:50:34 +0000

    profiles: mask broken =dev-libs/glib-2.76.0
    
    Bug: https://bugs.gentoo.org/901211
    Bug: https://bugs.gentoo.org/901035
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)