Created attachment 872583 [details] ifunc error Greetings, darktable-4.4.2 fails to compile with the following error: ===== /var/tmp/portage/media-gfx/darktable-4.4.2/work/darktable-4.4.2/src/common/iop_profile.c:1291:6: error: the call requires 'ifunc', which is not supported by this target 1291 | void dt_ioppr_transform_image_colorspace_rgb | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/media-gfx/darktable-4.4.2/work/darktable-4.4.2/src/common/iop_profile.c:1214:6: error: the call requires 'ifunc', which is not supported by this target 1214 | void dt_ioppr_transform_image_colorspace | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ===== More details in the attachment. Looking into alpine aports there is a patch for this exact error, however the lines differ a little. https://git.alpinelinux.org/aports/tree/community/darktable/fix-has-attribute-musl.patch I created the proper patch for Gentoo and tested with /etc/patches. Thanks.
Created attachment 872584 [details, diff] ifunc patch Gentoo patch working in /etc/patches
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b2025ac27d01c123701173faec2bd429fd7fb57 commit 3b2025ac27d01c123701173faec2bd429fd7fb57 Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2023-10-22 10:53:24 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2023-10-22 11:03:36 +0000 media-gfx/darktable: fix musl build error Closes: https://bugs.gentoo.org/915596 Signed-off-by: Marek Szuba <marecki@gentoo.org> media-gfx/darktable/darktable-4.4.2.ebuild | 1 + .../files/darktable-4.4.2_fix-has-attribute-musl.patch | 11 +++++++++++ 2 files changed, 12 insertions(+)