diff options
author | Achmad Fathoni | 2023-10-02 11:46:44 +0700 |
---|---|---|
committer | GitHub | 2023-10-02 11:46:44 +0700 |
commit | 1fd48682b37b16ec0145ef62ee90b7f960b63cd1 (patch) | |
tree | 54266e57911c99c720d695d0f2ec8bef1abc82f5 | |
parent | 3a876637a5aabaa6b98a60acec94f2414b656a9b (diff) | |
parent | 7fd378186917be77c4a0bb7df25c304e800742b4 (diff) | |
download | aur-1fd48682b37b16ec0145ef62ee90b7f960b63cd1.tar.gz |
Merge pull request #1 from daizhirui/master
fix compiling with gnu13
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 14 | ||||
-rw-r--r-- | gnu13.patch | 208 |
3 files changed, 223 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = libdart pkgdesc = Dynamic Animation and Robotics Toolkit pkgver = 6.13.0 - pkgrel = 1 + pkgrel = 2 url = https://dartsim.github.io arch = i686 arch = x86_64 @@ -10,8 +10,8 @@ pkgbase = libdart depends = assimp depends = boost depends = eigen - depends = fcl - depends = libccd + depends = fcl-git + depends = libccd-git depends = bullet depends = coin-or-ipopt depends = nlopt @@ -30,5 +30,7 @@ pkgbase = libdart provides = dartsim source = libdart-6.13.0.tar.gz::https://github.com/dartsim/dart/archive/v6.13.0.tar.gz sha256sums = 4da3ff8cee056252a558b05625a5ff29b21e71f2995e6d7f789abbf6261895f7 + source = gnu13.patch + sha256sums = SKIP pkgname = libdart @@ -2,27 +2,33 @@ # Contributor: Benjamin Chretien <chretien at lirmm dot fr> # Contributor: Gonçalo Camelo Neves Pereira <goncalo_pereira@outlook.pt> # Contributor: midgard <arch dot midgard "at symbol" janmaes "youknowwhat" com> +# Contributor: Zhirui Dai <daizhirui at hotmail dot com> pkgname=libdart pkgver=6.13.0 -pkgrel=1 +pkgrel=2 pkgdesc="Dynamic Animation and Robotics Toolkit" arch=('i686' 'x86_64') url="https://dartsim.github.io" license=('BSD') -depends=('assimp' 'boost' 'eigen' 'fcl' 'libccd' 'bullet' 'coin-or-ipopt' +depends=('assimp' 'boost' 'eigen' 'fcl-git' 'libccd-git' 'bullet' 'coin-or-ipopt' 'nlopt' 'octomap' 'ode' 'openscenegraph' 'tinyxml2' 'urdfdom' 'glu' 'freeglut' 'libxi' 'libxmu' 'pagmo' 'fmt') optdepends=('pagmo: pagmo optimizer support') makedepends=('cmake') provides=('dartsim') _pkgname=dart -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/dartsim/${_pkgname}/archive/v${pkgver}.tar.gz") -sha256sums=('4da3ff8cee056252a558b05625a5ff29b21e71f2995e6d7f789abbf6261895f7') +source=( + "${pkgname}-${pkgver}.tar.gz::https://github.com/dartsim/${_pkgname}/archive/v${pkgver}.tar.gz" + "gnu13.patch" +) +sha256sums=('4da3ff8cee056252a558b05625a5ff29b21e71f2995e6d7f789abbf6261895f7' 'SKIP') # Make libdart use pagmo 2.18.0 instead of 2.17.0 prepare(){ sed -i '9s/7/8/' ${srcdir}/${_pkgname}-${pkgver}/cmake/DARTFindpagmo.cmake + cd ${srcdir}/${_pkgname}-${pkgver} + patch -p1 -i "${srcdir}/gnu13.patch" } build() { diff --git a/gnu13.patch b/gnu13.patch new file mode 100644 index 000000000000..1e77c905cb6e --- /dev/null +++ b/gnu13.patch @@ -0,0 +1,208 @@ +diff --git a/dart/common/detail/SharedLibraryManager.cpp b/dart/common/detail/SharedLibraryManager.cpp +index c10e7df..b742822 100644 +--- a/dart/common/detail/SharedLibraryManager.cpp ++++ b/dart/common/detail/SharedLibraryManager.cpp +@@ -33,7 +33,7 @@ + #include "dart/common/detail/SharedLibraryManager.hpp" + + #include <fstream> +- ++#include <cassert> + #include "dart/common/Console.hpp" + #include "dart/common/SharedLibrary.hpp" + +diff --git a/dart/dynamics/BoxShape.cpp b/dart/dynamics/BoxShape.cpp +index 83b581e..391c14b 100644 +--- a/dart/dynamics/BoxShape.cpp ++++ b/dart/dynamics/BoxShape.cpp +@@ -31,7 +31,7 @@ + */ + + #include "dart/dynamics/BoxShape.hpp" +- ++#include <cassert> + #include <cmath> + + namespace dart { +diff --git a/dart/dynamics/CapsuleShape.cpp b/dart/dynamics/CapsuleShape.cpp +index aa95124..52add89 100644 +--- a/dart/dynamics/CapsuleShape.cpp ++++ b/dart/dynamics/CapsuleShape.cpp +@@ -31,7 +31,7 @@ + */ + + #include "dart/dynamics/CapsuleShape.hpp" +- ++#include <cassert> + #include <cmath> + + #include "dart/dynamics/CylinderShape.hpp" +diff --git a/dart/dynamics/ConeShape.cpp b/dart/dynamics/ConeShape.cpp +index 30fe19c..ff86c99 100644 +--- a/dart/dynamics/ConeShape.cpp ++++ b/dart/dynamics/ConeShape.cpp +@@ -31,7 +31,7 @@ + */ + + #include "dart/dynamics/ConeShape.hpp" +- ++#include <cassert> + #include <cmath> + + #include "dart/dynamics/CylinderShape.hpp" +diff --git a/dart/dynamics/CylinderShape.cpp b/dart/dynamics/CylinderShape.cpp +index e3bbad0..5e1387d 100644 +--- a/dart/dynamics/CylinderShape.cpp ++++ b/dart/dynamics/CylinderShape.cpp +@@ -31,7 +31,7 @@ + */ + + #include "dart/dynamics/CylinderShape.hpp" +- ++#include <cassert> + #include <cmath> + + #include "dart/math/Helpers.hpp" +diff --git a/dart/dynamics/EllipsoidShape.cpp b/dart/dynamics/EllipsoidShape.cpp +index 286b238..43a0925 100644 +--- a/dart/dynamics/EllipsoidShape.cpp ++++ b/dart/dynamics/EllipsoidShape.cpp +@@ -29,7 +29,7 @@ + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +- ++#include <cassert> + #include "dart/dynamics/EllipsoidShape.hpp" + + #include "dart/math/Helpers.hpp" +diff --git a/dart/dynamics/MeshShape.cpp b/dart/dynamics/MeshShape.cpp +index 64ab7ef..4b0089e 100644 +--- a/dart/dynamics/MeshShape.cpp ++++ b/dart/dynamics/MeshShape.cpp +@@ -31,7 +31,7 @@ + */ + + #include "dart/dynamics/MeshShape.hpp" +- ++#include <cassert> + #include <limits> + #include <string> + +diff --git a/dart/dynamics/PyramidShape.cpp b/dart/dynamics/PyramidShape.cpp +index 5ca0f3f..fbc4c0d 100644 +--- a/dart/dynamics/PyramidShape.cpp ++++ b/dart/dynamics/PyramidShape.cpp +@@ -31,7 +31,7 @@ + */ + + #include "dart/dynamics/PyramidShape.hpp" +- ++#include <cassert> + #include <cmath> + + #include "dart/common/Console.hpp" +diff --git a/dart/dynamics/SphereShape.cpp b/dart/dynamics/SphereShape.cpp +index 35388a9..2d20abe 100644 +--- a/dart/dynamics/SphereShape.cpp ++++ b/dart/dynamics/SphereShape.cpp +@@ -29,7 +29,7 @@ + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +- ++#include <cassert> + #include "dart/dynamics/SphereShape.hpp" + + #include "dart/math/Helpers.hpp" +diff --git a/dart/optimizer/GenericMultiObjectiveProblem.cpp b/dart/optimizer/GenericMultiObjectiveProblem.cpp +index 187200b..00cc106 100644 +--- a/dart/optimizer/GenericMultiObjectiveProblem.cpp ++++ b/dart/optimizer/GenericMultiObjectiveProblem.cpp +@@ -31,7 +31,7 @@ + */ + + #include "dart/optimizer/GenericMultiObjectiveProblem.hpp" +- ++#include <cassert> + #include <algorithm> + #include <limits> + #include <numeric> +diff --git a/dart/optimizer/GradientDescentSolver.cpp b/dart/optimizer/GradientDescentSolver.cpp +index 8b1f4b1..0d466bf 100644 +--- a/dart/optimizer/GradientDescentSolver.cpp ++++ b/dart/optimizer/GradientDescentSolver.cpp +@@ -31,7 +31,7 @@ + */ + + #include "dart/optimizer/GradientDescentSolver.hpp" +- ++#include <cassert> + #include <iostream> + + #include "dart/common/Console.hpp" +diff --git a/dart/optimizer/MultiObjectiveProblem.cpp b/dart/optimizer/MultiObjectiveProblem.cpp +index 70cfbdb..12f3b2a 100644 +--- a/dart/optimizer/MultiObjectiveProblem.cpp ++++ b/dart/optimizer/MultiObjectiveProblem.cpp +@@ -35,7 +35,7 @@ + #include <algorithm> + #include <limits> + #include <numeric> +- ++#include <cassert> + #include "dart/common/Console.hpp" + #include "dart/math/Helpers.hpp" + #include "dart/optimizer/Function.hpp" +diff --git a/dart/optimizer/Population.cpp b/dart/optimizer/Population.cpp +index ccffcad..04c03e0 100644 +--- a/dart/optimizer/Population.cpp ++++ b/dart/optimizer/Population.cpp +@@ -29,7 +29,7 @@ + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +- ++#include <cassert> + #include "dart/optimizer/Population.hpp" + + #include "dart/common/Console.hpp" +diff --git a/dart/optimizer/Problem.cpp b/dart/optimizer/Problem.cpp +index 94d9794..38662a3 100644 +--- a/dart/optimizer/Problem.cpp ++++ b/dart/optimizer/Problem.cpp +@@ -31,7 +31,7 @@ + */ + + #include "dart/optimizer/Problem.hpp" +- ++#include <cassert> + #include <algorithm> + #include <limits> + +diff --git a/dart/utils/XmlHelpers.cpp b/dart/utils/XmlHelpers.cpp +index 42d2805..1bf8469 100644 +--- a/dart/utils/XmlHelpers.cpp ++++ b/dart/utils/XmlHelpers.cpp +@@ -31,7 +31,7 @@ + */ + + #include "dart/utils/XmlHelpers.hpp" +- ++#include <cassert> + #include <iostream> + #include <vector> + +diff --git a/dart/utils/mjcf/detail/Weld.cpp b/dart/utils/mjcf/detail/Weld.cpp +index 98f62f1..d2868f6 100644 +--- a/dart/utils/mjcf/detail/Weld.cpp ++++ b/dart/utils/mjcf/detail/Weld.cpp +@@ -29,7 +29,7 @@ + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +- ++#include <cassert> + #include "dart/utils/mjcf/detail/Weld.hpp" + + #include "dart/utils/XmlHelpers.hpp" |