aboutsummaryrefslogtreecommitdiff
path: root/packages/ncurses/6.2/0001-MKlib_gen-Handle-gcc-version-containing-too.patch
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2025-04-17 09:36:41 -0700
committerChris Packham <judge.packham@gmail.com>2025-04-26 15:06:45 +1200
commitd08005a12937057b09808d2591ed20af99a60428 (patch)
treef57e76a0e103594b4261db802bcd4cdf65eaa5a9 /packages/ncurses/6.2/0001-MKlib_gen-Handle-gcc-version-containing-too.patch
parentcd0332bce2f902e950d34b1352fbd4f17fef82d9 (diff)
downloadcrosstool-ng-d08005a12937057b09808d2591ed20af99a60428.tar.gz
crosstool-ng-d08005a12937057b09808d2591ed20af99a60428.tar.bz2
crosstool-ng-d08005a12937057b09808d2591ed20af99a60428.zip
Add ncurses patch to handle debian mingw32 toolchain
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'packages/ncurses/6.2/0001-MKlib_gen-Handle-gcc-version-containing-too.patch')
-rw-r--r--packages/ncurses/6.2/0001-MKlib_gen-Handle-gcc-version-containing-too.patch30
1 files changed, 30 insertions, 0 deletions
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 <keithp@keithp.com>
+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 <keithp@keithp.com>
+---
+ 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
+