Package: src:klibc Version: 2.0.3-1 Severity: normal Tags: patch User: debian-powe...@lists.debian.org Usertags: ppc64el
Hi, The ppc64el port needs klibc's static binaries, like ppc64. This patch enables the ARCH=ppc64 make env var in debian/rules, in order for 'debian/patches/ppc64-static.patch' to take effect on ppp64el too. I initially thought that wouldn't be needed due to the ARCH=ppc64 definition on some Kbuild files, but it seems that is not used in some make targets for the binaries (probably why, even though, there was an ARCH=ppc64 definition already in place..). The result was shared binaries being picked, and some of them segfault. With this patch I can get a functional initramfs and non-segfaulting binaries in '/usr/lib/klibc/bin/*' (exception: 'kinit.shared', the only'.shared' file there). Unfortunately this fix didn't make the first ppc64el bug/patch for klibc (#744884); I only happened to notice this more recently. Apologies for the additional effort. Thanks, -- Mauricio Faria de Oliveira IBM Linux Technology Center
Index: klibc-2.0.3/debian/rules =================================================================== --- klibc-2.0.3.orig/debian/rules +++ klibc-2.0.3/debian/rules @@ -33,7 +33,7 @@ ifeq ($(DEB_HOST_ARCH),sh4) DEB_MAKE_ENVVARS := ARCH=sh endif -ifeq ($(DEB_HOST_ARCH),ppc64) +ifneq (,$(findstring $(DEB_HOST_ARCH),ppc64 ppc64el)) DEB_MAKE_ENVVARS := ARCH=ppc64 endif