summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/gawk/gawk
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/gawk/gawk')
-rw-r--r--meta/recipes-extended/gawk/gawk/0001-Use-cross-AR-during-compile.patch35
-rw-r--r--meta/recipes-extended/gawk/gawk/0001-configure.ac-re-enable-disabled-printf-features.patch35
-rw-r--r--meta/recipes-extended/gawk/gawk/run-ptest7
3 files changed, 41 insertions, 36 deletions
diff --git a/meta/recipes-extended/gawk/gawk/0001-Use-cross-AR-during-compile.patch b/meta/recipes-extended/gawk/gawk/0001-Use-cross-AR-during-compile.patch
deleted file mode 100644
index ca0d668ce9..0000000000
--- a/meta/recipes-extended/gawk/gawk/0001-Use-cross-AR-during-compile.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From 207b94e37c84007b294e57878c913271aad544ef Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 11 Nov 2020 23:13:23 -0800
4Subject: [PATCH] Use cross AR during compile
5
6If AR is specifcied then it should be used instead of defaulting to 'ar'
7from host
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 configure.ac | 7 +++++++
13 1 file changed, 7 insertions(+)
14
15diff --git a/configure.ac b/configure.ac
16index 31364ab..4804f7b 100644
17--- a/configure.ac
18+++ b/configure.ac
19@@ -92,6 +92,13 @@ GAWK_CANONICAL_HOST
20 AC_USE_SYSTEM_EXTENSIONS
21
22 dnl checks for programs
23+m4_ifndef([AC_PROG_AR],[dnl
24+ AN_MAKEVAR([AR], [AC_PROG_AR])
25+ AN_PROGRAM([ar], [AC_PROG_AR])
26+ AC_DEFUN([AC_PROG_AR],
27+ [AC_CHECK_TOOL(AR, ar, :)])
28+])
29+AC_PROG_AR
30 AC_PROG_EGREP
31 AC_PROG_YACC
32 AC_PROG_LN_S
33--
342.29.2
35
diff --git a/meta/recipes-extended/gawk/gawk/0001-configure.ac-re-enable-disabled-printf-features.patch b/meta/recipes-extended/gawk/gawk/0001-configure.ac-re-enable-disabled-printf-features.patch
new file mode 100644
index 0000000000..bcbc569531
--- /dev/null
+++ b/meta/recipes-extended/gawk/gawk/0001-configure.ac-re-enable-disabled-printf-features.patch
@@ -0,0 +1,35 @@
1From 9ce3184188e3fa275fde0258a165f4446a6e80f7 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Fri, 22 Nov 2024 12:13:58 +0100
4Subject: [PATCH] configure.ac: re-enable disabled printf features
5
6This is needed for ptests to pass for one thing.
7
8Upstream-Status: Inappropriate [needs a config option]
9Signed-off-by: Alexander Kanavin <alex@linutronix.de>
10---
11 configure.ac | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/configure.ac b/configure.ac
15index 0ccd460..7df7e5b 100644
16--- a/configure.ac
17+++ b/configure.ac
18@@ -400,7 +400,7 @@ int main()
19 ])],
20 has_f_format=yes,
21 has_f_format=no,
22- has_f_format=no dnl Cross-compiling, assuming the worst.
23+ has_f_format=yes dnl Cross-compiling in oe-core
24 )
25 if test "$has_f_format" = yes
26 then
27@@ -429,7 +429,7 @@ int main()
28 ])],
29 has_a_format=yes,
30 has_a_format=no,
31- has_a_format=no dnl Cross-compiling, assuming the worst.
32+ has_a_format=yes dnl Cross-compiling in oe-core
33 )
34 if test "$has_a_format" = yes
35 then
diff --git a/meta/recipes-extended/gawk/gawk/run-ptest b/meta/recipes-extended/gawk/gawk/run-ptest
index f67a95874f..f4ef3e7bd4 100644
--- a/meta/recipes-extended/gawk/gawk/run-ptest
+++ b/meta/recipes-extended/gawk/gawk/run-ptest
@@ -2,7 +2,12 @@
2 2
3cd test 3cd test
4for i in `grep -E "^[a-z0-9_-]*:$" Maketests |awk -F: '{print $1}'`; do 4for i in `grep -E "^[a-z0-9_-]*:$" Maketests |awk -F: '{print $1}'`; do
5 #LC_ALL=${GAWKLOCALE:-C} LANG=${GAWKLOCALE:-C} 5 unset LANG
6 grep -q "^$i$" skipped.txt
7 if [ $? -eq 0 ]; then
8 echo "SKIP: $i"
9 continue
10 fi
6 srcdir=`pwd` AWKPROG=gawk AWK=gawk CMP=cmp make -f Maketests $i >$i.tmp 2>&1 11 srcdir=`pwd` AWKPROG=gawk AWK=gawk CMP=cmp make -f Maketests $i >$i.tmp 2>&1
7 if [ -e _$i ]; then 12 if [ -e _$i ]; then
8 cat _$i 13 cat _$i