[packages/ncurses] - fix building ada bindings with gcc 10.x - rel 4

baggins baggins at pld-linux.org
Tue May 19 08:59:43 CEST 2020


commit 99c0c5ee37f6c924897b0c0e9dcd0b23f12eedee
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue May 19 08:59:06 2020 +0200

    - fix building ada bindings with gcc 10.x
    - rel 4

 gcc10.patch  | 22 ++++++++++++++++++++++
 ncurses.spec |  4 +++-
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/ncurses.spec b/ncurses.spec
index 63f168d..c0ad995 100644
--- a/ncurses.spec
+++ b/ncurses.spec
@@ -21,7 +21,7 @@ Summary(tr.UTF-8):	Terminal kontrol kitaplığı
 Summary(uk.UTF-8):	ncurses - нова бібліотека керування терміналами
 Name:		ncurses
 Version:	%{basever}.%{patchlevel}
-Release:	3
+Release:	4
 License:	distributable
 Group:		Libraries
 Source0:	ftp://ftp.invisible-island.net/ncurses/current/%{name}-%{basever}-%{patchlevel}.tgz
@@ -32,6 +32,7 @@ Patch100:	%{name}-xterm-home-end.patch
 Patch101:	%{name}-gnome-terminal.patch
 # disable rain demo; triggers gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14998
 Patch102:	%{name}-no-rain-demo.patch
+Patch103:	gcc10.patch
 URL:		http://dickey.his.com/ncurses/ncurses.html
 BuildRequires:	automake
 %if %{with ada}
@@ -306,6 +307,7 @@ tworzenia aplikacji używających ncurses w języku Ada95.
 %patch100 -p1
 %patch101 -p1
 %patch102 -p1
+%patch103 -p1
 
 %build
 unset TERMINFO || :
diff --git a/gcc10.patch b/gcc10.patch
new file mode 100644
index 0000000..daa1ec2
--- /dev/null
+++ b/gcc10.patch
@@ -0,0 +1,22 @@
+--- ncurses-6.1-20200118/aclocal.m4~	2020-01-18 18:30:44.000000000 +0100
++++ ncurses-6.1-20200118/aclocal.m4	2020-05-19 08:49:10.694013352 +0200
+@@ -1145,7 +1145,7 @@
+ [
+ AC_REQUIRE([CF_GNAT_VERSION])
+ case $cf_cv_gnat_version in
+-(3.1[[1-9]]*|3.[[2-9]]*|[[4-9]].*|20[[0-9]][[0-9]])
++(3.1[[1-9]]*|3.[[2-9]]*|[[4-9]].*|1[[0-9]].*|20[[0-9]][[0-9]])
+ 	cf_cv_prog_gnat_correct=yes
+ 	;;
+ (*)
+--- ncurses-6.1-20200118/configure~	2020-01-12 01:10:58.000000000 +0100
++++ ncurses-6.1-20200118/configure	2020-05-19 08:52:57.975016517 +0200
+@@ -24346,7 +24346,7 @@
+ test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
+ 
+ case $cf_cv_gnat_version in
+-(3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
++(3.1[1-9]*|3.[2-9]*|[4-9].*|1[0-9].*|20[0-9][0-9])
+ 	cf_cv_prog_gnat_correct=yes
+ 	;;
+ (*)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ncurses.git/commitdiff/99c0c5ee37f6c924897b0c0e9dcd0b23f12eedee



More information about the pld-cvs-commit mailing list