mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
freecad: rebuild against boost-1.69.0
This commit is contained in:
parent
066b1cb46e
commit
fa05ceffdd
3 changed files with 2011 additions and 28 deletions
|
@ -1,30 +1,30 @@
|
||||||
--- src/App/Application.cpp 2018-04-06 10:48:37.000000000 +0200
|
--- src/App/Application.cpp 2018-04-06 10:48:37.000000000 +0200
|
||||||
+++ src/App/Application.cpp 2018-04-22 15:04:11.876136151 +0200
|
+++ src/App/Application.cpp 2018-04-22 15:04:11.876136151 +0200
|
||||||
@@ -1063,7 +1063,9 @@
|
@@ -1063,7 +1063,9 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(FC_OS_LINUX)
|
#if defined(FC_OS_LINUX)
|
||||||
+#ifdef __GLIBC__
|
+#ifdef __GLIBC__
|
||||||
#include <execinfo.h>
|
#include <execinfo.h>
|
||||||
+#endif
|
+#endif
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <cxxabi.h>
|
#include <cxxabi.h>
|
||||||
|
|
||||||
@@ -1075,6 +1077,7 @@
|
@@ -1075,6 +1077,7 @@
|
||||||
// This function produces a stack backtrace with demangled function & method names.
|
// This function produces a stack backtrace with demangled function & method names.
|
||||||
void printBacktrace(size_t skip=0)
|
void printBacktrace(size_t skip=0)
|
||||||
{
|
{
|
||||||
+#ifdef __GLIBC__
|
+#ifdef __GLIBC__
|
||||||
void *callstack[128];
|
void *callstack[128];
|
||||||
size_t nMaxFrames = sizeof(callstack) / sizeof(callstack[0]);
|
size_t nMaxFrames = sizeof(callstack) / sizeof(callstack[0]);
|
||||||
size_t nFrames = backtrace(callstack, nMaxFrames);
|
size_t nFrames = backtrace(callstack, nMaxFrames);
|
||||||
@@ -1105,6 +1108,9 @@
|
@@ -1105,6 +1108,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
free(symbols);
|
free(symbols);
|
||||||
+#else
|
+#else
|
||||||
+ std::cerr << "sorry, no backtrace on musl libc";
|
+ std::cerr << "sorry, no backtrace on musl libc";
|
||||||
+#endif
|
+#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
1979
srcpkgs/freecad/patches/041-boost-1.69.patch
Normal file
1979
srcpkgs/freecad/patches/041-boost-1.69.patch
Normal file
File diff suppressed because it is too large
Load diff
|
@ -5,7 +5,7 @@
|
||||||
# - python3: freecad code not yet ready for it, probably at 0.18
|
# - python3: freecad code not yet ready for it, probably at 0.18
|
||||||
pkgname=freecad
|
pkgname=freecad
|
||||||
version=0.17
|
version=0.17
|
||||||
revision=6
|
revision=7
|
||||||
wrksrc="FreeCAD-${version}"
|
wrksrc="FreeCAD-${version}"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ configure_args="
|
||||||
-DBUILD_QT5=OFF
|
-DBUILD_QT5=OFF
|
||||||
-DCMAKE_INSTALL_PREFIX=${_inst_prefix}
|
-DCMAKE_INSTALL_PREFIX=${_inst_prefix}
|
||||||
-DCMAKE_INSTALL_LIBDIR=${_inst_prefix}/lib"
|
-DCMAKE_INSTALL_LIBDIR=${_inst_prefix}/lib"
|
||||||
hostmakedepends="pkg-config swig doxygen graphviz"
|
hostmakedepends="pkg-config swig doxygen graphviz dos2unix"
|
||||||
makedepends="python-devel boost-devel boost-python libxerces-c-devel
|
makedepends="python-devel boost-devel libxerces-c-devel
|
||||||
zlib-devel occt-devel vtk-devel hdf5-devel openmpi-devel libmed-devel eigen
|
zlib-devel occt-devel vtk-devel hdf5-devel openmpi-devel libmed-devel eigen
|
||||||
coin3-devel libshiboken-python-devel libspnav-devel pyside-tools liblz4-devel
|
coin3-devel libshiboken-python-devel libspnav-devel pyside-tools liblz4-devel
|
||||||
libpyside-python-devel python-matplotlib netcdf-devel jsoncpp-devel
|
libpyside-python-devel python-matplotlib netcdf-devel jsoncpp-devel
|
||||||
|
@ -34,6 +34,10 @@ homepage="https://freecadweb.org/"
|
||||||
distfiles="https://github.com/FreeCAD/FreeCAD/archive/${version}.tar.gz"
|
distfiles="https://github.com/FreeCAD/FreeCAD/archive/${version}.tar.gz"
|
||||||
checksum=ae017393476b6dc7f1192bcaf91ceedc2f9b791f2495307ce7c45efadb5266fb
|
checksum=ae017393476b6dc7f1192bcaf91ceedc2f9b791f2495307ce7c45efadb5266fb
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
find $wrksrc -type f -exec dos2unix {} +
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# AppHomePath is computed with binary's realpath:
|
# AppHomePath is computed with binary's realpath:
|
||||||
# do not move binaries but symlink them instead.
|
# do not move binaries but symlink them instead.
|
||||||
|
|
Loading…
Add table
Reference in a new issue