[arch-commits] Commit in sympol/trunk (PKGBUILD cddlib-0.94k.patch)

Evangelos Foutras foutrelis at archlinux.org
Sun Dec 6 23:20:35 UTC 2020


    Date: Sunday, December 6, 2020 @ 23:20:35
  Author: foutrelis
Revision: 771320

Fix build with cddlib 0.94k

Added:
  sympol/trunk/cddlib-0.94k.patch
Modified:
  sympol/trunk/PKGBUILD

--------------------+
 PKGBUILD           |    3 +++
 cddlib-0.94k.patch |   14 ++++++++++++++
 2 files changed, 17 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-06 23:03:58 UTC (rev 771319)
+++ PKGBUILD	2020-12-06 23:20:35 UTC (rev 771320)
@@ -8,10 +8,12 @@
 url="http://www.math.uni-rostock.de/~rehn/software/sympol.html"
 license=(GPL2)
 source=($pkgname-$pkgver::"https://github.com/tremlin/SymPol/archive/v$pkgver.tar.gz"
+        cddlib-0.94k.patch
         sympol-fix-headers.patch)
 depends=(boost-libs lrs cddlib)
 makedepends=(cmake permlib eigen bliss)
 sha256sums=('6753b8fb30745b66a0886e125c18b539417afcf62b804799eb220bd5a59ccc37'
+            '23f85255ad1acbaf9c63134c6d331e0f3b8d06230a05e3f63e57399863579649'
             'f3ed90e6b9af5dae0728c52ce4bb9107f3040481cac6c08116dbf8c19bfe3971')
 
 prepare() {
@@ -20,6 +22,7 @@
   sed -e 's|lrsgmp|lrs|' -i sympol/CMakeLists.txt # Fix linking to system lrs
   rm -r external/{lrslib*,cddlib*}
   sed -e '/lrs_mp_close/d' -i sympol/raycomputationlrs.cpp # Fix build with lrs 0.5 (Fedora)
+  patch -p1 -i ../cddlib-0.94k.patch # Fix build with cddlib 0.94k
   patch -p1 -i ../sympol-fix-headers.patch # Keep headers directory structure
 }
 

Added: cddlib-0.94k.patch
===================================================================
--- cddlib-0.94k.patch	                        (rev 0)
+++ cddlib-0.94k.patch	2020-12-06 23:20:35 UTC (rev 771320)
@@ -0,0 +1,14 @@
+diff -upr SymPol-0.1.9.orig/sympol/raycomputationcdd.cpp SymPol-0.1.9/sympol/raycomputationcdd.cpp
+--- SymPol-0.1.9.orig/sympol/raycomputationcdd.cpp	2016-05-08 22:52:35.000000000 +0300
++++ SymPol-0.1.9/sympol/raycomputationcdd.cpp	2020-12-07 01:19:11.840719385 +0200
+@@ -25,8 +25,8 @@
+ #include "polyhedron.h"
+ 
+ extern "C" {
+-	#include <setoper.h>
+-	#include <cdd.h>
++	#include <cddlib/setoper.h>
++	#include <cddlib/cdd.h>
+ }
+ 
+ #include <ctime>



More information about the arch-commits mailing list