[clsparse] 02/03: Add patch fixing FTBFS with GNU Hurd and kFreeBSD.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Fri Nov 11 16:55:05 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository clsparse.
commit f153e2a11335cc4848c1a20546ca038a728ddf4e
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Fri Nov 11 16:51:07 2016 +0000
Add patch fixing FTBFS with GNU Hurd and kFreeBSD.
---
.../Add-support-for-GNU-Hurd-and-kFreeBSD.patch | 21 +++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 22 insertions(+)
diff --git a/debian/patches/Add-support-for-GNU-Hurd-and-kFreeBSD.patch b/debian/patches/Add-support-for-GNU-Hurd-and-kFreeBSD.patch
new file mode 100644
index 0000000..557cc4c
--- /dev/null
+++ b/debian/patches/Add-support-for-GNU-Hurd-and-kFreeBSD.patch
@@ -0,0 +1,21 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Fri, 11 Nov 2016 16:36:02 +0000
+Subject: Add support for GNU Hurd and kFreeBSD.
+
+---
+ src/include/loadDynamicLibrary.hpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/include/loadDynamicLibrary.hpp b/src/include/loadDynamicLibrary.hpp
+index a75c345..20a8428 100644
+--- a/src/include/loadDynamicLibrary.hpp
++++ b/src/include/loadDynamicLibrary.hpp
+@@ -51,7 +51,7 @@ inline void* LoadSharedLibrary( const std::string& libPrefix, std::string librar
+
+ // HMODULE is actually the load address; function returns NULL if it cannot find the shared library
+ HMODULE fileHandle = ::LoadLibraryExA(libraryName.c_str(), NULL, NULL);
+-#elif defined(__linux__)
++#elif defined(__linux__) || defined(__GNU__) || (defined(__FreeBSD_kernel__) && defined(__GLIBC__))
+ std::string linuxName = libPrefix;
+ linuxName += libraryName += ".so";
+ void* fileHandle = ::dlopen( linuxName.c_str( ), RTLD_NOW );
diff --git a/debian/patches/series b/debian/patches/series
index 9947578..85f00a7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
Use-system-MathJax.patch
Disable-multilib-compiler-options.patch
+Add-support-for-GNU-Hurd-and-kFreeBSD.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clsparse.git
More information about the debian-science-commits
mailing list