From 8518af47e650c5c90ae59b948adb560b4c344b44 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 29 Apr 2025 16:44:19 -0700 Subject: [PATCH] pthsem: fix compilation with autoconf >= 2.71 Sort of upstream backport. Remove sjlj patches. These were fixed by overriding the var. Signed-off-by: Rosen Penev --- libs/pthsem/Makefile | 2 +- libs/pthsem/patches/001-linux3x-fix.patch | 11 ------- libs/pthsem/patches/003-linux4x-fix.patch | 11 ------- libs/pthsem/patches/010-autoconf272.patch | 30 +++++++++++++++++++ libs/pthsem/patches/011-fix-error-check.patch | 18 +++++++++++ 5 files changed, 49 insertions(+), 23 deletions(-) delete mode 100644 libs/pthsem/patches/001-linux3x-fix.patch delete mode 100644 libs/pthsem/patches/003-linux4x-fix.patch create mode 100644 libs/pthsem/patches/010-autoconf272.patch create mode 100644 libs/pthsem/patches/011-fix-error-check.patch diff --git a/libs/pthsem/Makefile b/libs/pthsem/Makefile index f9f35a5c2e..67852aa682 100644 --- a/libs/pthsem/Makefile +++ b/libs/pthsem/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pthsem PKG_VERSION:=2.0.8 -PKG_RELEASE:=7 +PKG_RELEASE:=8 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.auto.tuwien.ac.at/~mkoegler/pth/ diff --git a/libs/pthsem/patches/001-linux3x-fix.patch b/libs/pthsem/patches/001-linux3x-fix.patch deleted file mode 100644 index 60aff546e2..0000000000 --- a/libs/pthsem/patches/001-linux3x-fix.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/acinclude.m4 -+++ b/acinclude.m4 -@@ -892,6 +892,8 @@ case $PLATFORM in - case "x`uname -r`" in - changequote(, )dnl - x2.[23456789]* ) ;; -+changequote(, )dnl -+ x3.* ) ;; - changequote([, ]) - * ) braindead=yes ;; - esac diff --git a/libs/pthsem/patches/003-linux4x-fix.patch b/libs/pthsem/patches/003-linux4x-fix.patch deleted file mode 100644 index 167ba4e593..0000000000 --- a/libs/pthsem/patches/003-linux4x-fix.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/acinclude.m4 -+++ b/acinclude.m4 -@@ -894,6 +894,8 @@ changequote(, )dnl - x2.[23456789]* ) ;; - changequote(, )dnl - x3.* ) ;; -+changequote(, )dnl -+ x4.* ) ;; - changequote([, ]) - * ) braindead=yes ;; - esac diff --git a/libs/pthsem/patches/010-autoconf272.patch b/libs/pthsem/patches/010-autoconf272.patch new file mode 100644 index 0000000000..71d24af1a5 --- /dev/null +++ b/libs/pthsem/patches/010-autoconf272.patch @@ -0,0 +1,30 @@ +From 3ec1a1c22142c547bc7f44622291bf0abdc322f1 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Sun, 25 Feb 2024 14:33:02 +0100 +Subject: [PATCH] acinclude.m4: fix build with autoconf >= 2.72 + +Move fi statement where it belongs to fix the following build failure +with autoconf >= 2.72: + +checking for stack setup via makecontext... ./configure: line 15863: syntax error near unexpected token `;;' + +Fixes: + - http://autobuild.buildroot.org/results/013e0d3f72582ce3675f65786c014518682d703b + +Signed-off-by: Fabrice Fontaine +--- + acinclude.m4 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -1426,8 +1426,8 @@ ac_cv_stacksetup_$1='guessed:(skaddr),(s + ]) + dnl # restore original compile environment + CFLAGS="$OCFLAGS" +-])dnl + fi ++])dnl + dnl # extract result ingredients of single cached result value + type=`echo $ac_cv_stacksetup_$1 | sed -e 's;:.*$;;'` + addr=`echo $ac_cv_stacksetup_$1 | sed -e 's;^.*:;;' -e 's;,.*$;;'` diff --git a/libs/pthsem/patches/011-fix-error-check.patch b/libs/pthsem/patches/011-fix-error-check.patch new file mode 100644 index 0000000000..0ce84f713d --- /dev/null +++ b/libs/pthsem/patches/011-fix-error-check.patch @@ -0,0 +1,18 @@ +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -953,6 +953,7 @@ changequote(<<, >>)dnl + #include + #include + #include ++#include + + int main(int argc, char *argv[]) + { +@@ -1001,6 +1002,7 @@ changequote(<<, >>)dnl + #include + #include + #include ++#include + int main(int argc, char *argv[]) + { + FILE *fp;