summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2009-07-16 10:47:11 +0000
committerwiz <wiz@pkgsrc.org>2009-07-16 10:47:11 +0000
commitdbbdbe3e37826dcc6f457a231d62b5ccb697b4b1 (patch)
tree3b1f579f2a424af360e009dba5e33f1c8e39afa8 /misc
parent0fa57b6ff6bf71b781afa8fc4509dc2885338ac2 (diff)
downloadpkgsrc-dbbdbe3e37826dcc6f457a231d62b5ccb697b4b1.tar.gz
Fix build with getline() in libc.
From http://bugs.gentoo.org/show_bug.cgi?id=270263 via roy
Diffstat (limited to 'misc')
-rw-r--r--misc/openoffice3/distinfo5
-rw-r--r--misc/openoffice3/patches/patch-ga16
-rw-r--r--misc/openoffice3/patches/patch-gb16
-rw-r--r--misc/openoffice3/patches/patch-gc25
4 files changed, 61 insertions, 1 deletions
diff --git a/misc/openoffice3/distinfo b/misc/openoffice3/distinfo
index 9b6debd2228..01834cf74c1 100644
--- a/misc/openoffice3/distinfo
+++ b/misc/openoffice3/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2009/05/10 01:58:20 hira Exp $
+$NetBSD: distinfo,v 1.21 2009/07/16 10:47:11 wiz Exp $
SHA1 (openoffice-3.1.0/OOo_3.1.0_src_binfilter.tar.bz2) = 7128a2f8af0b0f1163a2f03331057242ec254f34
RMD160 (openoffice-3.1.0/OOo_3.1.0_src_binfilter.tar.bz2) = e7ff15bd78713dcdbfd0df0ca499727cd412b070
@@ -87,3 +87,6 @@ SHA1 (patch-eh) = 4f4b2cebe22e83ca6acd2b226281bf756fbc9083
SHA1 (patch-ei) = 66a1280fec23204e3f919ab1d5280f87ff68161d
SHA1 (patch-ej) = 54cf0ae5619aae6655a66cd4c03191109546de12
SHA1 (patch-ek) = 8539878661657b9c5a84e7084ab7289cd26f859f
+SHA1 (patch-ga) = bc76285681afe91b48399e0886344925d9086b5d
+SHA1 (patch-gb) = 70c11692129ef17cf47afa8dbff25e5e41719599
+SHA1 (patch-gc) = 51c00c2fbb64c299d528c072fe68e1f9786a0fff
diff --git a/misc/openoffice3/patches/patch-ga b/misc/openoffice3/patches/patch-ga
new file mode 100644
index 00000000000..08e67fdec07
--- /dev/null
+++ b/misc/openoffice3/patches/patch-ga
@@ -0,0 +1,16 @@
+$NetBSD: patch-ga,v 1.1 2009/07/16 10:47:11 wiz Exp $
+
+Fix build with getline() in libc.
+From http://bugs.gentoo.org/show_bug.cgi?id=270263
+
+--- soltools/mkdepend/def.h.orig 2008-04-10 18:05:14.000000000 +0000
++++ soltools/mkdepend/def.h
+@@ -154,7 +154,7 @@ char *realloc();
+
+ char *copy();
+ char *base_name();
+-char *getline();
++char *ooo_getline();
+ char *isdefined();
+ struct filepointer *getfile();
+ struct inclist *newinclude();
diff --git a/misc/openoffice3/patches/patch-gb b/misc/openoffice3/patches/patch-gb
new file mode 100644
index 00000000000..f78b845d7ff
--- /dev/null
+++ b/misc/openoffice3/patches/patch-gb
@@ -0,0 +1,16 @@
+$NetBSD: patch-gb,v 1.1 2009/07/16 10:47:11 wiz Exp $
+
+Fix build with getline() in libc.
+From http://bugs.gentoo.org/show_bug.cgi?id=270263
+
+--- soltools/mkdepend/main.c.orig 2008-07-22 17:24:34.000000000 +0000
++++ soltools/mkdepend/main.c
+@@ -548,7 +548,7 @@ int match(str, list)
+ * Get the next line. We only return lines beginning with '#' since that
+ * is all this program is ever interested in.
+ */
+-char *getline(filep)
++char *ooo_getline(filep)
+ register struct filepointer *filep;
+ {
+ register char *p, /* walking pointer */
diff --git a/misc/openoffice3/patches/patch-gc b/misc/openoffice3/patches/patch-gc
new file mode 100644
index 00000000000..a9ca7b4a63a
--- /dev/null
+++ b/misc/openoffice3/patches/patch-gc
@@ -0,0 +1,25 @@
+$NetBSD: patch-gc,v 1.1 2009/07/16 10:47:11 wiz Exp $
+
+Fix build with getline() in libc.
+From http://bugs.gentoo.org/show_bug.cgi?id=270263
+
+--- soltools/mkdepend/parse.c.orig 2008-04-10 18:06:39.000000000 +0000
++++ soltools/mkdepend/parse.c
+@@ -45,7 +45,7 @@ int find_includes(filep, file, file_red,
+ register int type;
+ boolean recfailOK;
+
+- while ((line = getline(filep))) {
++ while ((line = ooo_getline(filep))) {
+ switch(type = deftype(line, filep, file_red, file, TRUE, symbols)) {
+ case IF:
+ doif:
+@@ -168,7 +168,7 @@ int gobble(filep, file, file_red, symbol
+ register char *line;
+ register int type;
+
+- while ((line = getline(filep))) {
++ while ((line = ooo_getline(filep))) {
+ switch(type = deftype(line, filep, file_red, file, FALSE, symbols)) {
+ case IF:
+ case IFFALSE: