gettext: Delete libintl.la file from install
PATCH 1/3 gettext: Delete libintl.la file from install
gettext installs a libtool .la file for non-glibc systems since it builds libintl for them unlike glibc where it finds that using libc's gettext implementation is just fine. Same is not true for musl even though musl provides itw own gettext implementation much on then lines of glibc.
ideally gettetxt should be fixed to behave on musl, but at this time its not clear if APIs are same and complete.
Deleting .la file helps compiling packages like util-linux when using fstack-protections since it does not alter the order of libc on linker cmdline
Moved src_uri checksums just below the SRC_URI as matter of formatting
--- meta/recipes-core/gettext/gettext_0.19.6.bb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
meta/recipes-core/gettext/gettext_0.19.6.bb +5 -4
@@ -12,15 +12,15 @@ PROVIDES_class-native = "virtual/gettext-native" RCONFLICTS_${PN} = "proxy-libintl" SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ file://parallel.patch \ - " +" + +SRC_URI[md5sum] = "6d1447f8c5c45c329371ef4bfe7d79a5" +SRC_URI[sha256sum] = "ed4b4c19bd3a3034eb6769500a3592ff616759ef43cf30586dbb7a17c9dd695d" PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${STAGING_LIBDIR}/..,--disable-curses,ncurses," LDFLAGS_prepend_libc-uclibc = " -lrt -lpthread " -SRC_URI[md5sum] = "6d1447f8c5c45c329371ef4bfe7d79a5" -SRC_URI[sha256sum] = "ed4b4c19bd3a3034eb6769500a3592ff616759ef43cf30586dbb7a17c9dd695d" - inherit autotools texinfo EXTRA_OECONF += "--without-lispdir \
@@ -45,6 +45,7 @@ acpaths = '-I ${S}/gettext-runtime/m4 \ do_install_append_libc-musl () { rm -f ${D}${libdir}/charset.alias rm -f ${D}${includedir}/libintl.h + rm -f ${D}${libdir}/libintl.la } # these lack the .x behind the .so, but shouldn't be in the -dev package
Signature · 1 line
1.8.3.1
PATCH 2/3 mesa: Fix build on musl
It assumes __GLIBC__ where it could actually check for linux and include non-glibc C library implementations like musl which provide __BYTE_ORDER macros as well when computing system endianness
--- .../mesa/files/replace_glibc_check_with_linux.patch | 17 +++++++++++++++++ meta/recipes-graphics/mesa/mesa_11.1.1.bb | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch
meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch new file +17 -0
@@ -0,0 +1,17 @@ +endianness check is OS wide and not specific to libc + +Signed-off-by: Khem Raj <[email protected]> +Upstream-Status: Pending +Index: mesa-11.1.1/src/gallium/include/pipe/p_config.h +=================================================================== +--- mesa-11.1.1.orig/src/gallium/include/pipe/p_config.h ++++ mesa-11.1.1/src/gallium/include/pipe/p_config.h +@@ -130,7 +130,7 @@ + * Endian detection. + */ + +-#ifdef __GLIBC__ ++#if defined(__linux__) + #include <endian.h> + + #if __BYTE_ORDER == __LITTLE_ENDIAN
meta/recipes-graphics/mesa/mesa_11.1.1.bb +3 -1
@@ -1,6 +1,8 @@ require ${BPN}.inc -SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/mesa-${PV}.tar.xz" +SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/mesa-${PV}.tar.xz \ + file://replace_glibc_check_with_linux.patch \ +" SRC_URI[md5sum] = "1043dfb907beecb2a761272455960427" SRC_URI[sha256sum] = "64db074fc514136b5fb3890111f0d50604db52f0b1e94ba3fcb0fe8668a7fd20"
Signature · 1 line
1.8.3.1
PATCH 3/3 musl: Add linux-libc-headers to deps
In reply to Khem RajThis is highlighted with clang when trying to
build a single package clean from scratch it
missed kernel headers
--- meta/recipes-core/musl/musl_git.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-core/musl/musl_git.bb +1 -0
@@ -20,6 +20,7 @@ PROVIDES += "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc virtual/libiconv DEPENDS = "virtual/${TARGET_PREFIX}binutils \ virtual/${TARGET_PREFIX}gcc-initial \ libgcc-initial \ + linux-libc-headers \ bsd-headers \ "
Signature · 1 line
1.8.3.1