[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#749743: qt4-x11: use ppc64el in no_pch_architectures to fix FTBFS on ppc64el




Package: qt4-x11
Severity: normal
Tags: patch
User: debian-powerpc@lists.debian.org
Usertags: ppc64el

Dear Maintainer,

While trying to build qt4-x11 on ppc64el, it failed, as it
required 'ppc64el' to be added to the no_pch_architectures
list and also needed changes in the configure script.
Please consider the patches here, to correct the build issues.

Thanks and regards,
Brahadambal

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.13-1-powerpc64le (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



--- qt4-x11-4.8.6+dfsg.orig/debian/rules	2014-05-28 14:50:41.000000000 +0000
+++ qt4-x11-4.8.6+dfsg/debian/rules	2014-05-28 14:51:06.000000000 +0000
@@ -82,7 +82,7 @@
   endif
 endif

-no_pch_architectures := armhf ia64 powerpc ppc64
+no_pch_architectures := armhf ia64 powerpc ppc64 ppc64el
 ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(no_pch_architectures)))
 	extra_configure_opts += -no-pch
 endif

diff -pruN a/configure b/configure
--- qt4-x11-4.8.6+dfsg.orig/configure	2014-03-17 13:53:25.000000000 +0000
+++ qt4-x11-4.8.6+dfsg/configure	2014-03-17 13:55:46.000000000 +0000
@@ -288,6 +288,9 @@ case $DPKG_ARCH in
 	powerpc)
 		UNAME_MACHINE="ppc"
 	;;
+        ppc64el)
+                UNAME_MACHINE="ppc64le"
+        ;;
 	*)
 		UNAME_MACHINE="$DPKG_ARCH"
 	;;
@@ -2853,7 +2856,7 @@ if [ "$CFG_EMBEDDED" != "no" ]; then
             *86)
                 PLATFORM=qws/linux-x86-g++
                 ;;
-            *86_64)
+            *64*)
                 PLATFORM=qws/linux-x86_64-g++
                 ;;
             *)
@@ -2870,7 +2873,7 @@ if [ "$CFG_EMBEDDED" != "no" ]; then
                     *86)
                         CFG_EMBEDDED=x86
                         ;;
-                    *86_64)
+                    *64)
                         CFG_EMBEDDED=x86_64
                         ;;
                     *)
@@ -3277,7 +3280,7 @@ if [ -z "${CFG_HOST_ARCH}" ]; then
         fi
         CFG_HOST_ARCH=powerpc
         ;;
-    *:*:ppc64)
+    *:*:ppc64*)
         if [ "$OPT_VERBOSE" = "yes" ]; then
             echo "    64-bit PowerPC (powerpc)"
         fi


Reply to: