mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
tar: Fix build for musl based targets
It only considered linux-gnu hosts when cross compiling here we add linux-musl to the mix as well Fixes errors e.g. 1.28-r0/tar-1.28/src/tar.c:1351:5: error: 'SAVEDIR_SORT_INODE' undeclared here (not in a function) | SAVEDIR_SORT_INODE | ^ (From OE-Core rev: c17d9a8d7f89b8e855f87d61583075129e4aa72c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
musl has valid d_ino implementation
|
||||||
|
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Upstream-Status: Pending
|
||||||
|
|
||||||
|
Index: tar-1.28/m4/d-ino.m4
|
||||||
|
===================================================================
|
||||||
|
--- tar-1.28.orig/m4/d-ino.m4
|
||||||
|
+++ tar-1.28/m4/d-ino.m4
|
||||||
|
@@ -40,7 +40,8 @@ AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_
|
||||||
|
[gl_cv_struct_dirent_d_ino=no],
|
||||||
|
[case "$host_os" in
|
||||||
|
# Guess yes on glibc systems with Linux kernel.
|
||||||
|
- linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
|
||||||
|
+ linux*-gnu*|linux*-musl*)
|
||||||
|
+ gl_cv_struct_dirent_d_ino="guessing yes" ;;
|
||||||
|
# If we don't know, assume the worst.
|
||||||
|
*) gl_cv_struct_dirent_d_ino="guessing no" ;;
|
||||||
|
esac
|
||||||
@@ -7,6 +7,12 @@ LICENSE = "GPLv3"
|
|||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||||
|
|
||||||
SRC_URI += "file://remove-gets.patch \
|
SRC_URI += "file://remove-gets.patch \
|
||||||
|
file://musl_dirent.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[md5sum] = "8f32b2bc1ed7ddf4cf4e4a39711341b0"
|
SRC_URI[md5sum] = "8f32b2bc1ed7ddf4cf4e4a39711341b0"
|
||||||
SRC_URI[sha256sum] = "60e4bfe0602fef34cd908d91cf638e17eeb09394d7b98c2487217dc4d3147562"
|
SRC_URI[sha256sum] = "60e4bfe0602fef34cd908d91cf638e17eeb09394d7b98c2487217dc4d3147562"
|
||||||
|
|
||||||
|
do_install_append_libc-musl() {
|
||||||
|
rm -f ${D}${libdir}/charset.alias
|
||||||
|
rmdir ${D}${libdir}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user