summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/sharutils/sharutils/0001-configure.ac-Check-and-define-intmax_t-type.patch32
-rw-r--r--meta-oe/recipes-support/sharutils/sharutils_4.15.2.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/sharutils/sharutils/0001-configure.ac-Check-and-define-intmax_t-type.patch b/meta-oe/recipes-support/sharutils/sharutils/0001-configure.ac-Check-and-define-intmax_t-type.patch
new file mode 100644
index 0000000000..32562a08bc
--- /dev/null
+++ b/meta-oe/recipes-support/sharutils/sharutils/0001-configure.ac-Check-and-define-intmax_t-type.patch
@@ -0,0 +1,32 @@
1From ea6f7a4c22f1b6f28cf426566cccd65eb9a0e9de Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 10 Sep 2023 13:52:31 -0700
4Subject: [PATCH] configure.ac: Check and define intmax_t type
5
6If stdint.h or inttypes.h defines the type intmax_t, define HAVE_INTMAX_T.
7Otherwise, define intmax_t to the widest signed integer type.
8
9intmax_t is defined in lib/system.h if system is not providing it but it
10needs to be checked by configure for existence first.
11
12Upstream-Status: Submitted [https://savannah.gnu.org/bugs/index.php?64653]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 configure.ac | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/configure.ac b/configure.ac
19index 1242cb7..2ccaac9 100644
20--- a/configure.ac
21+++ b/configure.ac
22@@ -72,6 +72,7 @@ AC_HEADER_STAT
23 AC_HEADER_STDC
24 AC_STRUCT_TIMEZONE
25 AC_TYPE_SIZE_T
26+AC_TYPE_INTMAX_T
27 AC_CHECK_FUNCS([fchmod isascii strchr])
28 AC_FUNC_CLOSEDIR_VOID
29 AC_FUNC_FSEEKO
30--
312.42.0
32
diff --git a/meta-oe/recipes-support/sharutils/sharutils_4.15.2.bb b/meta-oe/recipes-support/sharutils/sharutils_4.15.2.bb
index bd2776e1bc..2a16b18288 100644
--- a/meta-oe/recipes-support/sharutils/sharutils_4.15.2.bb
+++ b/meta-oe/recipes-support/sharutils/sharutils_4.15.2.bb
@@ -12,6 +12,7 @@ SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \
12 file://0001-Fix-build-with-recent-gettext.patch \ 12 file://0001-Fix-build-with-recent-gettext.patch \
13 file://0001-Fix-building-with-GCC-10.patch \ 13 file://0001-Fix-building-with-GCC-10.patch \
14 file://0002-Do-not-include-lib-md5.c-into-src-shar.c.patch \ 14 file://0002-Do-not-include-lib-md5.c-into-src-shar.c.patch \
15 file://0001-configure.ac-Check-and-define-intmax_t-type.patch \
15 " 16 "
16SRC_URI[md5sum] = "32a51b23e25ad5e6af4b89f228be1800" 17SRC_URI[md5sum] = "32a51b23e25ad5e6af4b89f228be1800"
17SRC_URI[sha256sum] = "ee336e68549664e7a19b117adf02edfdeac6307f22e5ba78baca457116914637" 18SRC_URI[sha256sum] = "ee336e68549664e7a19b117adf02edfdeac6307f22e5ba78baca457116914637"