Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777477 - net-misc/seafile-client-8.0.1 - /.../type_traits: error: template with C linkage
Summary: net-misc/seafile-client-8.0.1 - /.../type_traits: error: template with C linkage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Quentin Retornaz
URL: https://github.com/haiwen/seafile-cli...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: glib-2.68
  Show dependency tree
 
Reported: 2021-03-21 09:57 UTC by Toralf Förster
Modified: 2021-03-30 13:15 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.82 KB, text/plain)
2021-03-21 09:57 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,186.82 KB, text/plain)
2021-03-21 09:57 UTC, Toralf Förster
Details
environment (environment,90.23 KB, text/plain)
2021-03-21 09:57 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,39.05 KB, application/x-bzip)
2021-03-21 09:57 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.17 KB, application/x-bzip)
2021-03-21 09:57 UTC, Toralf Förster
Details
net-misc:seafile-client-8.0.1:20210321-094130.log (net-misc:seafile-client-8.0.1:20210321-094130.log,442.16 KB, text/plain)
2021-03-21 09:57 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,32.60 KB, application/x-bzip)
2021-03-21 09:57 UTC, Toralf Förster
Details
build.log with upstream patch (build.log,411.50 KB, text/x-log)
2021-03-22 00:36 UTC, Quentin Retornaz
Details
seafile-client-8.0.1-glib-2.68.0.patch (seafile-client-8.0.1-glib-2.68.0.patch,530 bytes, patch)
2021-03-24 07:17 UTC, Quentin Retornaz
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-03-21 09:57:16 UTC
                 from /usr/include/searpc-client.h:4,
                 from /var/tmp/portage/net-misc/seafile-client-8.0.1/work/seafile-client-8.0.1/src/rpc/rpc-client.cpp:3:
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/type_traits:56:3: error: template with C linkage
   56 |   template<typename _Tp, _Tp __v>
      |   ^~~~~~~~
/var/tmp/portage/net-misc/seafile-client-8.0.1/work/seafile-client-8.0.1/src/rpc/rpc-client.cpp:1:1: note: ‘extern "C"’ linkage started here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-20210316-100935

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.50.0 *
The following VMs are available for generation-2:
1)	OpenJDK 8.282_p08 [openjdk-8]
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-bin-8  system-vm


  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Mar 21 09:21:09 UTC 2021

emerge -qpvO net-misc/seafile-client
[ebuild  N    ] net-misc/seafile-client-8.0.1  USE="(-libressl) -shibboleth -test"
Comment 1 Toralf Förster gentoo-dev 2021-03-21 09:57:17 UTC
Created attachment 692652 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-21 09:57:19 UTC
Created attachment 692655 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-21 09:57:20 UTC
Created attachment 692658 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-21 09:57:22 UTC
Created attachment 692661 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-21 09:57:23 UTC
Created attachment 692664 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-21 09:57:25 UTC
Created attachment 692667 [details]
net-misc:seafile-client-8.0.1:20210321-094130.log
Comment 7 Toralf Förster gentoo-dev 2021-03-21 09:57:26 UTC
Created attachment 692670 [details]
temp.tar.bz2
Comment 8 Joonas Niilola gentoo-dev 2021-03-21 10:20:45 UTC
I just tested and 7.0.10 fails to the same error.
Comment 9 Quentin Retornaz 2021-03-21 11:17:12 UTC
I think I should inform upstream about this issue.
Comment 10 Quentin Retornaz 2021-03-21 11:28:15 UTC
Created an issue on upstream GitHub repository.
https://github.com/haiwen/seafile-client/issues/1349
Comment 11 Joonas Niilola gentoo-dev 2021-03-21 12:35:49 UTC
This works on my stable system, but does not work on my ~unstable one. Sorry I lost the package list from unstable one, but here's the dep list from my stable one: 

----------
>>> Emerging binary (1 of 38) dev-qt/qtchooser-66::gentoo
>>> Emerging binary (2 of 38) dev-libs/jansson-2.13.1-r1::gentoo
>>> Emerging binary (3 of 38) media-gfx/graphite2-1.3.14::gentoo
>>> Emerging binary (4 of 38) dev-libs/lzo-2.10::gentoo
>>> Emerging binary (5 of 38) dev-libs/double-conversion-3.1.5::gentoo
>>> Emerging binary (6 of 38) media-fonts/liberation-fonts-2.1.2::gentoo
>>> Emerging binary (7 of 38) media-libs/libpng-1.6.37-r2::gentoo
>>> Emerging binary (8 of 38) sys-libs/binutils-libs-2.35.1-r1::gentoo
>>> Installing (2 of 38) dev-libs/jansson-2.13.1-r1::gentoo
>>> Emerging binary (9 of 38) x11-libs/xcb-util-renderutil-0.3.9-r3::gentoo
>>> Installing (3 of 38) media-gfx/graphite2-1.3.14::gentoo
>>> Emerging binary (10 of 38) x11-libs/xcb-util-keysyms-0.4.0-r2::gentoo
>>> Installing (6 of 38) media-fonts/liberation-fonts-2.1.2::gentoo
>>> Emerging binary (11 of 38) x11-libs/xcb-util-wm-0.4.1-r3::gentoo
>>> Installing (7 of 38) media-libs/libpng-1.6.37-r2::gentoo
>>> Emerging binary (12 of 38) virtual/opengl-7.0-r2::gentoo
>>> Installing (1 of 38) dev-qt/qtchooser-66::gentoo
>>> Emerging binary (13 of 38) virtual/ttf-fonts-1-r1::gentoo
>>> Installing (8 of 38) sys-libs/binutils-libs-2.35.1-r1::gentoo
>>> Emerging binary (14 of 38) media-libs/freetype-2.10.4::gentoo
>>> Installing (5 of 38) dev-libs/double-conversion-3.1.5::gentoo
>>> Emerging binary (15 of 38) dev-libs/libevent-2.1.11::gentoo
>>> Installing (4 of 38) dev-libs/lzo-2.10::gentoo
>>> Emerging binary (16 of 38) dev-python/simplejson-3.17.2-r1::gentoo
>>> Installing (9 of 38) x11-libs/xcb-util-renderutil-0.3.9-r3::gentoo
>>> Emerging binary (17 of 38) x11-libs/libxkbcommon-1.0.3::gentoo
>>> Installing (10 of 38) x11-libs/xcb-util-keysyms-0.4.0-r2::gentoo
>>> Emerging binary (18 of 38) x11-libs/gdk-pixbuf-2.42.2::gentoo
>>> Installing (11 of 38) x11-libs/xcb-util-wm-0.4.1-r3::gentoo
>>> Emerging binary (19 of 38) dev-libs/libinput-1.16.4::gentoo
>>> Installing (12 of 38) virtual/opengl-7.0-r2::gentoo
>>> Emerging (20 of 38) dev-qt/qtcore-5.15.2-r2::gentoo
>>> Installing (13 of 38) virtual/ttf-fonts-1-r1::gentoo
>>> Emerging (21 of 38) dev-python/future-0.18.2-r1::gentoo
>>> Installing (14 of 38) media-libs/freetype-2.10.4::gentoo
>>> Emerging binary (22 of 38) x11-libs/xcb-util-0.4.0-r2::gentoo
>>> Installing (15 of 38) dev-libs/libevent-2.1.11::gentoo
>>> Emerging binary (23 of 38) media-libs/fontconfig-2.13.1-r2::gentoo
>>> Installing (16 of 38) dev-python/simplejson-3.17.2-r1::gentoo
>>> Emerging binary (24 of 38) net-libs/libsearpc-3.2.0-r1::gentoo
>>> Installing (17 of 38) x11-libs/libxkbcommon-1.0.3::gentoo
>>> Installing (18 of 38) x11-libs/gdk-pixbuf-2.42.2::gentoo
>>> Emerging binary (25 of 38) dev-util/gtk-update-icon-cache-3.24.24::gentoo
>>> Installing (19 of 38) dev-libs/libinput-1.16.4::gentoo
>>> Installing (22 of 38) x11-libs/xcb-util-0.4.0-r2::gentoo
>>> Emerging binary (26 of 38) x11-libs/xcb-util-image-0.4.0-r2::gentoo
>>> Installing (23 of 38) media-libs/fontconfig-2.13.1-r2::gentoo
>>> Installing (21 of 38) dev-python/future-0.18.2-r1::gentoo
>>> Installing (24 of 38) net-libs/libsearpc-3.2.0-r1::gentoo
>>> Installing (25 of 38) dev-util/gtk-update-icon-cache-3.24.24::gentoo
>>> Emerging binary (27 of 38) app-eselect/eselect-fontconfig-1.1-r1::gentoo
>>> Installing (26 of 38) x11-libs/xcb-util-image-0.4.0-r2::gentoo
>>> Emerging binary (28 of 38) net-misc/seafile-8.0.1::gentoo
>>> Emerging binary (29 of 38) x11-libs/xcb-util-cursor-0.1.3-r3::gentoo
>>> Installing (27 of 38) app-eselect/eselect-fontconfig-1.1-r1::gentoo
>>> Installing (28 of 38) net-misc/seafile-8.0.1::gentoo
>>> Installing (29 of 38) x11-libs/xcb-util-cursor-0.1.3-r3::gentoo
>>> Emerging binary (30 of 38) x11-libs/cairo-1.16.0-r4::gentoo
>>> Installing (30 of 38) x11-libs/cairo-1.16.0-r4::gentoo
>>> Emerging binary (31 of 38) media-libs/harfbuzz-2.7.4::gentoo
>>> Installing (31 of 38) media-libs/harfbuzz-2.7.4::gentoo
>>> Installing (20 of 38) dev-qt/qtcore-5.15.2-r2::gentoo
>>> Emerging (32 of 38) dev-qt/qtdbus-5.15.2::gentoo
>>> Emerging (33 of 38) dev-qt/qtnetwork-5.15.2-r1::gentoo
>>> Emerging (34 of 38) dev-qt/qtxml-5.15.2::gentoo
>>> Emerging (35 of 38) dev-qt/qtgui-5.15.2-r1::gentoo
>>> Installing (34 of 38) dev-qt/qtxml-5.15.2::gentoo
>>> Emerging (36 of 38) dev-qt/linguist-tools-5.15.2::gentoo
>>> Installing (32 of 38) dev-qt/qtdbus-5.15.2::gentoo
>>> Installing (36 of 38) dev-qt/linguist-tools-5.15.2::gentoo
>>> Installing (33 of 38) dev-qt/qtnetwork-5.15.2-r1::gentoo
>>> Installing (35 of 38) dev-qt/qtgui-5.15.2-r1::gentoo
>>> Emerging (37 of 38) dev-qt/qtwidgets-5.15.2::gentoo
>>> Installing (37 of 38) dev-qt/qtwidgets-5.15.2::gentoo
>>> Emerging (38 of 38) net-misc/seafile-client-8.0.1::gentoo
>>> Installing (38 of 38) net-misc/seafile-client-8.0.1::gentoo
-----------

You can compare it to toralf's list (Comment 2). Something in the dep chain breaks it.
Comment 12 Joonas Niilola gentoo-dev 2021-03-21 13:39:03 UTC
And indeed, I downgraded glib to 2.66.7 and this compiled just fine.
Comment 13 Quentin Retornaz 2021-03-21 15:33:39 UTC
Should I update glib dependency to exclude this new version?
Comment 14 Joonas Niilola gentoo-dev 2021-03-21 15:38:27 UTC
We are in the process of deciding whether glib-2.68.0 should be masked in ::gentoo. Not sure whether glib itself is broken, or if some upstreams using it are simply outdated or something. 

As a precaution you could make a PR to depend on <glib-2.68.0, but give us 1-2 days to figure this out before it's going to be merged.
Comment 15 Joonas Niilola gentoo-dev 2021-03-21 15:48:24 UTC
https://gitlab.gnome.org/GNOME/glib/-/commit/552b8fd862061e74b5ad2ffe6a700f850a76f797 here's most likely the offensive commit that made into 2.68. This does make it seem like it's up to glib consumers upstream to fix it, so do prepare a PR restricting glib until you get a patch from seafile upstream fixing it.
Comment 16 Quentin Retornaz 2021-03-21 16:42:48 UTC
Created the PR.
Comment 17 Quentin Retornaz 2021-03-21 16:48:58 UTC
Mmmmh, wwit a second, we have possibly a fix in this upstream PR: https://github.com/haiwen/seafile-client/pull/1346
Comment 19 Quentin Retornaz 2021-03-22 00:36:17 UTC
Created attachment 692847 [details]
build.log with upstream patch

As you can see, the patch did not solve the issue.
Comment 20 Larry the Git Cow gentoo-dev 2021-03-22 06:28:38 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b2a9c1b12fdb36e103b1e85228b5f323910ae63

commit 4b2a9c1b12fdb36e103b1e85228b5f323910ae63
Author:     Quentin Retornaz <gentoo@retornaz.com>
AuthorDate: 2021-03-21 16:28:15 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-03-22 06:26:36 +0000

    net-misc/seafile-client: restrict to <dev-libs/glib-2.68.0
    
    Bug: https://bugs.gentoo.org/777477
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Signed-off-by: Quentin Retornaz <gentoo@retornaz.com>
    Closes: https://github.com/gentoo/gentoo/pull/20038
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 net-misc/seafile-client/seafile-client-8.0.1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 21 Quentin Retornaz 2021-03-23 06:50:52 UTC
We have a new suggestion to test from upstream in https://github.com/haiwen/seafile-client/issues/1349#issuecomment-804660191
Comment 22 Quentin Retornaz 2021-03-24 07:17:09 UTC
Created attachment 693294 [details, diff]
seafile-client-8.0.1-glib-2.68.0.patch

net-misc/seafile-client builds with glib 2.68.0 with attached patch.
I  will make a PR soon.
Comment 23 Quentin Retornaz 2021-03-24 07:40:13 UTC
Err, I think I forgot to remove the glib dependency line...
I'll try again.
Comment 24 Quentin Retornaz 2021-03-24 23:08:53 UTC
works!
Comment 25 Quentin Retornaz 2021-03-24 23:38:10 UTC
created the PR for merging the patch
Comment 26 Larry the Git Cow gentoo-dev 2021-03-30 13:15:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e25556d3cba9a086f7e6b65e57313da750ba6a3

commit 3e25556d3cba9a086f7e6b65e57313da750ba6a3
Author:     Quentin Retornaz <gentoo@retornaz.com>
AuthorDate: 2021-03-24 23:29:03 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-03-30 13:13:16 +0000

    net-misc/seafile-client: fix build with dev-libs/glib-2.68.0
    
    Closes: https://bugs.gentoo.org/777477
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Signed-off-by: Quentin Retornaz <gentoo@retornaz.com>
    Closes: https://github.com/gentoo/gentoo/pull/20108
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../files/seafile-client-8.0.1-glib-2.68.0.patch             | 12 ++++++++++++
 ...client-8.0.1-r1.ebuild => seafile-client-8.0.1-r2.ebuild} |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)