From fd9befa32058aac1599b3ec523aa20896f55794b Mon Sep 17 00:00:00 2001 From: Christian Kujau Date: Sat, 22 Mar 2025 20:56:17 +0100 Subject: [PATCH 1/2] Replace AC_PROG_LIBTOOL with LT_INIT Fixes the warning during `autoreconf`: ``` configure.ac:21: warning: The macro 'AC_PROG_LIBTOOL' is obsolete. ``` --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a69c351..6459cf1 100644 --- a/configure.ac +++ b/configure.ac @@ -18,7 +18,7 @@ AC_PROG_CXX AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S -AC_PROG_LIBTOOL +LT_INIT dnl Checks for typedefs, structures, and compiler characteristics. AC_LANG([C++]) From 392354d29bbc857f87ab76dce64d93bcccebb9a2 Mon Sep 17 00:00:00 2001 From: Christian Kujau Date: Sat, 22 Mar 2025 20:57:52 +0100 Subject: [PATCH 2/2] Use regex in Soros.py Fixes the warning during `make check`: ``` src/Soros.py:46: SyntaxWarning: invalid escape sequence '\s' ``` --- src/Soros.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Soros.py b/src/Soros.py index ffe4cae..3f3888b 100644 --- a/src/Soros.py +++ b/src/Soros.py @@ -43,7 +43,7 @@ def __init__(self, prg, lang): # switch off all country-dependent lines, and switch on the requested ones prg = re.sub(r"(^|[\n;])([^\n;#]*#[^\n]*[\[]:[^\n:\]]*:][^\n]*)", r"\1#\2", prg) prg = re.sub(r"(^|[\n;])#([^\n;#]*#[^\n]*[\[]:" + lang.replace("_", "-") + r":][^\n]*)", r"\1\2", prg) - matchline = re.compile("^\s*(\"[^\"]*\"|[^\s]*)\s*(.*[^\s])?\s*$") + matchline = re.compile(r"^\s*(\"[^\"]*\"|[^\s]*)\s*(.*[^\s])?\s*$") prefix = "" for s in re.sub("(#[^\n]*)?(\n|$)", ";", prg).split(";"): macro = re.match("== *(.*[^ ]?) ==", s)