summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/cpio
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2024-02-01 11:20:22 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-03 22:08:25 +0000
commit4a9f9022bd621d4e22238b9af1bf872c9d1f20e2 (patch)
tree076f4cd8f02e2fd1f1c330fb0b71535799e361fc /meta/recipes-extended/cpio
parent20aeb04f0223421fff7f02b0303df63bde3017b8 (diff)
downloadpoky-4a9f9022bd621d4e22238b9af1bf872c9d1f20e2.tar.gz
cpio: upgrade 2.14 -> 2.15
Changelog: ========== * Fix operation of --no-absolute-filenames --make-directories * Restore access and modification times of symlinks in copy-in and copy-pass modes. 0001-configure-Include-needed-header-for-major-minor-macr.patch revmoed since it's included in 2.15 (From OE-Core rev: c4fb7512a5b1c13234e3733cba1c4bf246c77861) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/cpio')
-rw-r--r--meta/recipes-extended/cpio/cpio_2.15.bb (renamed from meta/recipes-extended/cpio/cpio_2.14.bb)3
-rw-r--r--meta/recipes-extended/cpio/files/0001-configure-Include-needed-header-for-major-minor-macr.patch48
2 files changed, 1 insertions, 50 deletions
diff --git a/meta/recipes-extended/cpio/cpio_2.14.bb b/meta/recipes-extended/cpio/cpio_2.15.bb
index 397bb5d87c..52070f59a2 100644
--- a/meta/recipes-extended/cpio/cpio_2.14.bb
+++ b/meta/recipes-extended/cpio/cpio_2.15.bb
@@ -7,12 +7,11 @@ LICENSE = "GPL-3.0-only"
7LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949" 7LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"
8 8
9SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \ 9SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \
10 file://0001-configure-Include-needed-header-for-major-minor-macr.patch \
11 file://run-ptest \ 10 file://run-ptest \
12 file://test.sh \ 11 file://test.sh \
13 " 12 "
14 13
15SRC_URI[sha256sum] = "145a340fd9d55f0b84779a44a12d5f79d77c99663967f8cfa168d7905ca52454" 14SRC_URI[sha256sum] = "efa50ef983137eefc0a02fdb51509d624b5e3295c980aa127ceee4183455499e"
16 15
17inherit autotools gettext texinfo ptest 16inherit autotools gettext texinfo ptest
18 17
diff --git a/meta/recipes-extended/cpio/files/0001-configure-Include-needed-header-for-major-minor-macr.patch b/meta/recipes-extended/cpio/files/0001-configure-Include-needed-header-for-major-minor-macr.patch
deleted file mode 100644
index 95ece0bbf3..0000000000
--- a/meta/recipes-extended/cpio/files/0001-configure-Include-needed-header-for-major-minor-macr.patch
+++ /dev/null
@@ -1,48 +0,0 @@
1From 8179be21e664cedb2e9d238cc2f6d04965e97275 Mon Sep 17 00:00:00 2001
2From: Sergey Poznyakoff <gray@gnu.org>
3Date: Thu, 11 May 2023 10:18:44 +0300
4Subject: [PATCH] configure: Include needed header for major/minor macros
5
6This helps in avoiding the warning about implicit function declaration
7which is elevated as error with newer compilers e.g. clang 16
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10
11Upstream-Status: Backport
12Signed-off-by: Ross Burton <ross.burton@arm.com>
13---
14 configure.ac | 18 ++++++++++++++++--
15 1 file changed, 16 insertions(+), 2 deletions(-)
16
17diff --git a/configure.ac b/configure.ac
18index de479e7..c601029 100644
19--- a/configure.ac
20+++ b/configure.ac
21@@ -43,8 +43,22 @@ AC_TYPE_UID_T
22 AC_CHECK_TYPE(gid_t, int)
23
24 AC_HEADER_DIRENT
25-AX_COMPILE_CHECK_RETTYPE([major], [0])
26-AX_COMPILE_CHECK_RETTYPE([minor], [0])
27+AX_COMPILE_CHECK_RETTYPE([major], [0], [
28+#include <sys/types.h>
29+#ifdef MAJOR_IN_MKDEV
30+# include <sys/mkdev.h>
31+#endif
32+#ifdef MAJOR_IN_SYSMACROS
33+# include <sys/sysmacros.h>
34+#endif])
35+AX_COMPILE_CHECK_RETTYPE([minor], [0], [
36+#include <sys/types.h>
37+#ifdef MAJOR_IN_MKDEV
38+# include <sys/mkdev.h>
39+#endif
40+#ifdef MAJOR_IN_SYSMACROS
41+# include <sys/sysmacros.h>
42+#endif])
43
44 AC_CHECK_FUNCS([fchmod fchown])
45 # This is needed for mingw build
46--
472.34.1
48