summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl-cross
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl-cross')
-rw-r--r--meta/recipes-devtools/perl-cross/files/0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch28
-rw-r--r--meta/recipes-devtools/perl-cross/perlcross_1.5.bb1
2 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl-cross/files/0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch b/meta/recipes-devtools/perl-cross/files/0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch
new file mode 100644
index 0000000000..4de4a5b955
--- /dev/null
+++ b/meta/recipes-devtools/perl-cross/files/0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch
@@ -0,0 +1,28 @@
1From 920abf3dc39c851a655b719622c76a6f0dc9981d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Tue, 5 Sep 2023 19:47:33 +0200
4Subject: [PATCH] cnf/configure_pfmt.sh: add 32 bit integer format definitions
5
6These started to matter in perl 5.38 where they are used to print
7line numbers.
8
9Upstream-Status: Submitted [https://github.com/arsv/perl-cross/pull/143]
10Signed-off-by: Alexander Kanavin <alex@linutronix.de>
11---
12 cnf/configure_pfmt.sh | 6 ++++++
13 1 file changed, 6 insertions(+)
14
15diff --git a/cnf/configure_pfmt.sh b/cnf/configure_pfmt.sh
16index 8f93da1..7bb4b6f 100644
17--- a/cnf/configure_pfmt.sh
18+++ b/cnf/configure_pfmt.sh
19@@ -52,3 +52,9 @@ else
20 define uvxformat '"lx"'
21 define uvXUformat '"lX"'
22 fi
23+
24+define i32dformat 'PRId32'
25+define u32uformat 'PRIu32'
26+define u32oformat 'PRIo32'
27+define u32xformat 'PRIx32'
28+define u32XUformat 'PRIX32'
diff --git a/meta/recipes-devtools/perl-cross/perlcross_1.5.bb b/meta/recipes-devtools/perl-cross/perlcross_1.5.bb
index d17945480e..7ca4977b97 100644
--- a/meta/recipes-devtools/perl-cross/perlcross_1.5.bb
+++ b/meta/recipes-devtools/perl-cross/perlcross_1.5.bb
@@ -15,6 +15,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/perl-cross-${PV}.tar.gz;name=perl-c
15 file://0001-perl-cross-add-LDFLAGS-when-linking-libperl.patch \ 15 file://0001-perl-cross-add-LDFLAGS-when-linking-libperl.patch \
16 file://determinism.patch \ 16 file://determinism.patch \
17 file://0001-Makefile-check-the-file-if-patched-or-not.patch \ 17 file://0001-Makefile-check-the-file-if-patched-or-not.patch \
18 file://0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch \
18 " 19 "
19GITHUB_BASE_URI = "https://github.com/arsv/perl-cross/releases/" 20GITHUB_BASE_URI = "https://github.com/arsv/perl-cross/releases/"
20 21