[SCM] Debian packaging for openturns www.openturns.org branch, debian, updated. debian/1.1-7
Denis Barbier
bouzim at gmail.com
Fri Jul 5 00:11:21 UTC 2013
The following commit has been merged in the debian branch:
commit 5bc73a48db6b64cd9b5f90058c4e40bd34502719
Author: Denis Barbier <bouzim at gmail.com>
Date: Thu Jul 4 22:45:44 2013 +0200
New patch: debian/patches/modify-tests-O0-i386.patch
On *-i386 architectures, algocobyla.c is compiled with -O0 flag
since 1.1-6; output of two tests is modified, but only on
those architectures.
diff --git a/debian/patches/modify-tests-O0-i386.patch b/debian/patches/modify-tests-O0-i386.patch
new file mode 100644
index 0000000..2821c77
--- /dev/null
+++ b/debian/patches/modify-tests-O0-i386.patch
@@ -0,0 +1,37 @@
+Description: Modify output of TrapezoidalFactory tests.
+ There is a bug in GCC 4.8 on *-i386 architectures, several tests
+ hang. In order to avoid these problems, algocobyla.c is compiled
+ without optimization; but those tests must be modified.
+ This patch is applied only on *-i386 architectures.
+Author: Denis Barbier
+Origin: Debian
+Forwarded: no
+Last-Update: 2013-07-02
+
+--- openturns-1.1.orig/lib/test/t_TrapezoidalFactory_std.expout
++++ openturns-1.1/lib/test/t_TrapezoidalFactory_std.expout
+@@ -1,8 +1,8 @@
+ Distribution =class=Trapezoidal name=Trapezoidal dimension=1 a=1 b=2.3 c=4.5 d=5 h=0.322581
+-Estimated distribution=class=Trapezoidal name=Trapezoidal dimension=1 a=1.006 b=2.275 c=4.545 d=4.99 h=0.3198
++Estimated distribution=class=Trapezoidal name=Trapezoidal dimension=1 a=1.005 b=2.279 c=4.545 d=4.99 h=0.32
+ Default distribution=class=Trapezoidal name=Trapezoidal dimension=1 a=-2 b=-1 c=1 d=2 h=0.333333
+ Distribution from parameters=class=Trapezoidal name=Trapezoidal dimension=1 a=1 b=2.3 c=4.5 d=5 h=0.322581
+ Trapezoidal =class=Trapezoidal name=Trapezoidal dimension=1 a=1 b=2.3 c=4.5 d=5 h=0.322581
+-Estimated trapezoidal=class=Trapezoidal name=Trapezoidal dimension=1 a=1.006 b=2.275 c=4.545 d=4.99 h=0.3198
++Estimated trapezoidal=class=Trapezoidal name=Trapezoidal dimension=1 a=1.005 b=2.279 c=4.545 d=4.99 h=0.32
+ Default trapezoidal=class=Trapezoidal name=Trapezoidal dimension=1 a=-2 b=-1 c=1 d=2 h=0.333333
+ Trapezoidal from parameters=class=Trapezoidal name=Trapezoidal dimension=1 a=1 b=2.3 c=4.5 d=5 h=0.322581
+--- openturns-1.1.orig/python/test/t_TrapezoidalFactory_std.expout
++++ openturns-1.1/python/test/t_TrapezoidalFactory_std.expout
+@@ -1,8 +1,8 @@
+ distribution= class=Trapezoidal name=Trapezoidal dimension=1 a=1 b=2.3 c=4.5 d=5 h=0.322581
+-Estimated distribution= class=Trapezoidal name=Trapezoidal dimension=1 a=1.006 b=2.275 c=4.545 d=4.99 h=0.3198
++Estimated distribution= class=Trapezoidal name=Trapezoidal dimension=1 a=1.005 b=2.279 c=4.545 d=4.99 h=0.32
+ Default distribution= Trapezoidal(a = -2, b = -1, c = 1, d = 2)
+ Distribution from parameters= Trapezoidal(a = 1, b = 2.3, c = 4.5, d = 5)
+ Trapezoidal = Trapezoidal(a = 1, b = 2.3, c = 4.5, d = 5)
+-Estimated trapezoidal= Trapezoidal(a = 1.006, b = 2.275, c = 4.545, d = 4.99)
++Estimated trapezoidal= Trapezoidal(a = 1.005, b = 2.279, c = 4.545, d = 4.99)
+ Default trapezoidal= Trapezoidal(a = -2, b = -1, c = 1, d = 2)
+ Trapezoidal from parameters= Trapezoidal(a = 1, b = 2.3, c = 4.5, d = 5)
+
diff --git a/debian/rules b/debian/rules
index fa92e50..f82a68c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -50,6 +50,16 @@ debian/tmp/usr/lib/R/site-library/rot:
-mkdir -p $(debRlib)
R CMD INSTALL --library=$(debRlib) utils/rot_1.4.5.tar.gz
+ifneq (,$(findstring $(shell dpkg-architecture -qDEB_HOST_ARCH), i386 kfreebsd-i386 hurd-i386))
+override_dh_quilt_patch:
+ dh_quilt_patch
+ patch -p1 < debian/patches/modify-tests-O0-i386.patch
+
+override_dh_quilt_unpatch:
+ patch -R -p1 < debian/patches/modify-tests-O0-i386.patch
+ dh_quilt_unpatch
+endif
+
override_dh_auto_configure: debian/tmp/usr/lib/R/site-library/rot
dh_auto_configure -- \
$(with_tbb) \
--
Debian packaging for openturns www.openturns.org
More information about the debian-science-commits
mailing list