View | Details | Raw Unified | Return to bug 220975 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-5 / +15 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	abiword
4
PORTNAME=	abiword
5
PORTVERSION=	3.0.1
5
PORTVERSION=	3.0.2
6
PORTREVISION=	11
7
CATEGORIES=	editors
6
CATEGORIES=	editors
8
MASTER_SITES=	http://www.abisource.com/downloads/abiword/${PORTVERSION}/source/
7
MASTER_SITES=	http://www.abisource.com/downloads/abiword/${PORTVERSION}/source/
9
DIST_SUBDIR=	AbiWord
8
DIST_SUBDIR=	AbiWord
Lines 19-30 Link Here
19
		libpng.so:graphics/png \
18
		libpng.so:graphics/png \
20
		libwv.so:textproc/wv \
19
		libwv.so:textproc/wv \
21
		libfribidi.so:converters/fribidi \
20
		libfribidi.so:converters/fribidi \
22
		libgoffice-0.10.so:devel/goffice010
21
                libgoffice-0.10.so:devel/goffice010 \
22
                libdbus-1.so:devel/dbus \
23
                libgpg-error.so:security/libgpg-error \
24
                libraptor2.so:textproc/raptor2 \
25
                librasqal.so:textproc/rasqal \
26
                libfontconfig.so:x11-fonts/fontconfig \
27
                libicalss.so:devel/libical \
28
                libfreetype.so:print/freetype2 \
29
                librdf.so:textproc/redland \
30
                libwmf.so:graphics/libwmf
31
		
23
RUN_DEPENDS=	${LOCALBASE}/share/fonts/dejavu/DejaVuSerif.ttf:x11-fonts/dejavu
32
RUN_DEPENDS=	${LOCALBASE}/share/fonts/dejavu/DejaVuSerif.ttf:x11-fonts/dejavu
24
33
25
USES=		compiler:c++11-lang desktop-file-utils gmake gnome iconv jpeg \
34
USES=		compiler:c++11-lang desktop-file-utils gmake iconv jpeg \
26
		libtool pathfix pkgconfig
35
		libtool pathfix pkgconfig
27
USE_GNOME=	libxml2 gtk30 librsvg2 libxslt
36
USE_GNOME=	cairo libxml2 gtk30 librsvg2 libxslt
37
USE_XORG+=      x11
28
GNU_CONFIGURE=	yes
38
GNU_CONFIGURE=	yes
29
CPPFLAGS+=	-I${LOCALBASE}/include
39
CPPFLAGS+=	-I${LOCALBASE}/include
30
LDFLAGS+=	-L${LOCALBASE}/lib
40
LDFLAGS+=	-L${LOCALBASE}/lib
(-)distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (AbiWord/abiword-3.0.1.tar.gz) = e094f6fbf0afc5c5538b4894888e7c346f8ee8f49c9d24821dd696d0734865c6
1
TIMESTAMP = 1518488853
2
SIZE (AbiWord/abiword-3.0.1.tar.gz) = 11144990
2
SHA256 (AbiWord/abiword-3.0.2.tar.gz) = afbfd458fd02989d8b0c6362ba8a4c14686d89666f54cfdb5501bd2090cf3522
3
SIZE (AbiWord/abiword-3.0.2.tar.gz) = 11154333
(-)files/patch-abiword.desktop (-3 / +3 lines)
Lines 1-6 Link Here
1
--- abiword.desktop.orig	2010-04-14 23:50:18.000000000 +0200
1
--- abiword.desktop.orig	2019-04-03 21:21:51 UTC
2
+++ abiword.desktop	2010-05-22 09:08:45.000000000 +0200
2
+++ abiword.desktop
3
@@ -6,7 +6,7 @@
3
@@ -6,7 +6,7 @@ Type=Application
4
 Categories=Office;WordProcessor;GNOME;GTK;X-Red-Hat-Base;
4
 Categories=Office;WordProcessor;GNOME;GTK;X-Red-Hat-Base;
5
 StartupNotify=true
5
 StartupNotify=true
6
 X-Desktop-File-Install-Version=0.9
6
 X-Desktop-File-Install-Version=0.9
(-)files/patch-c++11 (-100 lines)
Lines 1-100 Link Here
1
xap_Dialog.cpp:270:17: error: cast from pointer to smaller type 'char' loses information
2
        *pWindowName = (char) NULL;
3
                       ^~~~~~~~~~~
4
ap_UnixApp.cpp:866:29: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
5
        if(0 == strcmp (suffix, "."G_MODULE_SUFFIX))
6
                                   ^
7
ie_exp_XSL-FO.cpp:1454:13: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
8
                buf += " "x"=\""; \
9
                          ^
10
ie_exp_LaTeX.cpp:1332:43: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
11
#define SUB(a,who) case a: subst = "\\(\\"who"\\)"; return true;
12
                                          ^
13
RealmProtocol.cpp:16:2: error: constant expression evaluates to -1 which cannot be narrowed to type 'uint32_t' (aka 'unsigned int') [-Wc++11-narrowing]
14
        RPV1_PACKET_VARIABLE, /* user joined */
15
        ^~~~~~~~~~~~~~~~~~~~
16
RealmProtocol.cpp:10:30: note: expanded from macro 'RPV1_PACKET_VARIABLE'
17
#define RPV1_PACKET_VARIABLE -1
18
                             ^~
19
RealmProtocol.cpp:16:2: note: insert an explicit cast to silence this issue
20
        RPV1_PACKET_VARIABLE, /* user joined */
21
        ^~~~~~~~~~~~~~~~~~~~
22
        static_cast<uint32_t>( )
23
RealmProtocol.cpp:10:30: note: expanded from macro 'RPV1_PACKET_VARIABLE'
24
#define RPV1_PACKET_VARIABLE -1
25
                             ^~
26
soa_soup.cpp:166:11: error: no viable conversion from returned value of type 'soa::GenericPtr' (aka 'shared_ptr<soa::Generic>') to function return type 'bool'
27
                        return soa::GenericPtr();
28
                               ^~~~~~~~~~~~~~~~~
29
30
https://github.com/AbiWord/abiword/commit/a83e6f50dbd5
31
https://github.com/AbiWord/abiword/commit/5623a94c756c
32
33
--- plugins/collab/backends/service/xp/RealmProtocol.cpp.orig	2009-05-27 05:41:59 UTC
34
+++ plugins/collab/backends/service/xp/RealmProtocol.cpp
35
@@ -6,8 +6,8 @@ namespace protocolv1 {
36
 
37
 #define MAX_PACKET_DATA_SIZE 64*1024*1024
38
 		
39
-#define RPV1_PACKET_NONEXISTENT -2
40
-#define RPV1_PACKET_VARIABLE -1
41
+#define RPV1_PACKET_NONEXISTENT uint32_t(-2)
42
+#define RPV1_PACKET_VARIABLE uint32_t(-1)
43
 	
44
 static uint32_t body_size[6] = {
45
 	RPV1_PACKET_NONEXISTENT, /* 0: reserved */
46
--- plugins/collab/backends/service/xp/soa_soup.cpp.orig	2009-09-29 13:58:11 UTC
47
+++ plugins/collab/backends/service/xp/soa_soup.cpp
48
@@ -163,7 +163,7 @@ namespace soup_soa {
49
 	
50
 	static bool _invoke(const std::string& /*url*/, const soa::method_invocation& /*mi*/, SoaSoupSession& sess, std::string& result) {
51
 		if (!sess.m_session || !sess.m_msg )
52
-			return soa::GenericPtr();
53
+			return false;
54
 
55
 		guint status = soup_session_send_message (sess.m_session, sess.m_msg);
56
 		if (!(SOUP_STATUS_IS_SUCCESSFUL (status) ||
57
--- plugins/latex/xp/ie_exp_LaTeX.cpp.orig	2013-04-07 13:53:03 UTC
58
+++ plugins/latex/xp/ie_exp_LaTeX.cpp
59
@@ -1329,7 +1329,7 @@ void s_LaTeX_Listener::_outputData(const UT_UCSChar * 
60
 	m_pie->write(sBuf.c_str(),sBuf.size());
61
 }
62
 
63
-#define SUB(a,who) case a: subst = "\\(\\"who"\\)"; return true;
64
+#define SUB(a,who) case a: subst = "\\(\\" who"\\)"; return true;
65
 #define SUBd(a,who) case a: subst = who; return true;
66
 static bool _convertLettersToSymbols(char c, const char *& subst)
67
 {
68
--- plugins/xslfo/xp/ie_exp_XSL-FO.cpp.orig	2013-04-07 13:53:03 UTC
69
+++ plugins/xslfo/xp/ie_exp_XSL-FO.cpp
70
@@ -1451,7 +1451,7 @@ void s_XSL_FO_Listener::_openSection(PT_AttrPropIndex 
71
 	{ \
72
 		UT_UTF8String esc = szValue; \
73
 		esc.escapeXML(); \
74
-		buf += " "x"=\""; \
75
+		buf += " " x"=\""; \
76
 		buf += esc.utf8_str(); \
77
 		buf += "\""; \
78
 	}
79
--- src/af/xap/xp/xap_Dialog.cpp.orig	2013-04-07 13:53:03 UTC
80
+++ src/af/xap/xp/xap_Dialog.cpp
81
@@ -267,7 +267,7 @@ XAP_Dialog_Modeless::BuildWindowName(char * pWindowNam
82
 // This function constructs and returns the window name of a modeless dialog by
83
 // concatenating the active frame with the dialog name
84
 
85
-	*pWindowName = (char) NULL;
86
+	*pWindowName = '\0';
87
 	UT_UTF8String wn = UT_UTF8String(pDialogName);
88
 
89
 	XAP_Frame* pFrame = getActiveFrame();
90
--- src/wp/ap/gtk/ap_UnixApp.cpp.orig	2013-04-07 13:53:03 UTC
91
+++ src/wp/ap/gtk/ap_UnixApp.cpp
92
@@ -863,7 +863,7 @@ static bool is_so (const char *file) {
93
 	if (len < (strlen(G_MODULE_SUFFIX) + 2)) // this is ".so" and at least one char for the filename
94
 		return false;
95
 	const char *suffix = file+(len-3);
96
-	if(0 == strcmp (suffix, "."G_MODULE_SUFFIX))
97
+	if(0 == strcmp (suffix, "." G_MODULE_SUFFIX))
98
 		return true;
99
 	return false;
100
 }
(-)files/patch-configure (-14 / +5 lines)
Lines 1-15 Link Here
1
--- configure.orig	2014-12-23 06:13:20.000000000 +0100
1
--- configure.orig	2019-04-04 02:57:51 UTC
2
+++ configure	2016-01-26 21:22:33.585049000 +0100
2
+++ configure
3
@@ -23915,7 +23915,7 @@
3
@@ -20592,7 +20592,7 @@ fi
4
 
4
 
5
 
5
 
6
 
6
 
7
-wpg_pkgs="$gsf_req libwpg-0.2 >= 0.2.0 libwpd-0.9 >= 0.9.0 libwpd-stream-0.9 >= 0.9.0"
7
-wpg_pkgs="$gsf_req libwpg-0.2 >= 0.2.0 libwpd-0.9 >= 0.9.0 libwpd-stream-0.9 >= 0.9.0"
8
+wpg_pkgs="libwpg-0.3 $gsf_req"
8
+wpg_pkgs="$gsf_req libwpg-0.3"
9
 wpg_deps="no"
9
 wpg_deps="no"
10
 
10
 
11
 if test "$enable_wpg" != ""; then
11
 if test "$enable_wpg" != ""; then
12
@@ -24341,8 +24341,8 @@
12
@@ -22882,8 +22882,8 @@ fi
13
 
13
 
14
 
14
 
15
 
15
 
Lines 20-31 Link Here
20
 wordperfect_deps="no"
20
 wordperfect_deps="no"
21
 
21
 
22
 WORDPERFECT_CFLAGS=
22
 WORDPERFECT_CFLAGS=
23
@@ -24385,7 +24385,7 @@
24
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25
   test $ac_status = 0; }; then
26
 
27
-	wp_deps_pkgs="$wp_deps_pkgs $wordperfect_wps_pkgs"
28
+	wp_deps_pkgs="$wordperfect_wps_pkgs $wp_deps_pkgs"
29
 	WPS_DEFINE=" -DHAVE_LIBWPS"
30
 
31
 fi
(-)files/patch-flickering (+138 lines)
Line 0 Link Here
1
--- src/af/gr/gtk/gr_UnixCairoGraphics.cpp.orig	2019-04-03 20:11:12 UTC
2
+++ src/af/gr/gtk/gr_UnixCairoGraphics.cpp
3
@@ -577,9 +577,7 @@ void GR_UnixCairoGraphics::_endPaint()
4
 
5
 void GR_UnixCairoGraphics::flush(void)
6
 {
7
-	if (m_Widget) {
8
-		gtk_widget_queue_draw(m_Widget);
9
-	}
10
+	gdk_flush();
11
 }
12
 
13
 bool GR_UnixCairoGraphics::queryProperties(GR_Graphics::Properties gp) const
14
--- src/af/gr/xp/gr_Caret.cpp.orig	2019-04-03 18:13:38 UTC
15
+++ src/af/gr/xp/gr_Caret.cpp
16
@@ -146,8 +146,10 @@ void GR_Caret::s_work(UT_Worker * _w)
17
 {
18
 	GR_Caret * c = static_cast<GR_Caret *>(_w->getInstanceData());
19
 
20
-	if (c->m_nDisableCount == 0)
21
-		c->_blink(false);
22
+	c->m_enabler->stop();
23
+        c->m_worker->stop();
24
+	c->m_worker->start();
25
+	c->_blink(true);
26
 }
27
 
28
 /** One-time enabler. */
29
@@ -155,22 +157,17 @@ void GR_Caret::s_enable(UT_Worker * _w)
30
 {
31
 	GR_Caret * c = static_cast<GR_Caret *>(_w->getInstanceData());
32
 
33
+	c->m_enabler->stop();
34
 	c->m_worker->stop();
35
-	c->_blink(true);
36
-	if (!c->m_bCursorIsOn)
37
-		c->_blink(true); // blink again
38
-	else
39
-	{
40
-		c->_blink(true); // ?? - MARCM
41
-		c->_blink(true);
42
-	}
43
 	c->m_worker->start();
44
-	c->m_enabler->stop();
45
+	c->_blink(true);
46
 }
47
 
48
 void GR_Caret::s_blink_timeout(UT_Worker * _w)
49
 {
50
 	GR_Caret * c = static_cast<GR_Caret *>(_w->getInstanceData());
51
+
52
+	c->m_blinkTimeout->stop();
53
 	if (c->isEnabled())
54
 		c->disable();
55
 }
56
--- src/af/util/xp/ut_iconv.cpp.orig	2019-04-03 18:13:38 UTC
57
+++ src/af/util/xp/ut_iconv.cpp
58
@@ -264,10 +264,10 @@ const char * ucs4Internal ()
59
   // we special-case the win32 build, otherwise spelling and other stuff
60
   // just doesn't work
61
   return "UCS-4LE";
62
-#elif defined(_LIBICONV_H)
63
+#elif defined(_LIBICONV_H) || defined(__FreeBSD__)
64
   // libiconv seems to prefer UCS-4-INTERNAL to UCS-4BE and UCS-4LE
65
   return "UCS-4-INTERNAL";
66
-#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
67
+#elif defined(__OpenBSD__) || defined(__NetBSD__)
68
   // we special case the BSDs since spelling just doesn't work
69
   return "UCS4";
70
 #else
71
--- src/af/xap/gtk/xap_UnixFrameImpl.cpp.orig	2019-04-03 18:13:38 UTC
72
+++ src/af/xap/gtk/xap_UnixFrameImpl.cpp
73
@@ -1208,15 +1208,23 @@ gint XAP_UnixFrameImpl::_fe::delete_event(GtkWidget * 
74
 }
75
 
76
 #if GTK_CHECK_VERSION(3,0,0)
77
-gint XAP_UnixFrameImpl::_fe::draw(GtkWidget * w, cairo_t * cr)
78
+gboolean XAP_UnixFrameImpl::_fe::draw(GtkWidget * w, cairo_t * cr)
79
 #else
80
 gint XAP_UnixFrameImpl::_fe::expose(GtkWidget * w, GdkEventExpose* pExposeEvent)
81
 #endif
82
 {
83
 	XAP_UnixFrameImpl * pUnixFrameImpl = static_cast<XAP_UnixFrameImpl *>(g_object_get_data(G_OBJECT(w), "user_data"));
84
 	FV_View * pView = static_cast<FV_View *>(pUnixFrameImpl->getFrame()->getCurrentView());
85
+	double x, y, width, height;
86
 #if GTK_CHECK_VERSION(3,0,0)
87
-	GdkEventExpose *pExposeEvent = reinterpret_cast<GdkEventExpose *>(gtk_get_current_event());
88
+	cairo_clip_extents (cr, &x, &y, &width, &height);
89
+	width -= x;
90
+	height -= y;
91
+#else
92
+	x = pExposeEvent->area.x;
93
+	y = pExposeEvent->area.y;
94
+	width = pExposeEvent->area.width;
95
+	height = pExposeEvent->area.height;
96
 #endif
97
 /* Jean: commenting out next lines since the zoom update code does draw only
98
  * part of what needs to be updated. */
99
@@ -1230,20 +1238,21 @@ gint XAP_UnixFrameImpl::_fe::expose(GtkWidget * w, Gdk
100
 		UT_Rect rClip;
101
 		if (pGr->getPaintCount () > 0)
102
 			return TRUE;
103
-		xxx_UT_DEBUGMSG(("Expose area: x %d y %d width %d  height %d \n",pExposeEvent->area.x,pExposeEvent->area.y,pExposeEvent->area.width,pExposeEvent->area.height));
104
-		rClip.left = pGr->tlu(pExposeEvent->area.x);
105
-		rClip.top = pGr->tlu(pExposeEvent->area.y);
106
-		rClip.width = pGr->tlu(pExposeEvent->area.width)+1;
107
-		rClip.height = pGr->tlu(pExposeEvent->area.height)+1;
108
-#if GTK_CHECK_VERSION(3,0,0)
109
+		rClip.left = pGr->tlu(x);
110
+                rClip.top = pGr->tlu(y);
111
+ #if GTK_CHECK_VERSION(3,0,0)
112
+		rClip.width = pGr->tlu(width);
113
+		rClip.height = pGr->tlu(height);
114
 		static_cast<GR_CairoGraphics *>(pGr)->setCairo(cr);
115
 		pView->draw(&rClip);
116
 		static_cast<GR_CairoGraphics *>(pGr)->setCairo(NULL);
117
 #else
118
+		rClip.width = pGr->tlu(width)+1;
119
+		rClip.height = pGr->tlu(height)+1;
120
 		pView->draw(&rClip);
121
 #endif
122
 	}
123
-	return FALSE;
124
+	return TRUE;
125
 }
126
 
127
 static bool bScrollWait = false;
128
--- src/af/xap/gtk/xap_UnixFrameImpl.h.orig	2019-04-03 18:13:38 UTC
129
+++ src/af/xap/gtk/xap_UnixFrameImpl.h
130
@@ -152,7 +152,7 @@ class XAP_UnixFrameImpl : public XAP_FrameImpl (protec
131
 			static gint key_release_event(GtkWidget* w, GdkEventKey* e);
132
 			static gint delete_event(GtkWidget * w, GdkEvent * /*event*/, gpointer /*data*/);
133
 #if GTK_CHECK_VERSION(3,0,0)
134
-			static gint draw(GtkWidget * w, cairo_t * cr);
135
+			static gboolean draw(GtkWidget * w, cairo_t * cr);
136
 #else
137
 			static gint expose(GtkWidget * w, GdkEventExpose* pExposeEvent);
138
 #endif
(-)files/patch-plugins_collab_backends_service_xp_tls_tunnel.cpp (-24 lines)
Lines 1-24 Link Here
1
--- plugins/collab/backends/service/xp/tls_tunnel.cpp.orig	2014-11-04 01:12:14 UTC
2
+++ plugins/collab/backends/service/xp/tls_tunnel.cpp
3
@@ -306,8 +306,6 @@ void Proxy::tunnel_(transport_ptr_t tran
4
 	disconnect_(transport_ptr, session_ptr, local_socket_ptr, remote_socket_ptr);		
5
 }
6
 
7
-static const int PRIORITIES[] = { GNUTLS_KX_ANON_DH, GNUTLS_KX_RSA, GNUTLS_KX_DHE_DSS, GNUTLS_KX_DHE_RSA, 0 };
8
-static const int CIPHERS[] = { GNUTLS_CIPHER_AES_256_CBC, GNUTLS_CIPHER_AES_128_CBC, GNUTLS_CIPHER_3DES_CBC, GNUTLS_CIPHER_ARCFOUR_128, 0 };
9
 
10
 // FIXME: this clientproxy can only handle 1 SSL connection at the same time
11
 ClientProxy::ClientProxy(const std::string& connect_address, unsigned short connect_port, 
12
@@ -399,9 +397,9 @@ session_ptr_t ClientProxy::setup_tls_ses
13
 
14
 	// setup session
15
 	return_val_if_neg(gnutls_init(session_ptr.get(), GNUTLS_CLIENT), session_ptr_t());
16
-	return_val_if_neg(gnutls_set_default_priority(*session_ptr), session_ptr_t());
17
-	return_val_if_neg(gnutls_kx_set_priority(*session_ptr,PRIORITIES), session_ptr_t());
18
-	return_val_if_neg(gnutls_cipher_set_priority(*session_ptr,CIPHERS), session_ptr_t());
19
+	return_val_if_neg(gnutls_priority_set_direct(*session_ptr,"NORMAL"
20
+		":-CIPHER-ALL:+AES-256-CBC:+AES-128-CBC:+3DES-CBC:+ARCFOUR-128"
21
+		":-KX-ALL:+ANON-DH:+RSA:+DHE-DSS:+DHE-RSA",NULL), session_ptr_t());
22
 	return_val_if_neg(gnutls_credentials_set(*session_ptr, GNUTLS_CRD_CERTIFICATE, x509cred), session_ptr_t());
23
 
24
 	// setup transport
(-)files/patch-plugins_collab_backends_sipsimple_xp_SIPSimpleBuddy.h (-15 lines)
Lines 1-15 Link Here
1
--- plugins/collab/backends/sipsimple/xp/SIPSimpleBuddy.h.orig	2015-04-04 04:57:15 UTC
2
+++ plugins/collab/backends/sipsimple/xp/SIPSimpleBuddy.h
3
@@ -52,10 +52,10 @@ public:
4
 
5
 	virtual const DocTreeItem* getDocTreeItems() const
6
 	{
7
-		const vector<DocHandle*>& docHandles = getDocHandles();
8
+		const std::vector<DocHandle*>& docHandles = getDocHandles();
9
 		DocTreeItem* first = 0;
10
 		DocTreeItem* prev = 0;
11
-		for (vector<DocHandle*>::const_iterator pos = docHandles.begin(); pos != docHandles.end(); pos++)
12
+		for (std::vector<DocHandle*>::const_iterator pos = docHandles.begin(); pos != docHandles.end(); pos++)
13
 		{
14
 			DocTreeItem* item = new DocTreeItem();
15
 			item->m_type = DOCTREEITEM_TYPE_DOCUMENT;
(-)files/patch-src_af_util_xp_ut_iconv.cpp (-15 lines)
Lines 1-15 Link Here
1
--- src/af/util/xp/ut_iconv.cpp.orig	2009-06-25 02:52:27.000000000 +0200
2
+++ src/af/util/xp/ut_iconv.cpp	2009-10-27 22:43:07.000000000 +0100
3
@@ -264,10 +264,10 @@ const char * ucs4Internal ()
4
   // we special-case the win32 build, otherwise spelling and other stuff
5
   // just doesn't work
6
   return "UCS-4LE";
7
-#elif defined(_LIBICONV_H)
8
+#elif defined(_LIBICONV_H) || defined(__FreeBSD__)
9
   // libiconv seems to prefer UCS-4-INTERNAL to UCS-4BE and UCS-4LE
10
   return "UCS-4-INTERNAL";
11
-#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
12
+#elif defined(__OpenBSD__) || defined(__NetBSD__)
13
   // we special case the BSDs since spelling just doesn't work
14
   return "UCS4";
15
 #else
(-)files/patch-src_af_xap_xp_xap__Dialog.cpp (+11 lines)
Line 0 Link Here
1
--- src/af/xap/xp/xap_Dialog.cpp.orig	2019-04-03 22:06:58 UTC
2
+++ src/af/xap/xp/xap_Dialog.cpp
3
@@ -267,7 +267,7 @@ XAP_Dialog_Modeless::BuildWindowName(char * pWindowNam
4
 // This function constructs and returns the window name of a modeless dialog by
5
 // concatenating the active frame with the dialog name
6
 
7
-	*pWindowName = (char) NULL;
8
+	*pWindowName = (char)(size_t) NULL;
9
 	UT_UTF8String wn = UT_UTF8String(pDialogName);
10
 
11
 	XAP_Frame* pFrame = getActiveFrame();
(-)files/patch-src_text_ptbl_xp_pd__DocumentRDF.cpp (-24 / +12 lines)
Lines 1-26 Link Here
1
--- src/text/ptbl/xp/pd_DocumentRDF.cpp.orig	2015-03-31 15:14:42 UTC
1
--- src/text/ptbl/xp/pd_DocumentRDF.cpp.orig	2019-04-03 21:34:11 UTC
2
+++ src/text/ptbl/xp/pd_DocumentRDF.cpp
2
+++ src/text/ptbl/xp/pd_DocumentRDF.cpp
3
@@ -570,6 +570,11 @@ bool PD_URI::operator==(const std::strin
3
@@ -2269,9 +2269,8 @@ PD_RDFEvent::exportToFile( const std::string& filename
4
     return m_value == b;
4
         icalcomponent_set_uid( c,         m_uid.c_str() );
5
 }
5
         icalcomponent_set_location( c,    m_location.c_str() );
6
 
6
         icalcomponent_set_description( c, m_desc.c_str() );
7
+bool PD_URI::operator<(const PD_URI& b) const
7
-        icalcomponent_set_dtstart( c,     icaltime_from_timet( m_dtstart, 0 ) );
8
+{
8
-        icalcomponent_set_dtend( c,       icaltime_from_timet( m_dtend, 0 ) );
9
+    return m_value < b.m_value;
10
+}
11
+
12
 PD_URI
13
 PD_URI::prefixedToURI( PD_RDFModelHandle model ) const
14
 {
15
@@ -611,11 +616,6 @@ bool PD_URI::write( std::ostream& ss ) c
16
     return true;
17
 }
18
 
19
-bool operator<( PD_URI a, PD_URI b)
20
-{
21
-    return a.toString() < b.toString();
22
-}
23
-
9
-
24
 bool operator<( std::pair< PD_URI, PD_URI > a, PD_URI b)
10
+	icalcomponent_set_dtstart( c,     icaltime_from_timet_with_zone( m_dtstart, 0, 0) );
25
 {
11
+	icalcomponent_set_dtend( c,       icaltime_from_timet_with_zone( m_dtend, 0, 0  ) );
26
     return a.first.toString() < b.toString();
12
         char* data = icalcomponent_as_ical_string( c );
13
         std::ofstream oss( filename.c_str() );
14
         oss.write( data, strlen(data) );
(-)files/patch-src_text_ptbl_xp_pd__DocumentRDF.h (-10 lines)
Lines 1-10 Link Here
1
--- src/text/ptbl/xp/pd_DocumentRDF.h.orig	2015-03-31 15:15:00 UTC
2
+++ src/text/ptbl/xp/pd_DocumentRDF.h
3
@@ -68,6 +68,7 @@ class ABI_EXPORT PD_URI
4
     bool isValid() const;
5
     bool operator==(const PD_URI& b) const;
6
     bool operator==(const std::string& b) const;
7
+    bool operator<(const PD_URI& b) const;
8
 
9
     virtual bool read( std::istream& ss );
10
     virtual bool write( std::ostream& ss ) const;
(-)files/patch-src_wp_ap_gtk_ap__UnixApp.cpp (+11 lines)
Line 0 Link Here
1
--- src/wp/ap/gtk/ap_UnixApp.cpp.orig	2019-04-03 22:28:26 UTC
2
+++ src/wp/ap/gtk/ap_UnixApp.cpp
3
@@ -863,7 +863,7 @@ static bool is_so (const char *file) {
4
 	if (len < (strlen(G_MODULE_SUFFIX) + 2)) // this is ".so" and at least one char for the filename
5
 		return false;
6
 	const char *suffix = file+(len-3);
7
-	if(0 == strcmp (suffix, "."G_MODULE_SUFFIX))
8
+	if(0 == strcmp (suffix, "." G_MODULE_SUFFIX))
9
 		return true;
10
 	return false;
11
 }

Return to bug 220975