Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915596 - media-gfx/darktable-4.4.2 on musl - iop_profile.c:1291:6: error: the call requires 'ifunc', which is not supported by this target
Summary: media-gfx/darktable-4.4.2 on musl - iop_profile.c:1291:6: error: the call req...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marek Szuba (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-10-11 13:51 UTC by noosfaira
Modified: 2023-10-22 11:03 UTC (History)
1 user (show)

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


Attachments
ifunc error (dt_err.txt,6.01 KB, text/plain)
2023-10-11 13:51 UTC, noosfaira
Details
ifunc patch (darktable-4.4.2-fix-has-attribute-musl.patch,870 bytes, patch)
2023-10-11 13:53 UTC, noosfaira
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description noosfaira 2023-10-11 13:51:41 UTC
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.
Comment 1 noosfaira 2023-10-11 13:53:11 UTC
Created attachment 872584 [details, diff]
ifunc patch

Gentoo patch working in /etc/patches
Comment 2 Larry the Git Cow gentoo-dev 2023-10-22 11:03:54 UTC
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(+)