diff --git a/libcaca-ncurses6.patch b/libcaca-ncurses6.patch new file mode 100644 index 0000000..a61b334 --- /dev/null +++ b/libcaca-ncurses6.patch @@ -0,0 +1,16 @@ +Index: libcaca-0.99.beta19/caca/driver/ncurses.c +=================================================================== +--- libcaca-0.99.beta19.orig/caca/driver/ncurses.c ++++ libcaca-0.99.beta19/caca/driver/ncurses.c +@@ -262,11 +262,7 @@ static int ncurses_init_graphics(caca_di + mouseinterval(-1); /* No click emulation */ + + /* Set the escape delay to a ridiculously low value */ +-#if defined set_escdelay + set_escdelay(10); +-#else +- ESCDELAY = 10; +-#endif + + /* Activate colour */ + start_color(); diff --git a/libcaca.changes b/libcaca.changes index d0ea3b1..963b721 100644 --- a/libcaca.changes +++ b/libcaca.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Sep 2 07:14:17 UTC 2015 - dimstar@opensuse.org + +- Add libcaca-ncurses6.patch: defined against a function name never + worked, so set_escdelay was actually never used. With curses 6.0, + though, ESCDELAY is no longer 'a variable', but a reference to a + function, so we can't assign anything to it. We just assume that + we always use a recent enough version of ncurses to have + set_escdelay avaialble. + ------------------------------------------------------------------- Fri Mar 20 15:50:59 UTC 2015 - dvlaeev@suse.com diff --git a/libcaca.spec b/libcaca.spec index 704b1d4..fd143ba 100644 --- a/libcaca.spec +++ b/libcaca.spec @@ -57,6 +57,7 @@ Patch4: libcaca-ruby_am_cflags.patch Patch5: libcaca-ruby_vendor_install.patch Patch7: libcaca-0.99.beta16-missing-GLU.patch Patch9: caca-no-build-date.patch +Patch10: libcaca-ncurses6.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define rb_vendorarch %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch} %define rb_vendorlib %{_libdir}/ruby/vendor_ruby/%{rb_ver} @@ -188,6 +189,7 @@ chmod 0644 %{S:0} %patch7 %patch9 %patch1 +%patch10 -p1 RUBY="ruby-`echo %{rb_ver} | sed 's|\.[^\.]*$||'`" find . -type f -exec sed -i "s|ruby-1.9|$RUBY|" \{\} \;