Andreas Radke pushed to branch main at Arch Linux / Packaging / Packages / 
libvisio


Commits:
3dfeb4bd by Andreas Radke at 2023-12-11T17:36:54+01:00
upgpkg: 0.1.7-10; icu rebuild

- - - - -


3 changed files:

- + .SRCINFO
- PKGBUILD
- + a24c7ff.diff


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,22 @@
+pkgbase = libvisio
+       pkgdesc = Library providing ability to interpret and import visio 
diagrams
+       pkgver = 0.1.7
+       pkgrel = 10
+       url = https://wiki.documentfoundation.org/DLP/Libraries/libvisio
+       arch = x86_64
+       license = LGPL
+       makedepends = boost
+       makedepends = gperf
+       makedepends = doxygen
+       makedepends = cppunit
+       depends = libxml2
+       depends = icu
+       depends = librevenge
+       depends = gcc-libs
+       depends = glibc
+       source = 
https://dev-www.libreoffice.org/src/libvisio/libvisio-0.1.7.tar.xz
+       source = a24c7ff.diff
+       sha256sums = 
8faf8df870cb27b09a787a1959d6c646faa44d0d8ab151883df408b7166bea4c
+       sha256sums = 
ea4d93d328a46a93dd64a822663933bce818db3de8106f28856dc78033fd1a19
+
+pkgname = libvisio


=====================================
PKGBUILD
=====================================
@@ -1,29 +1,40 @@
 # Maintainer: AndyRTR <[email protected]>
-# Maintainer:  BartÅ‚omiej Piotrowski <[email protected]>
+# Contributor: BartÅ‚omiej Piotrowski <[email protected]>
 # Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
 # Contributor: philacs
 
 pkgname=libvisio
 pkgver=0.1.7
-pkgrel=9
+pkgrel=10
 pkgdesc='Library providing ability to interpret and import visio diagrams'
 arch=('x86_64')
 url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio";
 license=('LGPL')
-depends=('libwpd' 'libwpg' 'libxml2' 'icu' 'librevenge')
+depends=('libxml2' 'icu' 'librevenge'
+         'gcc-libs' 'glibc')
 makedepends=('boost' 'gperf' 'doxygen' 'cppunit')
-source=(https://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz)
-sha256sums=('8faf8df870cb27b09a787a1959d6c646faa44d0d8ab151883df408b7166bea4c')
+source=(https://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz
+        a24c7ff.diff)
+sha256sums=('8faf8df870cb27b09a787a1959d6c646faa44d0d8ab151883df408b7166bea4c'
+            'ea4d93d328a46a93dd64a822663933bce818db3de8106f28856dc78033fd1a19')
+
+prepare() {
+  cd $pkgname-$pkgver
+  # fix tests with libxml2 2.12
+  # https://gerrit.libreoffice.org/c/libvisio/+/160542
+  patch -Np1 -i ../a24c7ff.diff
+}
 
 build() {
   cd $pkgname-$pkgver
   ./configure --prefix=/usr
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 
 check() {
   cd $pkgname-$pkgver
-  make -k check
+  make check
 }
 
 package() {


=====================================
a24c7ff.diff
=====================================
@@ -0,0 +1,22 @@
+From a24c7ffa0b19855f9db75bb2414ac338247f4ad6 Mon Sep 17 00:00:00 2001
+From: Jan Tojnar <[email protected]>
+Date: Sun, 10 Dec 2023 15:42:24 +0100
+Subject: [PATCH] tests: Fix build with libxml 2.12
+
+libxml 2.12.0 reorganized the headers, which removed `xmlParseMemory` function 
from the scope.
+
+Change-Id: Ibd747fe7f83eb7c3a8b8cf57ac4a06e365986d46
+---
+
+diff --git a/src/test/importtest.cpp b/src/test/importtest.cpp
+index 9a01473..4a26b4a 100644
+--- a/src/test/importtest.cpp
++++ b/src/test/importtest.cpp
+@@ -14,6 +14,7 @@
+ 
+ #include <libvisio/libvisio.h>
+ 
++#include <libxml/parser.h>
+ #include <libxml/xpath.h>
+ 
+ #include "xmldrawinggenerator.h"



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libvisio/-/commit/3dfeb4bd02ec1080d893e67fc04bd01855eb62b8

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libvisio/-/commit/3dfeb4bd02ec1080d893e67fc04bd01855eb62b8
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to