[arch-commits] Commit in abiword/trunk (PKGBUILD boost-asio.patch)

Allan McRae allan at archlinux.org
Tue May 19 07:33:52 UTC 2020


    Date: Tuesday, May 19, 2020 @ 07:33:52
  Author: allan
Revision: 386025

upgpkg: abiword 3.0.4-2: fix FTBFS

Added:
  abiword/trunk/boost-asio.patch
Modified:
  abiword/trunk/PKGBUILD

------------------+
 PKGBUILD         |   11 ++-
 boost-asio.patch |  164 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 171 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-19 06:10:37 UTC (rev 386024)
+++ PKGBUILD	2020-05-19 07:33:52 UTC (rev 386025)
@@ -4,7 +4,7 @@
 
 pkgname=abiword
 pkgver=3.0.4
-pkgrel=1
+pkgrel=2
 pkgdesc='Fully-featured word processor'
 arch=('x86_64')
 license=('GPL')
@@ -12,7 +12,7 @@
 depends=('fribidi' 'wv' 'goffice' 'librsvg' 'enchant' 'desktop-file-utils'
          'redland' 'libical' 'gtk-update-icon-cache' 'loudmouth' 'libwpg' 'libwps' 'libwmf' 'link-grammar' 
          'gtkmathview' 'aiksaurus' 'libxslt' 'libsoup' 'libots' 'libgsf' 'psiconv')
-makedepends=('pkgconfig' 'asio' 'boost' 'gobject-introspection' 'libwpd' 'libwps' 'python2-gobject' 'python-gobject' 'autoconf-archive')
+makedepends=('pkgconfig' 'boost' 'gobject-introspection' 'libwpd' 'libwps' 'python2-gobject' 'python-gobject' 'autoconf-archive')
 conflicts=('abiword-plugins')
 replaces=('abiword-plugins')
 options=('!makeflags')
@@ -22,7 +22,9 @@
         aiksaurus-plugin.m4
         command-plugin.m4
         python-override.patch
-        enchant-2.1.patch)
+        enchant-2.1.patch
+        # https://github.com/AbiWord/abiword/commit/de5dc5fd94a5fe321791d44e88d209a4972264ba
+        boost-asio.patch)	
 sha256sums=('e93096cb192e5bc19d62e180fc5eda643206465315a710113ae5036bc2a1a5d7'
             'SKIP'
             '77b52a3722096cec3bfbe4fff3802f51b6c9e0ff7aaa30028c29825fd4e6a65f'
@@ -30,7 +32,8 @@
             '5f80a2f94f9929cdba9809c5e1a87cd5d537a2518bb879bfb9eab51a71c8dac1'
             '2f26826e9d59d80dacd0dae4aceb815804eaa75954e47507a0897794f33e45be'
             'dba1e3265cd42589f17b41fea1a39c8aa4b83c7203b9d5944b578d0ff9c858be'
-            '444dc2aadea3c80310a509b690097541573f6d2652c573d04da66a0f385fcfb2')
+            '444dc2aadea3c80310a509b690097541573f6d2652c573d04da66a0f385fcfb2'
+            '3d119595c8080f90570ce09e02d6765a0cb84b16f4cc51ef8eee4ff289c19e77')
 validpgpkeys=('6C44DB3E0BF3EAF5B433239A5FEE05E6A56E15A3') # Hubert Figuiere <hub at figuiere.net>
 
 prepare() {

Added: boost-asio.patch
===================================================================
--- boost-asio.patch	                        (rev 0)
+++ boost-asio.patch	2020-05-19 07:33:52 UTC (rev 386025)
@@ -0,0 +1,164 @@
+From de5dc5fd94a5fe321791d44e88d209a4972264ba Mon Sep 17 00:00:00 2001
+From: Hubert Figuiere <hub at figuiere.net>
+Date: Sun, 5 Feb 2017 02:52:37 +0000
+Subject: [PATCH] Bug 13839 - Detect boost::asio
+
+Patch by Adam Majer <amajer at suse.de>
+
+git-svn-id: svn+ssh://svn.abisource.com/svnroot/abiword/trunk@35397 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
+---
+ .../collab/backends/service/xp/AsyncWorker.h   |  7 ++++++-
+ .../backends/service/xp/RealmConnection.h      |  6 +++++-
+ .../collab/backends/service/xp/RealmProtocol.h |  6 +++++-
+ .../collab/backends/service/xp/tls_tunnel.h    |  6 +++++-
+ .../collab/backends/tcp/xp/IOServerHandler.h   |  6 +++++-
+ plugins/collab/plugin.m4                       | 18 +++++++++++-------
+ 6 files changed, 37 insertions(+), 12 deletions(-)
+
+diff --git a/plugins/collab/backends/service/xp/AsyncWorker.h b/plugins/collab/backends/service/xp/AsyncWorker.h
+index ab0437c29f..2e527f9254 100644
+--- a/plugins/collab/backends/service/xp/AsyncWorker.h
++++ b/plugins/collab/backends/service/xp/AsyncWorker.h
+@@ -19,7 +19,12 @@
+ #ifndef __ASYNC_WORKER__
+ #define __ASYNC_WORKER__
+ 
+-#include <asio.hpp>
++#if defined(HAVE_BOOST_ASIO_HPP)
++# include <boost/asio.hpp>
++#else
++# include <asio.hpp>
++#endif
++
+ #include <boost/bind.hpp>
+ #include <boost/function.hpp>
+ #include <boost/noncopyable.hpp>
+diff --git a/plugins/collab/backends/service/xp/RealmConnection.h b/plugins/collab/backends/service/xp/RealmConnection.h
+index 7dc715548c..214b12316b 100644
+--- a/plugins/collab/backends/service/xp/RealmConnection.h
++++ b/plugins/collab/backends/service/xp/RealmConnection.h
+@@ -21,7 +21,11 @@
+ 
+ #include <boost/shared_ptr.hpp>
+ #include <boost/enable_shared_from_this.hpp>
+-#include <asio.hpp>
++#if defined(HAVE_BOOST_ASIO_HPP)
++# include <boost/asio.hpp>
++#else
++# include <asio.hpp>
++#endif
+ #include <vector>
+ #include <string>
+ #include "ut_types.h"
+diff --git a/plugins/collab/backends/service/xp/RealmProtocol.h b/plugins/collab/backends/service/xp/RealmProtocol.h
+index 772ad891dd..03fa536dea 100644
+--- a/plugins/collab/backends/service/xp/RealmProtocol.h
++++ b/plugins/collab/backends/service/xp/RealmProtocol.h
+@@ -9,7 +9,11 @@
+ #include <stdint.h>
+ #endif
+ #include <boost/shared_ptr.hpp>
+-#include <asio.hpp>
++#if defined(HAVE_BOOST_ASIO_HPP)
++# include <boost/asio.hpp>
++#else
++# include <asio.hpp>
++#endif
+ 
+ namespace realm {
+ 
+diff --git a/plugins/collab/backends/service/xp/tls_tunnel.h b/plugins/collab/backends/service/xp/tls_tunnel.h
+index ea07151c70..a78f7815c3 100644
+--- a/plugins/collab/backends/service/xp/tls_tunnel.h
++++ b/plugins/collab/backends/service/xp/tls_tunnel.h
+@@ -33,7 +33,11 @@
+ #include <boost/function.hpp>
+ #include <boost/lexical_cast.hpp>
+ #include <boost/enable_shared_from_this.hpp>
+-#include <asio.hpp>
++#if defined(HAVE_BOOST_ASIO_HPP)
++# include <boost/asio.hpp>
++#else
++# include <asio.hpp>
++#endif
+ #include <string>
+ #include <vector>
+ #ifdef _MSC_VER
+diff --git a/plugins/collab/backends/tcp/xp/IOServerHandler.h b/plugins/collab/backends/tcp/xp/IOServerHandler.h
+index 7a561f4a1c..8a2b931319 100644
+--- a/plugins/collab/backends/tcp/xp/IOServerHandler.h
++++ b/plugins/collab/backends/tcp/xp/IOServerHandler.h
+@@ -23,7 +23,11 @@
+ 
+ #include <boost/bind.hpp>
+ #include <boost/function.hpp>
+-#include <asio.hpp>
++#if defined(HAVE_BOOST_ASIO_HPP)
++# include <boost/asio.hpp>
++#else
++# include <asio.hpp>
++#endif
+ 
+ #include <sync/xp/Synchronizer.h>
+ #include "Session.h"
+diff --git a/plugins/collab/plugin.m4 b/plugins/collab/plugin.m4
+index 98028b99ff..7cfe3a1388 100644
+--- a/plugins/collab/plugin.m4
++++ b/plugins/collab/plugin.m4
+@@ -70,20 +70,22 @@ AC_ARG_ENABLE([collab-backend-tcp],
+ 	enable_collab_backend_tcp=$enableval
+ 	if test "$enable_collab_backend_tcp" != "no"; then
+ 		AC_LANG_PUSH(C++)
+-		AC_CHECK_HEADERS([asio.hpp], [], 
++		AC_CHECK_HEADERS([asio.hpp], [],
++			[AC_CHECK_HEADERS([boost/asio.hpp], [AC_DEFINE([HAVE_BOOST_ASIO_HPP])],
+ 		[
+ 			AC_MSG_ERROR([collab plugin: asio is required for the collab plugin TCP backend, see http://think-async.com/])
+-		])
++		])])
+ 		AC_LANG_POP
+ 		collab_deps="yes"
+ 	fi
+ ], [
+ 	AC_LANG_PUSH(C++)
+-	AC_CHECK_HEADERS([asio.hpp], 
++	AC_CHECK_HEADERS([asio.hpp],
++		[AC_CHECK_HEADERS([boost/asio.hpp], [AC_DEFINE([HAVE_BOOST_ASIO_HPP])],
+ 	[
+ 		enable_collab_backend_tcp="yes"
+ 		collab_deps="yes"
+-	])
++	])])
+ 	AC_LANG_POP
+ ])
+ AC_MSG_CHECKING([for collab tcp backend])
+@@ -112,10 +114,11 @@ AC_ARG_ENABLE([collab-backend-service],
+ 	enable_collab_backend_service=$enableval
+ 	if test "$enable_collab_backend_service" != "no"; then
+ 		AC_LANG_PUSH(C++)
+-		AC_CHECK_HEADERS([asio.hpp], [], 
++		AC_CHECK_HEADERS([asio.hpp], [],
++		[AC_CHECK_HEADERS([boost/asio.hpp], [AC_DEFINE([HAVE_BOOST_ASIO_HPP])],	
+ 		[
+ 			AC_MSG_ERROR([collab plugin: asio is required for the the abicollab.net backend, see http://think-async.com/])
+-		])
++		])])
+ 		AC_LANG_POP
+ 		PKG_CHECK_EXISTS([ $collab_service_req ], [], [
+ 			AC_MSG_ERROR([collab plugin: missing dependencies])
+@@ -125,13 +128,14 @@ AC_ARG_ENABLE([collab-backend-service],
+ ], [
+ 	AC_LANG_PUSH(C++)
+ 	AC_CHECK_HEADERS([asio.hpp],
++		[AC_CHECK_HEADERS([boost/asio.hpp], [AC_DEFINE([HAVE_BOOST_ASIO_HPP])],
+ 	[
+ 		PKG_CHECK_EXISTS([ $collab_service_req ], [
+ 			enable_collab_backend_service="yes"
+ 			collab_deps="yes"
+ 		], [
+ 			enable_collab_backend_service="no"
+-		])
++		])])
+ 	], [
+ 		enable_collab_backend_service="no"
+         ])


More information about the arch-commits mailing list