Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787155 - kde-plasma/discover w/ dev-libs/glib-2.68.1: error: template with C linkage
Summary: kde-plasma/discover w/ dev-libs/glib-2.68.1: error: template with C linkage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://invent.kde.org/plasma/discove...
Whiteboard: fixed in 5.21.5
Keywords: PATCH, UPSTREAM
Depends on:
Blocks: glib-2.68
  Show dependency tree
 
Reported: 2021-04-30 14:25 UTC by Ghiunhan Mamut
Modified: 2021-05-01 21:24 UTC (History)
0 users

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


Attachments
build.log (build.log.bz2,17.24 KB, application/x-bzip)
2021-04-30 14:48 UTC, Ghiunhan Mamut
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ghiunhan Mamut 2021-04-30 14:25:36 UTC
Trying to merge kde-plasma/discover with dev-libs/glib-2.68.1 installed fails with multiple :
/var/tmp/portage/kde-plasma/discover-5.21.4/work/discover-5.21.4/libdiscover/backends/FlatpakBackend/FlatpakTransactionThread.h:10:1: note: ‘extern "C"’ linkage started here
   10 | extern "C" {
      | ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
                 from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,

Downgrading to dev-libs/glib-2.66.7 makes the problem go away, and discover compiles just fine.


My tree was 1 month old at this time, so it was hard to find what broke what. However from the errors above I was able to pinpoint the new glib as being the offender. A quick git log shows dev-libs/glib-2.68.1 entered the tree 3 days ago on 27.04.2021 whereas kde-plasma/plasma-meta-5.21.4 is in the tree since 06.04.2021 which is why it probably slipped unnoticed. However it may still trigger runtime issues.

Did NOT check if dev-libs/glib-2.68.0 triggers the same errors.


Reproducible: Always
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-04-30 14:38:08 UTC
Please attach the full build.log file and post the output of

  emerge --info kde-plasma/discover dev-libs/glib

as a comment to this bug.
Comment 2 Ghiunhan Mamut 2021-04-30 14:48:50 UTC
Created attachment 704535 [details]
build.log
Comment 3 Ghiunhan Mamut 2021-04-30 14:54:20 UTC
=================================================================
                        Package Settings
=================================================================

kde-plasma/discover-5.21.4::gentoo was built with the following:
USE="firmware flatpak -debug -telemetry -test" ABI_X86="(64)"
FEATURES="binpkg-docompress usersync protect-owned usersandbox unmerge-logs splitdebug distlocks multilib-strict qa-unresolved-soname-deps binpkg-logs unmerge-orphans candy binpkg-dostrip fixlafiles news parallel-fetch strict compressdebug ebuild-locks sfperms unknown-features-warn preserve-libs assume-digests xattr buildpkg ipc-sandbox pid-sandbox config-protect-if-modified merge-sync network-sandbox sandbox userfetch"


dev-libs/glib-2.66.7::gentoo was built with the following:
USE="dbus mime static-libs utils xattr -debug -fam -gtk-doc (-selinux) -sysprof -systemtap -test" ABI_X86="32 (64) (-x32)"
CFLAGS="-O2 -march=x86-64 -mtune=generic -pipe -fno-delete-null-pointer-checks -Wno-deprecated -Wno-deprecated-declarations -fno-plt -fstack-protector-strong -fstack-clash-protection -fcf-protection=full -DG_DISABLE_CAST_CHECKS -DG_DISABLE_CAST_CHECKS"
FEATURES="config-protect-if-modified sandbox candy compressdebug unmerge-orphans binpkg-docompress binpkg-logs usersync assume-digests ebuild-locks qa-unresolved-soname-deps ipc-sandbox usersandbox preserve-libs sfperms distlocks xattr multilib-strict parallel-fetch pid-sandbox splitdebug protect-owned buildpkg network-sandbox unmerge-logs merge-sync fixlafiles binpkg-dostrip news unknown-features-warn userfetch strict"

At the moment I have glib-2.66.7, to avoid the breakage...
Comment 4 Larry the Git Cow gentoo-dev 2021-05-01 21:24:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05378df80892dea6bd44dfe58e64fb9ce840e3d3

commit 05378df80892dea6bd44dfe58e64fb9ce840e3d3
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-05-01 18:44:15 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-05-01 21:21:55 +0000

    kde-plasma/discover: Fix build with dev-libs/glib-2.68
    
    Closes: https://bugs.gentoo.org/787155
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/discover/discover-5.21.4.ebuild         |   5 +-
 .../discover/files/discover-5.21.4-glib-2.68.patch | 240 +++++++++++++++++++++
 2 files changed, 244 insertions(+), 1 deletion(-)