From d08005a12937057b09808d2591ed20af99a60428 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 17 Apr 2025 09:36:41 -0700 Subject: Add ncurses patch to handle debian mingw32 toolchain Signed-off-by: Keith Packard --- ...lib_gen-Handle-gcc-version-containing-too.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/ncurses/6.2/0001-MKlib_gen-Handle-gcc-version-containing-too.patch (limited to 'packages/ncurses/6.2/0001-MKlib_gen-Handle-gcc-version-containing-too.patch') diff --git a/packages/ncurses/6.2/0001-MKlib_gen-Handle-gcc-version-containing-too.patch b/packages/ncurses/6.2/0001-MKlib_gen-Handle-gcc-version-containing-too.patch new file mode 100644 index 00000000..24007270 --- /dev/null +++ b/packages/ncurses/6.2/0001-MKlib_gen-Handle-gcc-version-containing-too.patch @@ -0,0 +1,30 @@ +From 745adcba14fb4612c36c3bd07a44ceaad61b3e4a Mon Sep 17 00:00:00 2001 +From: Keith Packard +Date: Thu, 17 Apr 2025 09:34:12 -0700 +Subject: [PATCH] MKlib_gen: Handle gcc version containing - too + +Debian's mingw32 compilers add a -posix or -win32 suffix to the +version number. Handle that by allowing either . or - as a separator +after the actual version number. + +Signed-off-by: Keith Packard +--- + ncurses/base/MKlib_gen.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ncurses/base/MKlib_gen.sh b/ncurses/base/MKlib_gen.sh +index 5a3770e..31543da 100755 +--- a/ncurses/base/MKlib_gen.sh ++++ b/ncurses/base/MKlib_gen.sh +@@ -76,7 +76,7 @@ USE="$3" + PRG=`echo "$1" | $AWK '{ sub(/^[ ]*/,""); sub(/[ ].*$/, ""); print; }' || exit 0` + FSF=`"$PRG" --version 2>/dev/null || exit 0 | fgrep "Free Software Foundation" | head -n 1` + ALL=`"$PRG" -dumpversion 2>/dev/null || exit 0` +-ONE=`echo "$ALL" | sed -e 's/\..*$//'` ++ONE=`echo "$ALL" | sed -e 's/[-.].*$//'` + if test -n "$FSF" && test -n "$ALL" && test -n "$ONE" ; then + if test $ONE -ge 5 ; then + echo ".. adding -P option to work around $PRG $ALL" >&2 +-- +2.49.0 + -- cgit v1.2.3