summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorghen <ghen@pkgsrc.org>2008-12-17 17:01:15 +0000
committerghen <ghen@pkgsrc.org>2008-12-17 17:01:15 +0000
commitf77744e31920b13276aa9eb395f646ebd61fb986 (patch)
tree4d5d3e0f6d4e86ceb03b3a3a58f53ce568a80297 /devel
parent86b0f3510134e4616c98e067f4866f953e126d4b (diff)
downloadpkgsrc-f77744e31920b13276aa9eb395f646ebd61fb986.tar.gz
When Vim receives a SIGWINCH when its window is resized, it passes the signal
on to cscope when it's running (whether this is correct or not is a different discussion). The signal handler in cscope tries to ungetch() which crashes if cscope is running in line mode (as under Vim) as opposed to under ncurses. From Philip Paeps <philip@freebsd.org>. Bump PKGREVISION.
Diffstat (limited to 'devel')
-rw-r--r--devel/cscope/Makefile4
-rw-r--r--devel/cscope/distinfo3
-rw-r--r--devel/cscope/patches/patch-ap42
3 files changed, 46 insertions, 3 deletions
diff --git a/devel/cscope/Makefile b/devel/cscope/Makefile
index 7dc00cc31d5..803ccc3ebf3 100644
--- a/devel/cscope/Makefile
+++ b/devel/cscope/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.48 2008/06/07 00:36:57 joerg Exp $
+# $NetBSD: Makefile,v 1.49 2008/12/17 17:01:15 ghen Exp $
DISTNAME= cscope-15.6
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cscope/}
diff --git a/devel/cscope/distinfo b/devel/cscope/distinfo
index da9403686e8..1a9269178d7 100644
--- a/devel/cscope/distinfo
+++ b/devel/cscope/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2007/01/20 23:39:44 wiz Exp $
+$NetBSD: distinfo,v 1.18 2008/12/17 17:01:15 ghen Exp $
SHA1 (cscope-15.6.tar.gz) = f5f73dca1f223cf6905c09a7f0e8eb993fa5fd93
RMD160 (cscope-15.6.tar.gz) = b93238d3c91782d032e028abcfde3c2a7491a9c9
@@ -17,3 +17,4 @@ SHA1 (patch-al) = 76a3a65fe80c7acf7cdf7f78bd4959f102ffdc72
SHA1 (patch-am) = 2c08e2ccf22b3a3852c52d5177c7a08d206c1cdf
SHA1 (patch-an) = cef8d1d31a417125c516df403dce228ac92a307c
SHA1 (patch-ao) = 05ae43171f04320dc1a213510b0906d3387cf35f
+SHA1 (patch-ap) = 6266006b14ac6f0a8063439e9f4521443948665a
diff --git a/devel/cscope/patches/patch-ap b/devel/cscope/patches/patch-ap
new file mode 100644
index 00000000000..0237f5cb791
--- /dev/null
+++ b/devel/cscope/patches/patch-ap
@@ -0,0 +1,42 @@
+$NetBSD: patch-ap,v 1.3 2008/12/17 17:01:15 ghen Exp $
+
+--- src/main.c.orig 2008-12-17 11:50:30.000000000 +0100
++++ src/main.c 2008-12-17 11:50:45.000000000 +0100
+@@ -128,7 +128,8 @@
+ (void) sig;
+ (void) info;
+ (void) unused;
+- ungetch(KEY_RESIZE);
++ if (incurses == YES)
++ ungetch(KEY_RESIZE);
+ }
+ #endif
+
+@@ -153,12 +154,7 @@
+ yyout = stdout;
+ /* save the command name for messages */
+ argv0 = argv[0];
+-#if defined(KEY_RESIZE) && !defined(__DJGPP__)
+- winch_action.sa_sigaction = sigwinch_handler;
+- sigemptyset(&winch_action.sa_mask);
+- winch_action.sa_flags = SA_SIGINFO;
+- sigaction(SIGWINCH,&winch_action,NULL);
+-#endif
++
+ /* set the options */
+ while (--argc > 0 && (*++argv)[0] == '-') {
+ /* HBB 20030814: add GNU-style --help and --version options */
+@@ -403,6 +399,13 @@
+ signal(SIGINT, SIG_IGN); /* ignore interrupts */
+ signal(SIGPIPE, SIG_IGN);/* | command can cause pipe signal */
+
++#if defined(KEY_RESIZE) && !defined(__DJGPP__)
++ winch_action.sa_sigaction = sigwinch_handler;
++ sigemptyset(&winch_action.sa_mask);
++ winch_action.sa_flags = SA_SIGINFO;
++ sigaction(SIGWINCH,&winch_action,NULL);
++#endif
++
+ /* initialize the curses display package */
+ initscr(); /* initialize the screen */
+ entercurses();