Hello community,

here is the log from the commit of package gtypist for openSUSE:Factory checked 
in at 2015-09-24 06:16:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gtypist (Old)
 and      /work/SRC/openSUSE:Factory/.gtypist.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gtypist"

Changes:
--------
--- /work/SRC/openSUSE:Factory/gtypist/gtypist.changes  2014-10-08 
22:14:20.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.gtypist.new/gtypist.changes     2015-09-24 
06:16:25.000000000 +0200
@@ -1,0 +2,5 @@
+Wed Sep 23 10:21:45 UTC 2015 - jeng...@inai.de
+
+- Add escdelay.diff to work around unintended use of ncurses API
+
+-------------------------------------------------------------------

New:
----
  escdelay.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gtypist.spec ++++++
--- /var/tmp/diff_new_pack.XBpnwo/_old  2015-09-24 06:16:26.000000000 +0200
+++ /var/tmp/diff_new_pack.XBpnwo/_new  2015-09-24 06:16:26.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package gtypist
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,7 @@
 Source:         http://ftp.gnu.org/gnu/gtypist/%name-%version.tar.xz
 Source2:        http://ftp.gnu.org/gnu/gtypist/%name-%version.tar.xz.sig
 Source3:        %name.keyring
+Patch1:         escdelay.diff
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  bison
 BuildRequires:  ncurses-devel
@@ -64,6 +65,7 @@
 
 %prep
 %setup -q 
+%patch -P 1 -p1
 
 %build 
 %configure
@@ -71,7 +73,7 @@
 
 %install
 b="%buildroot";
-make install DESTDIR="$b";
+make install DESTDIR="$b"
 %find_lang %name
 
 %post
@@ -79,7 +81,7 @@
        %install_info --info-dir="%_infodir" "$i"
 done;
 
-%postun
+%preun
 for i in "%_infodir"/gtypist*.gz; do
        %install_info_delete --info-dir="%_infodir" "$i"
 done;

++++++ escdelay.diff ++++++
From: Jan Engelhardt <jeng...@inai.de>
Date: 2015-09-23 11:59:16.636824539 +0200

In modern ncurses, ESCDELAY is not an lvalue (also because the
ESCDELAY "variable" is meant to be read-only).

---
 src/gtypist.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: gtypist-2.9.5/src/gtypist.c
===================================================================
--- gtypist-2.9.5.orig/src/gtypist.c
+++ gtypist-2.9.5/src/gtypist.c
@@ -2205,7 +2205,7 @@ int main( int argc, char **argv )
 
   // Quick hack to get rid of the escape delays
 #ifdef __NCURSES_H
-  ESCDELAY = 1;
+  set_escdelay(1);
 #endif
 
   /* set up colour pairs if possible */


Reply via email to