Created attachment 860422 [details] Build log of dev-libs/libedit Hi. I'm getting error on a system with musl while buildihg dev-libs/libedit: > error: wchar_t must store ISO 10646 characters #error wchar_t must store ISO 10646 characters Some little googling is giving me this solution: > Musl is ISO 10646 compliant but doesn't define __STDC_ISO_10646__, so let's define it manually. (link removed by new account restrictions of bugzilla) So i made this workaround for the ebuild: --- /var/db/repos/gentoo/dev-libs/libedit/libedit-20221030.3.1.ebuild.orig 2023-04-20 06:31:59.533722158 +0000 +++ /var/db/repos/gentoo/dev-libs/libedit/libedit-20221030.3.1.ebuild 2023-04-20 06:03:40.097167209 +0000 @@ -25,6 +25,13 @@ QA_PKGCONFIG_VERSION=$(ver_cut 2-3) +pkg_setup() { + # musl workaround + if test `eselect profile show | grep "musl"`; then + CFLAGS="${CFLAGS} -D__STDC_ISO_10646__=201103L" + fi +} + multilib_src_configure() { local myconf=( $(use_enable static-libs static) ---------- And package builds fine for me with this patch.
Created attachment 860424 [details] emerge --info '=dev-libs/libedit-20221030.3.1::gentoo'
Created attachment 860425 [details, diff] Patch for the package with this workaround
*** This bug has been marked as a duplicate of bug 870001 ***