[SCM] Gmsh packaging. Gmsh is an automatic 3D finite element mesh generator. branch, experimental, updated. debian/2.6.2_beta2_svn14284_dfsg-1_exp1-5-g2959342

Anton Gladky gladky.anton at gmail.com
Sat Jan 26 13:02:41 UTC 2013


The following commit has been merged in the experimental branch:
commit a7de476e6c0aaf73e58d1cc69899effe6c3cdfb3
Author: Anton Gladky <gladky.anton at gmail.com>
Date:   Sat Jan 26 10:12:29 2013 +0100

    Fix import of gmshpy. (Closes: #696420)

diff --git a/debian/README.Debian b/debian/README.Debian
index 923a9b7..570d025 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -41,15 +41,6 @@ in
 
  -- Christophe Prud'homme <prudhomm at debian.org>, Wed Nov 17 09:17:28 2004
 
-* Python-binding
-------------
-
-Using python-interface is experimental and requires workaround:
-export LD_PRELOAD=/usr/lib/libmpi.so
-
- -- Anton Gladky <gladky.anton at gmail.com>, Thu Jan 05 21:57:02 2012
- 
-* Compiling api_demos
 ------------
 
 to build api_demos go into the newly created directory:
diff --git a/debian/patches/fix_gmshpy_import.patch b/debian/patches/fix_gmshpy_import.patch
new file mode 100644
index 0000000..2230364
--- /dev/null
+++ b/debian/patches/fix_gmshpy_import.patch
@@ -0,0 +1,15 @@
+Description: Fix import of gmshpy
+Author: Anton Gladky <gladk at debian.org>
+Bug-Debian: http://bugs.debian.org/696420
+Last-Update: 2013-01-26
+
+--- a/wrappers/gmshpy/__init__.py.in
++++ b/wrappers/gmshpy/__init__.py.in
+@@ -1,4 +1,7 @@
+ # set Ctrl-C to default signal (terminates immediately)
++from ctypes import *
++mpi = CDLL('libmpi.so.0', RTLD_GLOBAL)
++
+ import signal
+ signal.signal(signal.SIGINT, signal.SIG_DFL)
+ ${GMSH_PYTHON_MODULES_INCLUDE_CODE}
diff --git a/debian/patches/series b/debian/patches/series
index aecabeb..14d6b3c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ delete_gl2ps_from_source.patch
 switch_from_opencascade_to_oce.patch
 fix_FTBFS_linking.patch
 alauzet.patch
+fix_gmshpy_import.patch

-- 
Gmsh packaging. Gmsh is an automatic 3D finite element mesh generator. 



More information about the debian-science-commits mailing list