This is an automated email from the git hooks/post-receive script. tobi pushed a commit to branch master in repository dhewm3.
commit 38eeaa7ec82f956dea5b193e64e9c0cc77724a97 Author: Tobias Frost <t...@coldtobi.de> Date: Tue Nov 28 20:11:59 2017 +0100 Adding patch to fix FTBFS on ppc64el. Thanks to Frédéric Bonnard for providing it. (Closes: #868156) --- debian/changelog | 2 ++ debian/patches/10-ppc64el-build.patch | 36 +++++++++++++++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 39 insertions(+) diff --git a/debian/changelog b/debian/changelog index 88f54b0..2ec64ba 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,8 @@ dhewm3 (1.4.1+git20171102+dfsg-1) UNRELEASED; urgency=medium * Fix spelling error in README.Debian * Use /usr/share/dpkg/pkg-info.mk instead of dpkg-parsechangelog * Refresh patch 01-changedatadir.patch + * Adding patch to fix FTBFS on ppc64el. Thanks to Frédéric Bonnard for + providing it. (Closes: #868156) -- Tobias Frost <t...@debian.org> Tue, 28 Nov 2017 18:31:52 +0100 diff --git a/debian/patches/10-ppc64el-build.patch b/debian/patches/10-ppc64el-build.patch new file mode 100644 index 0000000..040fa80 --- /dev/null +++ b/debian/patches/10-ppc64el-build.patch @@ -0,0 +1,36 @@ +Description: Fix build on ppc64el +Build failure on ppc64el is due to the fact that the code +enabling altivec specific parts makes confusion between MacOS and +Altivec existence. +Thus the SIMD code uses MacOS ppc_intrinsic.h api which +is not available in gcc on Linux. + +Author: <fre...@linux.vnet.ibm.com> +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: dhewm3-1.4.1+dfsg/neo/idlib/math/Simd_AltiVec.cpp +=================================================================== +--- dhewm3-1.4.1+dfsg.orig/neo/idlib/math/Simd_AltiVec.cpp 2017-07-12 12:34:33.000000000 +0000 ++++ dhewm3-1.4.1+dfsg/neo/idlib/math/Simd_AltiVec.cpp 2017-07-12 12:43:51.863029647 +0000 +@@ -45,7 +45,7 @@ + // + //=============================================================== + +-#if defined(__GNUC__) && defined(__ALTIVEC__) ++#if defined(MACOS_X) && defined(__GNUC__) && defined(__ALTIVEC__) + + #ifdef PPC_INTRINSICS + // for square root estimate instruction +Index: dhewm3-1.4.1+dfsg/neo/idlib/math/Simd_AltiVec.h +=================================================================== +--- dhewm3-1.4.1+dfsg.orig/neo/idlib/math/Simd_AltiVec.h 2017-07-12 12:34:33.000000000 +0000 ++++ dhewm3-1.4.1+dfsg/neo/idlib/math/Simd_AltiVec.h 2017-07-12 12:38:38.083750262 +0000 +@@ -110,7 +110,7 @@ + //#define DRAWVERT_PADDED + + class idSIMD_AltiVec : public idSIMD_Generic { +-#if defined(__GNUC__) && defined(__ALTIVEC__) ++#if defined(MACOS_X) && defined(__GNUC__) && defined(__ALTIVEC__) + public: + + virtual const char * VPCALL GetName( void ) const; diff --git a/debian/patches/series b/debian/patches/series index e537492..ff03be8 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 01-changedatadir.patch +10-ppc64el-build.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/dhewm3.git _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits