summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/tar
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/tar')
-rw-r--r--meta/recipes-extended/tar/tar/musl_dirent.patch19
-rw-r--r--meta/recipes-extended/tar/tar_1.28.bb6
2 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-extended/tar/tar/musl_dirent.patch b/meta/recipes-extended/tar/tar/musl_dirent.patch
new file mode 100644
index 0000000000..b0dc16c3dd
--- /dev/null
+++ b/meta/recipes-extended/tar/tar/musl_dirent.patch
@@ -0,0 +1,19 @@
1musl has valid d_ino implementation
2
3Signed-off-by: Khem Raj <raj.khem@gmail.com>
4Upstream-Status: Pending
5
6Index: tar-1.28/m4/d-ino.m4
7===================================================================
8--- tar-1.28.orig/m4/d-ino.m4
9+++ tar-1.28/m4/d-ino.m4
10@@ -40,7 +40,8 @@ AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_
11 [gl_cv_struct_dirent_d_ino=no],
12 [case "$host_os" in
13 # Guess yes on glibc systems with Linux kernel.
14- linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
15+ linux*-gnu*|linux*-musl*)
16+ gl_cv_struct_dirent_d_ino="guessing yes" ;;
17 # If we don't know, assume the worst.
18 *) gl_cv_struct_dirent_d_ino="guessing no" ;;
19 esac
diff --git a/meta/recipes-extended/tar/tar_1.28.bb b/meta/recipes-extended/tar/tar_1.28.bb
index 8816000399..518e622065 100644
--- a/meta/recipes-extended/tar/tar_1.28.bb
+++ b/meta/recipes-extended/tar/tar_1.28.bb
@@ -7,6 +7,12 @@ LICENSE = "GPLv3"
7LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" 7LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
8 8
9SRC_URI += "file://remove-gets.patch \ 9SRC_URI += "file://remove-gets.patch \
10 file://musl_dirent.patch \
10 " 11 "
11SRC_URI[md5sum] = "8f32b2bc1ed7ddf4cf4e4a39711341b0" 12SRC_URI[md5sum] = "8f32b2bc1ed7ddf4cf4e4a39711341b0"
12SRC_URI[sha256sum] = "60e4bfe0602fef34cd908d91cf638e17eeb09394d7b98c2487217dc4d3147562" 13SRC_URI[sha256sum] = "60e4bfe0602fef34cd908d91cf638e17eeb09394d7b98c2487217dc4d3147562"
14
15do_install_append_libc-musl() {
16 rm -f ${D}${libdir}/charset.alias
17 rmdir ${D}${libdir}
18}