Created attachment 684432 [details] emerge --info [...] libtool: compile: x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -pthread -I/usr/include/libxml2 -Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -I../common -DCONFIG_DIR=\"/etc/lightdm\" -DSESSIONS_DIR=\"/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions\" -DWAYLAND_SESSIONS_DIR=\"/usr/share/wayland-sessions\" -DREMOTE_SESSIONS_DIR=\"/usr/share/lightdm/remote-sessions\" -Os -march=x86-64 -msse3 -mtune=athlon64-sse3 -pipe -c language.c -fPIC -DPIC -o .libs/liblightdm_gobject_1_la-language.o language.c: In function 'lightdm_language_get_code': language.c:193:13: warning: Deprecated pre-processor symbol, replace with 193 | return GET_PRIVATE (language)->code; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ language.c: In function 'lightdm_language_get_name': language.c:209:13: warning: Deprecated pre-processor symbol, replace with 209 | LightDMLanguagePrivate *priv = GET_PRIVATE (language); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ language.c:217:24: error: 'LC_IDENTIFICATION' undeclared (first use in this function) 217 | setlocale (LC_IDENTIFICATION, locale); | ^~~~~~~~~~~~~~~~~ language.c:217:24: note: each undeclared identifier is reported only once for each function it appears in language.c:220:53: error: '_NL_IDENTIFICATION_LANGUAGE' undeclared (first use in this function) 220 | const gchar *language_en = nl_langinfo (_NL_IDENTIFICATION_LANGUAGE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ language.c: In function 'lightdm_language_get_territory': language.c:249:13: warning: Deprecated pre-processor symbol, replace with 249 | LightDMLanguagePrivate *priv = GET_PRIVATE (language); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ language.c:257:24: error: 'LC_IDENTIFICATION' undeclared (first use in this function) 257 | setlocale (LC_IDENTIFICATION, locale); | ^~~~~~~~~~~~~~~~~ language.c:260:46: error: '_NL_IDENTIFICATION_TERRITORY' undeclared (first use in this function) 260 | gchar *country_en = nl_langinfo (_NL_IDENTIFICATION_TERRITORY); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ language.c: In function 'lightdm_language_matches': language.c:291:13: warning: Deprecated pre-processor symbol, replace with 291 | LightDMLanguagePrivate *priv = GET_PRIVATE (language); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ language.c: In function 'lightdm_language_set_property': language.c:317:13: warning: Deprecated pre-processor symbol, replace with 317 | LightDMLanguagePrivate *priv = GET_PRIVATE (self); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:629: liblightdm_gobject_1_la-language.lo] Error 1 make[2]: Leaving directory '/var/tmp/portage/x11-misc/lightdm-1.30.0-r2/work/lightdm-1.30.0/liblightdm-gobject' make[1]: *** [Makefile:484: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/x11-misc/lightdm-1.30.0-r2/work/lightdm-1.30.0' make: *** [Makefile:416: all] Error 2 * ERROR: x11-misc/lightdm-1.30.0-r2::gentoo failed (compile phase): * emake failed
Created attachment 684435 [details] build.log
Created attachment 684438 [details, diff] musl-language.patch This patch from https://github.com/void-ppc/void-packages/blob/master/srcpkgs/lightdm/patches/musl-language.patch fixes problem.
Created attachment 684441 [details, diff] musl-updwtmpx.patch This patch from https://github.com/void-ppc/void-packages/blob/master/srcpkgs/lightdm/patches/musl-updwtmpx.patch fixes the next build problem which you run into on musl. With both patches lightdm-1.30.0-r2 builds just fine.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0326445b2ff09d42d0fa399840e3314e56dd1644 commit 0326445b2ff09d42d0fa399840e3314e56dd1644 Author: brahmajit das <listout@protonmail.com> AuthorDate: 2022-07-21 13:53:18 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-09-01 02:09:10 +0000 x11-misc/lightdm: Fix LC_IDENTIFICATION and updwtmpx on musl This commit fixes two issues with lightdm on musl - LC_IDENTIFICATION not being defined, and - updwtmpx giving conflicting types Patches are documented to the best of my abilities. Closes: https://bugs.gentoo.org/766866 Signed-off-by: brahmajit das <listout@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/26469 Signed-off-by: Sam James <sam@gentoo.org> .../lightdm/files/lightdm-1.30.0-musl-locale.patch | 42 ++++++++++++++++++++++ .../files/lightdm-1.30.0-musl-updwtmpx.patch | 26 ++++++++++++++ x11-misc/lightdm/lightdm-1.30.0-r3.ebuild | 5 +++ 3 files changed, 73 insertions(+)