[arch-commits] Commit in librevenge/trunk (PKGBUILD boost-1.59.patch)

Antonio Rojas arojas at archlinux.org
Sun Dec 6 20:47:26 UTC 2015


    Date: Sunday, December 6, 2015 @ 21:47:26
  Author: arojas
Revision: 252999

Fix build with boost 1.59

Added:
  librevenge/trunk/boost-1.59.patch
Modified:
  librevenge/trunk/PKGBUILD

------------------+
 PKGBUILD         |   11 +++++++++--
 boost-1.59.patch |   11 +++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-12-06 20:42:19 UTC (rev 252998)
+++ PKGBUILD	2015-12-06 20:47:26 UTC (rev 252999)
@@ -10,9 +10,16 @@
 license=('MPL')
 depends=('boost-libs')
 makedepends=('boost' 'doxygen' 'cppunit')
-source=(http://sourceforge.net/projects/libwpd/files/librevenge/$pkgname-$pkgver/$pkgname-$pkgver.tar.xz)
-sha1sums=('670c90182c4809ca8decb397c3b3970172775bc5')
+source=(http://sourceforge.net/projects/libwpd/files/librevenge/$pkgname-$pkgver/$pkgname-$pkgver.tar.xz boost-1.59.patch)
+sha1sums=('670c90182c4809ca8decb397c3b3970172775bc5'
+          '3b2571fefd211f124f6b99a1ce9af9ffec9523bc')
 
+prepare() {
+	cd $pkgname-$pkgver
+	# Fix build with boost 1.59
+	patch -p1 -i ../boost-1.59.patch
+}
+
 build() {
 	cd $pkgname-$pkgver
 	./configure --prefix=/usr

Added: boost-1.59.patch
===================================================================
--- boost-1.59.patch	                        (rev 0)
+++ boost-1.59.patch	2015-12-06 20:47:26 UTC (rev 252999)
@@ -0,0 +1,11 @@
+--- a/src/lib/Makefile.am
++++ b/src/lib/Makefile.am
+@@ -37,7 +37,7 @@
+ AM_CXXFLAGS += -fvisibility=hidden
+ endif
+ 
+-librevenge_ at RVNG_MAJOR_VERSION@_ at RVNG_MINOR_VERSION@_la_CPPFLAGS = -DLIBREVENGE_BUILD
++librevenge_ at RVNG_MAJOR_VERSION@_ at RVNG_MINOR_VERSION@_la_CPPFLAGS = -DLIBREVENGE_BUILD -DBOOST_ERROR_CODE_HEADER_ONLY
+ if HAVE_VISIBILITY
+ librevenge_ at RVNG_MAJOR_VERSION@_ at RVNG_MINOR_VERSION@_la_CPPFLAGS += -DLIBREVENGE_VISIBILITY
+ endif



More information about the arch-commits mailing list