Source: kbuild
Severity: normal
Tags: patch
User: debian-powe...@lists.debian.org
Usertags: ppc64el

Dear Maintainer,

The package kbuild fails to build from source on ppc64el with the error on 
subject.
The full log can be found at:
https://buildd.debian.org/status/fetch.php?pkg=kbuild&arch=ppc64el&ver=1%3A0.1.9998svn2695%2Bdfsg-1&stamp=1408468233

I have created a patch, attached, that includes the architecture to 
kBuild/env.sh and kBuild/header.kmk, though I am not
sure if this is ideal.

Luckily PPC64 is already set as bi-endian in src/lib/k/kDefs.h definition, so 
there was no need to change that.

Anyway, after the aforementioned modifications, the package built successfully.

Thanks and regards.
Fernando


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

Kernel: Linux 3.16-trunk-powerpc64le (SMP w/32 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
diff -Nru kbuild-0.1.9998svn2695+dfsg/debian/changelog kbuild-0.1.9998svn2695+dfsg/debian/changelog
--- kbuild-0.1.9998svn2695+dfsg/debian/changelog	2013-12-03 06:40:07.000000000 +0000
+++ kbuild-0.1.9998svn2695+dfsg/debian/changelog	2014-09-05 21:05:08.000000000 +0000
@@ -1,3 +1,9 @@
+kbuild (1:0.1.9998svn2695+dfsg-1ppc64el1) UNRELEASED; urgency=medium
+
+  * Added ppc64el to build to fix ftbfs. 
+
+ -- Fernando Seiti Furusato <ferse...@br.ibm.com>  Fri, 05 Sep 2014 20:54:54 +0000
+
 kbuild (1:0.1.9998svn2695+dfsg-1) unstable; urgency=low
 
   [ Ritesh Raj Sarraf ]
diff -Nru kbuild-0.1.9998svn2695+dfsg/debian/patches/09_ppc64el.diff kbuild-0.1.9998svn2695+dfsg/debian/patches/09_ppc64el.diff
--- kbuild-0.1.9998svn2695+dfsg/debian/patches/09_ppc64el.diff	1970-01-01 00:00:00.000000000 +0000
+++ kbuild-0.1.9998svn2695+dfsg/debian/patches/09_ppc64el.diff	2014-09-05 21:05:08.000000000 +0000
@@ -0,0 +1,29 @@
+Index: kbuild-0.1.9998svn2695+dfsg/kBuild/env.sh
+===================================================================
+--- kbuild-0.1.9998svn2695+dfsg.orig/kBuild/env.sh
++++ kbuild-0.1.9998svn2695+dfsg/kBuild/env.sh
+@@ -351,6 +351,9 @@ if test -z "$KBUILD_HOST_ARCH"; then
+         ppc64|powerpc64)
+             KBUILD_HOST_ARCH='ppc64'
+             ;;
++        ppc64le)
++            KBUILD_HOST_ARCH='ppc64el'
++            ;;
+         mips32|mips)
+             KBUILD_HOST_ARCH='mips32'
+             ;;
+Index: kbuild-0.1.9998svn2695+dfsg/kBuild/header.kmk
+===================================================================
+--- kbuild-0.1.9998svn2695+dfsg.orig/kBuild/header.kmk
++++ kbuild-0.1.9998svn2695+dfsg/kBuild/header.kmk
+@@ -189,8 +189,8 @@ KBUILD_BLD_TYPES := release profile debu
+ # build types. (PORTME)
+ #
+ KBUILD_OSES      := darwin dos dragonfly freebsd gnukfreebsd haiku l4 linux netbsd nt openbsd os2 solaris win os-agnostic
+-KBUILD_ARCHES    := x86 amd64 sparc32 sparc64 s390 s390x ppc32 ppc64 mips32 mips64 ia64 hppa32 hppa64 arm alpha sh
+-KBUILD_ARCHES_64 := amd64 sparc64 s390x ppc64 mips64 ia64 hppa64 alpha
++KBUILD_ARCHES    := x86 amd64 sparc32 sparc64 s390 s390x ppc32 ppc64 ppc64el mips32 mips64 ia64 hppa32 hppa64 arm alpha sh
++KBUILD_ARCHES_64 := amd64 sparc64 s390x ppc64 ppc64el mips64 ia64 hppa64 alpha
+ KBUILD_ARCHES_32 := x86 sparc32 s390 ppc32 mips32 hppa32 arm sh
+ 
+ 
diff -Nru kbuild-0.1.9998svn2695+dfsg/debian/patches/series kbuild-0.1.9998svn2695+dfsg/debian/patches/series
--- kbuild-0.1.9998svn2695+dfsg/debian/patches/series	2013-12-02 19:27:13.000000000 +0000
+++ kbuild-0.1.9998svn2695+dfsg/debian/patches/series	2014-09-05 21:05:08.000000000 +0000
@@ -6,3 +6,4 @@
 06_binutils-gold.diff
 07_special-chars-build-path.diff
 08_no_o3_optimization.diff
+09_ppc64el.diff

Reply via email to