Created attachment 874930 [details] build log In a stricter lto environment, media-gfx/gimp-2.10.36 will fail to compile with the following error: ``` gimppalette-load.c: In function ‘gimp_palette_load_ase’: gimppalette-load.c:1098:24: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-aliasing]] 1098 | pixels[j] = *(gfloat *) &tmp; | ^~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[4]: *** [Makefile:1704: gimppalette-load.o] Error 1 make[4]: *** Waiting for unfinished jobs.... ``` Attaching logs.
Created attachment 874931 [details] emerge --info
https://gitlab.gnome.org/GNOME/gimp/-/commit/fc121e7ba8d1c41a2e00772b972154b274905bd7 at least.
Could you please check upstream issue https://gitlab.gnome.org/GNOME/gimp/-/issues/10359#note_1920361 and try to apply suggested changes? Sorry, currently I can't check the patch at least until 24 Nov.
Created attachment 875157 [details] build log Looks OK.
Created attachment 875158 [details, diff] patch (from the suggestion)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfa6eed710ea8397860de55f3d078bd139d4eac9 commit dfa6eed710ea8397860de55f3d078bd139d4eac9 Author: Sergey Torokhov <torokhov-s-a@yandex.ru> AuthorDate: 2023-11-26 20:02:31 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-12-05 10:32:07 +0000 media-gfx/gimp: 2.10.36-r1, fix strict-aliasing build (upstream patch) Closes: https://bugs.gentoo.org/917497 Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/34009 Signed-off-by: Sam James <sam@gentoo.org> .../files/gimp-2.10.36_fix_strict-aliasing.patch | 34 ++++ media-gfx/gimp/gimp-2.10.36-r1.ebuild | 215 +++++++++++++++++++++ 2 files changed, 249 insertions(+)