Source: lwjgl Version: 2.7.1+dfsg-4 Severity: normal Tags: patch Dear Maintainer,
I am aware that this package has a newer version available. But since it is in the repository, it would be good to have it building on ppc64el as well. The reason for the failure is because altivec is enabled by default on ppc64el so all gets compiled with flag -maltivec on. Consequently, macros definitions from altivec.h such as bool, vector and pixel get replaced along the code. I included -mcpu-powerpc if the arch is ppc64le, but I am not sure this is the best way to do so. I know it works, because I tested on x86_64 and ppc64el. Regards. Fernando -- System Information: Debian Release: 8.0 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -Nru lwjgl-2.7.1+dfsg/debian/changelog lwjgl-2.7.1+dfsg/debian/changelog --- lwjgl-2.7.1+dfsg/debian/changelog 2014-10-26 20:43:24.000000000 -0400 +++ lwjgl-2.7.1+dfsg/debian/changelog 2015-12-08 11:01:36.000000000 -0500 @@ -1,3 +1,11 @@ +lwjgl (2.7.1+dfsg-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * debian/patches/ppc64el.patch: patch adds cflag -mcpu=powerpc + when on target compiledeb on ppc64le, to fix ftbfs on ppc64el + + -- Fernando Seiti Furusato <ferse...@br.ibm.com> Tue, 08 Dec 2015 10:57:30 -0500 + lwjgl (2.7.1+dfsg-4) unstable; urgency=low * Update packaging standards. diff -Nru lwjgl-2.7.1+dfsg/debian/patches/ppc64el.patch lwjgl-2.7.1+dfsg/debian/patches/ppc64el.patch --- lwjgl-2.7.1+dfsg/debian/patches/ppc64el.patch 1969-12-31 19:00:00.000000000 -0500 +++ lwjgl-2.7.1+dfsg/debian/patches/ppc64el.patch 2015-12-08 11:01:36.000000000 -0500 @@ -0,0 +1,24 @@ +Index: lwjgl-2.7.1+dfsg/platform_build/linux_ant/build.xml +=================================================================== +--- lwjgl-2.7.1+dfsg.orig/platform_build/linux_ant/build.xml ++++ lwjgl-2.7.1+dfsg/platform_build/linux_ant/build.xml +@@ -23,6 +23,10 @@ + <exec executable="uname" outputproperty="hwplatform"> + <arg value="-m"/> + </exec> ++ <condition property="cflags_ppc64le" value="-mcpu=powerpc -m64" else=""> ++ <os arch="ppc64le"/> ++ </condition> ++ <echo message="value of arch is ${os.arch} the value of hwplatform is ${hwplatform} and cflags32 ${cflags32}" /> + <condition property="xf86vm_lib" value="-lXxf86vm" else="-Wl,-static,-lXxf86vm,-call_shared"> + <os name="SunOS" /> + </condition> +@@ -124,7 +128,7 @@ + <target name="compiledeb"> + <mkdir dir="deb"/> + <apply dir="deb" executable="gcc" skipemptyfilesets="true" failonerror="true"> +- <arg line="${cflags32} ${cflags_pthread}"/> ++ <arg line="${cflags32} ${cflags_pthread} ${cflags_ppc64le}"/> + <arg value="-I${java.home}/include"/> + <arg value="-I${java.home}/include/linux"/> + <arg value="-I${java.home}/../include"/> diff -Nru lwjgl-2.7.1+dfsg/debian/patches/series lwjgl-2.7.1+dfsg/debian/patches/series --- lwjgl-2.7.1+dfsg/debian/patches/series 2014-10-26 20:31:04.000000000 -0400 +++ lwjgl-2.7.1+dfsg/debian/patches/series 2015-12-08 11:01:36.000000000 -0500 @@ -2,3 +2,4 @@ allarchs.patch systemjinput.patch javadoc.patch +ppc64el.patch