From 95af12eccb771e39f8c3e497ff4200a73baa15f7 Mon Sep 17 00:00:00 2001 From: Adam Lackorzynski Date: Fri, 31 Oct 2025 09:00:00 +0000 Subject: [PATCH] perl: Fix build for L4Re perl-cross's signal detection mechanisms uses a commonly used word in a grep expression which can also catch lines not intended within this detection mechanism. Change the detection mechanism accordingly. This change is a PR to perl-cross: https://github.com/arsv/perl-cross/pull/166 --- ...igs.sh-Use-less-ambiguous-identifier.patch | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 recipes/perl/perl/0001-configure_sigs.sh-Use-less-ambiguous-identifier.patch diff --git a/recipes/perl/perl/0001-configure_sigs.sh-Use-less-ambiguous-identifier.patch b/recipes/perl/perl/0001-configure_sigs.sh-Use-less-ambiguous-identifier.patch new file mode 100644 index 00000000..41da9ddd --- /dev/null +++ b/recipes/perl/perl/0001-configure_sigs.sh-Use-less-ambiguous-identifier.patch @@ -0,0 +1,40 @@ +From eaabd91ea030d52932d2d53d3da17cd0bc03a118 Mon Sep 17 00:00:00 2001 +From: Adam Lackorzynski +Date: Fri, 31 Oct 2025 11:51:39 +0100 +Subject: [PATCH] configure_sigs.sh: Use less ambiguous identifier + +'number' might be used in the included header file(s) which then defeats +the grep for the number. Thus use the less ambiguous identifier to avoid +those type of clashes. + +Signed-off-by: Adam Lackorzynski +--- + cnf/configure_sigs.sh | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/cnf/configure_sigs.sh b/cnf/configure_sigs.sh +index d0d1b46..7c07846 100644 +--- a/cnf/configure_sigs.sh ++++ b/cnf/configure_sigs.sh +@@ -18,15 +18,15 @@ for sig in HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1\ + + # OH SHI-- + try_add "#if SIG$sig == 0" +- try_add "number 0" ++ try_add "perl_cross_configure_sig_number 0" + for num in `seq 1 100`; do + try_add "#elif SIG$sig == $num" +- try_add "number $num" ++ try_add "perl_cross_configure_sig_number $num" + done + try_add "#endif" + + if try_preproc; then +- num=`grep 'number ' try.out | sed -e 's/[^0-9]//g'` ++ num=`grep 'perl_cross_configure_sig_number ' try.out | sed -e 's/[^0-9]//g'` + if [ -n "$num" -a "$num" != 0 ]; then + msg " got SIG$sig = $num" >&2 + signals="$signals $sig" +-- +2.51.0 +