summaryrefslogtreecommitdiff
path: root/editors/abiword/patches
diff options
context:
space:
mode:
authorrillig <rillig>2007-11-14 15:41:40 +0000
committerrillig <rillig>2007-11-14 15:41:40 +0000
commit33a287fadf3f77ab6f768bced4c5e3af693ddc80 (patch)
tree84aa0d24200775b81f340e75476dd327dfebf13c /editors/abiword/patches
parentd34287e4d76fa2e41870b4213147ffc05c5ae1b0 (diff)
downloadpkgsrc-33a287fadf3f77ab6f768bced4c5e3af693ddc80.tar.gz
Fixed six little things that prevented sunpro from building the package.
Now it fails in the linker stage with an undefined reference to UT_XML::processingInstruction(const char *, const char *).
Diffstat (limited to 'editors/abiword/patches')
-rw-r--r--editors/abiword/patches/patch-sa22
-rw-r--r--editors/abiword/patches/patch-sb13
-rw-r--r--editors/abiword/patches/patch-sc13
-rw-r--r--editors/abiword/patches/patch-sd13
-rw-r--r--editors/abiword/patches/patch-se13
-rw-r--r--editors/abiword/patches/patch-sf13
6 files changed, 87 insertions, 0 deletions
diff --git a/editors/abiword/patches/patch-sa b/editors/abiword/patches/patch-sa
new file mode 100644
index 00000000000..b9a0be068d3
--- /dev/null
+++ b/editors/abiword/patches/patch-sa
@@ -0,0 +1,22 @@
+$NetBSD: patch-sa,v 1.1 2007/11/14 15:41:41 rillig Exp $
+
+--- src/af/util/xp/ut_misc.cpp.orig 2005-06-20 20:59:13.000000000 +0200
++++ src/af/util/xp/ut_misc.cpp 2007-11-14 14:24:39.136875000 +0100
+@@ -1128,7 +1128,7 @@ const XML_Char ** UT_splitPropsToArray(X
+ }
+
+ char * semi = NULL;
+- const char * p = pProps;
++ char * p = pProps;
+ while(semi = strchr(p, ';'))
+ {
+ *semi = 0;
+@@ -1142,7 +1142,7 @@ const XML_Char ** UT_splitPropsToArray(X
+ const XML_Char ** pPropsArray = new const XML_Char *[2 * iPropCount + 1];
+ UT_return_val_if_fail( pPropsArray, NULL );
+
+- const char * pStart = pProps;
++ char * pStart = pProps;
+
+ // we want to include the 0-terminator
+ for(i = 0; i <= iLen; i++)
diff --git a/editors/abiword/patches/patch-sb b/editors/abiword/patches/patch-sb
new file mode 100644
index 00000000000..c719ce4bef9
--- /dev/null
+++ b/editors/abiword/patches/patch-sb
@@ -0,0 +1,13 @@
+$NetBSD: patch-sb,v 1.1 2007/11/14 15:41:41 rillig Exp $
+
+--- src/af/util/xp/ut_png.cpp.orig 2005-01-07 20:44:09.000000000 +0100
++++ src/af/util/xp/ut_png.cpp 2007-11-14 14:26:59.534916000 +0100
+@@ -84,7 +84,7 @@ bool UT_PNG_getDimensions(const UT_ByteB
+ myBB.pBB = pBB;
+ myBB.iCurPos = 0;
+
+- png_set_read_fn(png_ptr, static_cast<void *>(&myBB), static_cast<png_rw_ptr>(_png_read));
++ png_set_read_fn(png_ptr, static_cast<void *>(&myBB), _png_read);
+
+ /* The call to png_read_info() gives us all of the information from the
+ * PNG file before the first IDAT (image data chunk). REQUIRED
diff --git a/editors/abiword/patches/patch-sc b/editors/abiword/patches/patch-sc
new file mode 100644
index 00000000000..f50082fbd36
--- /dev/null
+++ b/editors/abiword/patches/patch-sc
@@ -0,0 +1,13 @@
+$NetBSD: patch-sc,v 1.1 2007/11/14 15:41:41 rillig Exp $
+
+--- src/af/xap/unix/xap_UnixFont.cpp.orig 2005-10-10 01:28:07.000000000 +0200
++++ src/af/xap/unix/xap_UnixFont.cpp 2007-11-14 14:31:07.730470000 +0100
+@@ -151,7 +151,7 @@ bool XAP_UnixFontHandle::doesGlyphExist(
+
+ static float fixedToFloat(signed long in)
+ {
+- float res = static_cast<float>(in*64);
++ return float(in * 64);
+ }
+ //
+ // UT_Rect of glyph in Logical units.
diff --git a/editors/abiword/patches/patch-sd b/editors/abiword/patches/patch-sd
new file mode 100644
index 00000000000..a9539c11d91
--- /dev/null
+++ b/editors/abiword/patches/patch-sd
@@ -0,0 +1,13 @@
+$NetBSD: patch-sd,v 1.1 2007/11/14 15:41:41 rillig Exp $
+
+--- src/af/xap/unix/xap_UnixFrameImpl.cpp.orig 2006-06-16 21:20:13.000000000 +0200
++++ src/af/xap/unix/xap_UnixFrameImpl.cpp 2007-11-14 14:41:10.141208000 +0100
+@@ -739,7 +739,7 @@ gint XAP_UnixFrameImpl::_fe::configure_e
+
+ if(!pUnixFrameImpl->m_bDoZoomUpdate && (pUnixFrameImpl->m_iZoomUpdateID == 0))
+ {
+- pUnixFrameImpl->m_iZoomUpdateID = g_idle_add(static_cast<GSourceFunc>(do_ZoomUpdate), static_cast<gpointer>(pUnixFrameImpl));
++ pUnixFrameImpl->m_iZoomUpdateID = g_idle_add(do_ZoomUpdate, static_cast<gpointer>(pUnixFrameImpl));
+ }
+ }
+ return 1;
diff --git a/editors/abiword/patches/patch-se b/editors/abiword/patches/patch-se
new file mode 100644
index 00000000000..c8fcf10430e
--- /dev/null
+++ b/editors/abiword/patches/patch-se
@@ -0,0 +1,13 @@
+$NetBSD: patch-se,v 1.1 2007/11/14 15:41:42 rillig Exp $
+
+--- src/wp/ap/unix/abiwidget.cpp.orig 2005-01-26 20:52:07.000000000 +0100
++++ src/wp/ap/unix/abiwidget.cpp 2007-11-14 14:56:13.329692000 +0100
+@@ -589,7 +589,7 @@ static void s_abi_widget_map_cb(GObject
+ //
+ // Can't load until this event has finished propagating
+ //
+- g_idle_add(static_cast<GSourceFunc>(s_abi_widget_load_file),static_cast<gpointer>(abi));
++ g_idle_add(s_abi_widget_load_file,static_cast<gpointer>(abi));
+ }
+ }
+
diff --git a/editors/abiword/patches/patch-sf b/editors/abiword/patches/patch-sf
new file mode 100644
index 00000000000..ddad9de6004
--- /dev/null
+++ b/editors/abiword/patches/patch-sf
@@ -0,0 +1,13 @@
+$NetBSD: patch-sf,v 1.1 2007/11/14 15:41:42 rillig Exp $
+
+--- src/wp/impexp/unix/ie_impGraphic_GdkPixbuf.cpp.orig 2006-06-16 21:30:27.000000000 +0200
++++ src/wp/impexp/unix/ie_impGraphic_GdkPixbuf.cpp 2007-11-14 14:58:13.819843000 +0100
+@@ -396,7 +396,7 @@ UT_Error IE_ImpGraphic_GdkPixbuf::Initia
+ m_pPngBB = new UT_ByteBuf; /* Byte Buffer for Converted Data */
+
+ /* Setting up the Data Writing Function */
+- png_set_write_fn(m_pPNG, static_cast<void *>(m_pPngBB), static_cast<png_rw_ptr>(_write_png), NULL);
++ png_set_write_fn(m_pPNG, static_cast<void *>(m_pPngBB), _write_png, NULL);
+
+ return UT_OK;
+ }