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
Created attachment 713385 [details] emerge --info '=media-libs/gegl-0.4.26-r1::gentoo'
Created attachment 713388 [details] build.log
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.
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.
*** Bug 793830 has been marked as a duplicate of this bug. ***
The patch compiles for me. Thank you.
The patch also works for me, thanks!
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.
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.
(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.
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(-)