Source: sdcc Severity: normal Tags: patch User: [email protected]
Dear Maintainer, The package sdcc fails to build from source on ppc64el. Full log at: https://buildd.debian.org/status/fetch.php?pkg=sdcc&arch=ppc64el&ver=3.4.0%2Bdfsg-2&stamp=1410497024 Although I don't know if this is ideal, it built successfully when applied the patch attached. I also included autotools-dev to debian/rules, but I noticed that the package, for some reason, does not seem to use the config.{guess,sub} found in the root of the pkg source tree. Thank you. 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 sdcc-3.4.0+dfsg/debian/changelog sdcc-3.4.0+dfsg/debian/changelog --- sdcc-3.4.0+dfsg/debian/changelog 2014-07-02 22:42:25.000000000 +0000 +++ sdcc-3.4.0+dfsg/debian/changelog 2014-10-23 11:40:23.000000000 +0000 @@ -1,3 +1,9 @@ +sdcc (3.4.0+dfsg-2pp64el1) UNRELEASED; urgency=medium + + * Fix ppc64el detection. + + -- Fernando Seiti Furusato <[email protected]> Thu, 23 Oct 2014 11:39:41 +0000 + sdcc (3.4.0+dfsg-2) unstable; urgency=medium * Add patch 03_fix_compilation (Closes: #752972, #752071) diff -Nru sdcc-3.4.0+dfsg/debian/patches/ppc64el.patch sdcc-3.4.0+dfsg/debian/patches/ppc64el.patch --- sdcc-3.4.0+dfsg/debian/patches/ppc64el.patch 1970-01-01 00:00:00.000000000 +0000 +++ sdcc-3.4.0+dfsg/debian/patches/ppc64el.patch 2014-10-23 11:35:29.000000000 +0000 @@ -0,0 +1,13 @@ +Index: sdcc-3.4.0+dfsg/support/sdbinutils/bfd/config.bfd +=================================================================== +--- sdcc-3.4.0+dfsg.orig/support/sdbinutils/bfd/config.bfd ++++ sdcc-3.4.0+dfsg/support/sdbinutils/bfd/config.bfd +@@ -1185,7 +1185,7 @@ case "${targ}" in + targ_selvecs="bfd_elf64_powerpcle_vec bfd_elf32_powerpc_vec bfd_elf32_powerpcle_vec rs6000coff_vec rs6000coff64_vec aix5coff64_vec" + want64=true + ;; +- powerpc64le-*-elf* | powerpcle-*-elf64*) ++ powerpc64le-*-elf* | powerpcle-*-elf64* | powerpc64le-*-linux*) + targ_defvec=bfd_elf64_powerpcle_vec + targ_selvecs="bfd_elf64_powerpc_vec bfd_elf32_powerpcle_vec bfd_elf32_powerpc_vec rs6000coff_vec rs6000coff64_vec aix5coff64_vec" + want64=true diff -Nru sdcc-3.4.0+dfsg/debian/patches/series sdcc-3.4.0+dfsg/debian/patches/series --- sdcc-3.4.0+dfsg/debian/patches/series 2014-07-01 08:53:26.000000000 +0000 +++ sdcc-3.4.0+dfsg/debian/patches/series 2014-10-23 11:33:52.000000000 +0000 @@ -1,2 +1,3 @@ 02_fix_spelling 03_fix_compilation +ppc64el.patch diff -Nru sdcc-3.4.0+dfsg/debian/rules sdcc-3.4.0+dfsg/debian/rules --- sdcc-3.4.0+dfsg/debian/rules 2014-07-02 14:55:59.000000000 +0000 +++ sdcc-3.4.0+dfsg/debian/rules 2014-10-23 11:30:23.000000000 +0000 @@ -27,6 +27,7 @@ endif clean: + dh_autotools-dev_restoreconfig dh_testdir dh_testroot # Clean up files that Makefile should have cleaned @@ -86,6 +87,7 @@ cp /usr/share/misc/config.sub sim/ucsim/config.sub cp /usr/share/misc/config.guess sim/ucsim/config.guess CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" \ + dh_autotools-dev_updateconfig ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \

