summaryrefslogtreecommitdiff
path: root/x11/gtksourceview/patches
diff options
context:
space:
mode:
authorjmmv <jmmv>2004-02-07 15:21:43 +0000
committerjmmv <jmmv>2004-02-07 15:21:43 +0000
commit0d1f18750ebff2af94dea49c402a13c33455baf0 (patch)
tree1327be70f46846e5517eddb8e21324ff20911468 /x11/gtksourceview/patches
parentcbccbde9dd188a02bf21da64499f872c577185ef (diff)
downloadpkgsrc-0d1f18750ebff2af94dea49c402a13c33455baf0.tar.gz
Under a system without GNU regex, this package builds an internal copy of
it. This copy defines the standard regcomp and friends functions, which are also present in NetBSD. The problem is that the copy gets linked into the libgtksourceview shared library and, when loaded into memory, shadows native regex functions. The problem exposes itself at least in gedit through gnome-vfs2. The later executes regcomp, expecting the native one to be called, but instead the one from the libgtksourceview library appears, making the program crash. Apply a patch to ensure these internal GNU regex functions do not colish with native ones. Bump PKGREVISION to 8.
Diffstat (limited to 'x11/gtksourceview/patches')
-rw-r--r--x11/gtksourceview/patches/patch-ab16
1 files changed, 16 insertions, 0 deletions
diff --git a/x11/gtksourceview/patches/patch-ab b/x11/gtksourceview/patches/patch-ab
new file mode 100644
index 00000000000..9c51d193bda
--- /dev/null
+++ b/x11/gtksourceview/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1 2004/02/07 15:21:43 jmmv Exp $
+
+--- gtksourceview/gnu-regex/regex.h.orig 2003-05-15 09:00:56.000000000 +0200
++++ gtksourceview/gnu-regex/regex.h
+@@ -22,6 +22,11 @@
+ #ifndef _REGEX_H
+ #define _REGEX_H 1
+
++#define regcomp gtksourceview_regcomp
++#define regexec gtksourceview_regexec
++#define regerror gtksourceview_regerror
++#define regfree gtksourceview_regfree
++
+ /* Allow the use in C++ code. */
+ #ifdef __cplusplus
+ extern "C" {