summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authormaya <maya>2017-01-30 04:19:22 +0000
committermaya <maya>2017-01-30 04:19:22 +0000
commit617a5be58a33b18a949d82c4222db159fc5e6753 (patch)
treedc080fef164d1ec6e456a58ff70242dcd3145d6e /audio
parent6ff1882d96a8e9b498fbf4e7afce71a7d3eb89de (diff)
downloadpkgsrc-617a5be58a33b18a949d82c4222db159fc5e6753.tar.gz
moc: don't try to set escdelay before setting up a window. this will
fail on ncurses (and this failure is ignored) and segfault on nbcurses. reported by Chavdar Ivanov in current-users. bump PKGREVISION.
Diffstat (limited to 'audio')
-rw-r--r--audio/moc/Makefile4
-rw-r--r--audio/moc/distinfo3
-rw-r--r--audio/moc/patches/patch-interface__elements.c37
3 files changed, 41 insertions, 3 deletions
diff --git a/audio/moc/Makefile b/audio/moc/Makefile
index 8bd476011d8..2a46b6dba60 100644
--- a/audio/moc/Makefile
+++ b/audio/moc/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.30 2017/01/01 16:06:03 adam Exp $
+# $NetBSD: Makefile,v 1.31 2017/01/30 04:19:22 maya Exp $
DISTNAME= moc-2.5.0
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= audio
MASTER_SITES= http://ftp.daper.net/pub/soft/moc/stable/
EXTRACT_SUFX= .tar.bz2
diff --git a/audio/moc/distinfo b/audio/moc/distinfo
index 20de3dc7541..0043302b9a9 100644
--- a/audio/moc/distinfo
+++ b/audio/moc/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2016/02/16 08:46:01 leot Exp $
+$NetBSD: distinfo,v 1.12 2017/01/30 04:19:22 maya Exp $
SHA1 (moc-2.5.0.tar.bz2) = a02c10075541995771dbdccb7f2d0ecd19d70b81
RMD160 (moc-2.5.0.tar.bz2) = 0c5d927b7c8ef54338ff6970f9e5d4f71dcb6168
@@ -7,4 +7,5 @@ Size (moc-2.5.0.tar.bz2) = 594532 bytes
SHA1 (patch-ab) = 37a3cc45df7b528613ce5c714c95895988f1570c
SHA1 (patch-ad) = 4d4d73f819717698b37ca937477989b010adb5c8
SHA1 (patch-decoder__plugins_vorbis_vorbis.m4) = 50f2967146be40a6d6b881cdffe5f25c4c226175
+SHA1 (patch-interface__elements.c) = ce04fadc67b823dcef48dfbcfcfcad25213dab51
SHA1 (patch-playlist__file.c) = cc2d5280992d713c846bfe16e8869238df6dca5d
diff --git a/audio/moc/patches/patch-interface__elements.c b/audio/moc/patches/patch-interface__elements.c
new file mode 100644
index 00000000000..99b5b0c582e
--- /dev/null
+++ b/audio/moc/patches/patch-interface__elements.c
@@ -0,0 +1,37 @@
+$NetBSD: patch-interface__elements.c,v 1.1 2017/01/30 04:19:22 maya Exp $
+
+don't attempt to set esc delay before setting a window... fails
+silently for ncurses, segfaults for nbcurses.
+
+--- interface_elements.c.orig 2014-08-30 02:31:51.000000000 +0000
++++ interface_elements.c
+@@ -3622,13 +3622,6 @@ static void info_win_resize (struct info
+
+ void windows_init ()
+ {
+- if (getenv ("ESCDELAY") == NULL) {
+-#ifdef HAVE_SET_ESCDELAY
+- set_escdelay (25);
+-#else
+- setenv ("ESCDELAY", "25", 0);
+-#endif
+- }
+
+ utf8_init ();
+ if (!initscr ())
+@@ -3659,6 +3652,15 @@ void windows_init ()
+ wnoutrefresh (info_win.win);
+ doupdate ();
+
++ if (getenv ("ESCDELAY") == NULL) {
++#ifdef HAVE_SET_ESCDELAY
++ set_escdelay (25);
++#else
++ setenv ("ESCDELAY", "25", 0);
++#endif
++ }
++
++
+ iface_initialized = 1;
+ }
+