[clfft] 02/04: Add patch enabling support for GNU/Hurd.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Mar 31 07:06:53 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 clfft.

commit eb4a8e917cbc56772735d89ee72e92a2e7f2769e
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Mar 30 15:29:10 2016 +0100

    Add patch enabling support for GNU/Hurd.
---
 debian/patches/Enable-support-for-GNU-Hurd.patch | 21 +++++++++++++++++++++
 debian/patches/series                            |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/Enable-support-for-GNU-Hurd.patch b/debian/patches/Enable-support-for-GNU-Hurd.patch
new file mode 100644
index 0000000..f654d73
--- /dev/null
+++ b/debian/patches/Enable-support-for-GNU-Hurd.patch
@@ -0,0 +1,21 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Wed, 30 Mar 2016 15:26:45 +0100
+Subject: Enable support for GNU/Hurd.
+
+---
+ src/include/sharedLibrary.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/include/sharedLibrary.h b/src/include/sharedLibrary.h
+index 07d456e..6c46557 100644
+--- a/src/include/sharedLibrary.h
++++ b/src/include/sharedLibrary.h
+@@ -36,7 +36,7 @@ inline void* LoadSharedLibrary( std::string unixPrefix, std::string libraryName,
+ 
+ 	//	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__)
+         tstring linuxName = unixPrefix;
+ 	linuxName += libraryName += ".so";
+ 	void* fileHandle = ::dlopen( linuxName.c_str( ), RTLD_NOW );
diff --git a/debian/patches/series b/debian/patches/series
index 1b4e920..a41c4d7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ use-system-mathjax.patch
 reproducible-build.patch
 use-boost-dynamic-libs.patch
 Enable-support-for-kFreeBSD.patch
+Enable-support-for-GNU-Hurd.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git



More information about the debian-science-commits mailing list