Source: opencascade
Version: 7.3.0+dfsg1-5
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

opencascade fails to cross build from source for armel, because
debian/rules confuses build and host. These terms are explained in man 1
dpkg-architecture. Please consider applying the attached patch. Also
please consider using filter instead of findstring.

Helmut
diff --minimal -Nru opencascade-7.3.0+dfsg1/debian/changelog 
opencascade-7.3.0+dfsg1/debian/changelog
--- opencascade-7.3.0+dfsg1/debian/changelog    2019-02-19 20:38:38.000000000 
+0100
+++ opencascade-7.3.0+dfsg1/debian/changelog    2019-06-22 22:41:50.000000000 
+0200
@@ -1,3 +1,10 @@
+opencascade (7.3.0+dfsg1-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS for armel: fix build/host confusion. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 22 Jun 2019 22:41:50 +0200
+
 opencascade (7.3.0+dfsg1-5) unstable; urgency=medium
 
   * [05357f5] Use opencascade instead of occt for installation paths
diff --minimal -Nru opencascade-7.3.0+dfsg1/debian/rules 
opencascade-7.3.0+dfsg1/debian/rules
--- opencascade-7.3.0+dfsg1/debian/rules        2019-02-19 20:38:38.000000000 
+0100
+++ opencascade-7.3.0+dfsg1/debian/rules        2019-06-22 22:41:49.000000000 
+0200
@@ -21,7 +21,7 @@
        -DUSE_TBB:BOOL=on \
        -DUSE_FREEIMAGE:BOOL=on \
        -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-       $(if $(findstring $(DEB_BUILD_ARCH),armel),-DIGNORE_NO_ATOMICS:BOOL=on)
+       $(if $(findstring $(DEB_HOST_ARCH),armel),-DIGNORE_NO_ATOMICS:BOOL=on)
 
 override_dh_installdocs-indep:
        dh_installdocs

Reply via email to