Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 793998 - media-libs/gegl-0.4.26-r1[openexr]: error: template with C linkage
Summary: media-libs/gegl-0.4.26-r1[openexr]: 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: Sergey Torokhov
URL:
Whiteboard:
Keywords: PATCH, PullRequest
: 793830 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-06-03 06:25 UTC by Gleb
Modified: 2021-06-09 21:35 UTC (History)
5 users (show)

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


Attachments
emerge --info '=media-libs/gegl-0.4.26-r1::gentoo' (info.txt,7.77 KB, text/plain)
2021-06-03 06:25 UTC, Gleb
Details
build.log (build.log.xz,21.17 KB, application/x-xz)
2021-06-03 06:26 UTC, Gleb
Details
gegl-0.4.26-0001-exr-load.cpp-remove-extern-C.patch (gegl-0.4.26-0001-exr-load.cpp-remove-extern-C.patch,875 bytes, text/plain)
2021-06-03 08:52 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gleb 2021-06-03 06:25:10 UTC
Current release version cannot be compiled with openexr flag.

emerge -pqv '=media-libs/gegl-0.4.26-r1::gentoo'
[ebuild   R   ] media-libs/gegl-0.4.26-r1  USE="cairo lcms openexr* pdf raw sdl svg tiff -debug -ffmpeg -introspection -lensfun -test -umfpack -v4l -vala -webp"



Reproducible: Always
Comment 1 Gleb 2021-06-03 06:25:45 UTC
Created attachment 713385 [details]
emerge --info '=media-libs/gegl-0.4.26-r1::gentoo'
Comment 2 Gleb 2021-06-03 06:26:24 UTC
Created attachment 713388 [details]
build.log
Comment 3 Bernd 2021-06-03 08:50:36 UTC
I can confirm this with openexr-2.5.5. Looking at current source, the extern C linkage statement has been removed from current source, so I tried if this works with 0.4.26 as well. The attached patch solved the issue on a quick test.
Comment 4 Bernd 2021-06-03 08:52:04 UTC
Created attachment 713394 [details]
gegl-0.4.26-0001-exr-load.cpp-remove-extern-C.patch

Patch to remove extern C linkage statment in exr-load.cpp.
Can be used from /etc/portage/patches for testing.
Comment 5 Ionen Wolkens gentoo-dev 2021-06-03 09:37:25 UTC
*** Bug 793830 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Posch 2021-06-03 14:31:54 UTC
The patch compiles for me.

Thank you.
Comment 7 Gleb 2021-06-04 06:22:26 UTC
The patch also works for me, thanks!
Comment 8 Tod Jackson 2021-06-04 15:52:45 UTC
Just some more information about the greater issue:
https://gitlab.gnome.org/GNOME/glib/-/issues/2331
https://gitlab.gnome.org/GNOME/gegl/-/merge_requests/93

In my case I hit the bug with GEGL 0.4.26 and GLIB 2.68.2 and the patch solves the issue, thanks (and it can't be solved by using older GCC). As you can see from the second link it was fixed upstream, so will probably be in GEGL release 0.4.31 or so.
Comment 9 Sergey Torokhov 2021-06-04 22:07:40 UTC
Thanks to all for reporting and infornation about patch. I hope to reach pc this weekend to test and to create pull request with revisions for all current gegl versions in portage tree.
Comment 10 Sergey Torokhov 2021-06-05 19:27:01 UTC
(In reply to Tod Jackson from comment #8)
> so will probably be in GEGL release 0.4.31 or so.

I checked that the gegl-0.4.30 already isn't affected this issue, theretofore only 0.4.26 and 0.4.28 new revisions will be updated with fix.
Comment 11 Larry the Git Cow gentoo-dev 2021-06-09 21:34:14 UTC
The bug has been closed via the following commit(s):

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

commit aa48d2b8434c6b1b5e68039270c001e5552e2028
Author:     Sergey Torokhov <torokhov-s-a@yandex.ru>
AuthorDate: 2021-06-06 08:00:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-09 21:33:57 +0000

    media-libs/gegl: fix USE="openexr" build against >=dev-libs/glib-2.67.3
    
    Closes: https://bugs.gentoo.org/793998
    
    Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/gegl-0.4.26-fix-build-glib-2.67.3.patch  | 24 ++++++++++++++++++++++
 media-libs/gegl/gegl-0.4.26-r1.ebuild              |  3 ++-
 media-libs/gegl/gegl-0.4.28.ebuild                 |  3 ++-
 media-libs/gegl/gegl-0.4.30.ebuild                 |  2 +-
 4 files changed, 29 insertions(+), 3 deletions(-)