Bug#749060: klibc: ppc64el needs static binaries as well

2014-08-19 Thread Mauricio Faria de Oliveira

Hi maks,

On Fri, 23 May 2014 16:47:35 +0200 maximilian attems wrote:
 I have no problem to merge this for Debian as workaround for now,
 but this is not the solution. Effort in making shared binary
 working too is appreciated. It is probably a wrong syscall API.

Would you please merge this as a workaround for now?

It's been 3 months.  The kindness and time of the volunteer effort
in debugging this to find a solution is certainly appreciated, but
it would be nice to fix the currently-broken initrd on ppc64el
without non-Debian patches.

I still plan to try to debug it myself for a while, but if it's ok
to just go with the patch for now, it would greatly help us.

I thought it would come in conveniently in case you'll make a new
upstream release for klibc 2.0.4.

Thank you,

--
Mauricio Faria de Oliveira
IBM Linux Technology Center


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#749060: klibc: ppc64el needs static binaries as well

2014-05-23 Thread Mauricio Faria de Oliveira

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
 


Bug#749060: klibc: ppc64el needs static binaries as well

2014-05-23 Thread maximilian attems
Hi,

On Fri, May 23, 2014 at 10:57:31AM -0300, Mauricio Faria de Oliveira wrote:
 
 The ppc64el port needs klibc's static binaries, like ppc64.

This segfaulting is a bug in klibc that needs investigation.
 
 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 have no problem to merge this for Debian as workaround for now,
but this is not the solution. Effort in making shared binary
working too is appreciated. It is probably a wrong syscall API.

Thank you.

-- 
maks
 

 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
  


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#749060: klibc: ppc64el needs static binaries as well

2014-05-23 Thread Mauricio Faria de Oliveira

Hi maks,

Adding Anton in CC (who submitted klibc ppc64le support upstream [1]),
in case he can help.


The ppc64el port needs klibc's static binaries, like ppc64.


This segfaulting is a bug in klibc that needs investigation.


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 have no problem to merge this for Debian as workaround for now,
but this is not the solution. [...]


I agree.
Thanks for accepting to carry the workaround for ppc64el too.

 [...] Effort in making shared binary

working too is appreciated. It is probably a wrong syscall API.


Unfortunately I don't find myself in klibc expertise area. I can try,
but maybe it's not the effective way forward (not sure I'd be able to
devote the effort/time that I personally would like to).
Hopefully others can contribute in that more significantly. :)

Thank you.

[1] http://www.zytor.com/pipermail/klibc/2013-December/003518.html

--
Mauricio Faria de Oliveira
IBM Linux Technology Center


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#749060: klibc: ppc64el needs static binaries as well

2014-05-23 Thread Thorsten Glaser
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA384

Mauricio Faria de Oliveira dixit:

 [...] Effort in making shared binary
 working too is appreciated. It is probably a wrong syscall API.

 Unfortunately I don't find myself in klibc expertise area. I can try,
 but maybe it's not the effective way forward (not sure I'd be able to
 devote the effort/time that I personally would like to).

Give me a machine, and if I find any time (not very likely but
still), I'll have a look at it. I fixed most arches, except
Itanic (but that one's asm is just *too* strange) anyway.

ssh-rsa 
B3NzaC1yc2EBIwAAASEAmE/kae2OppreGbHl/45N56/d1IhXYQsc95ydk8UQuoOKd6e/+MRzwwcKz37v/VZX1co9knQECn8Pk+URARq7KChTvi2blM0T7Aqj140NVf6XTKxwx6uJpmgeOGLcGOxmgFjYkfcdMPPuejwJBpt+8fdFeKsDcKfD2oibXN7v11zngjSortJhhObsNpkfrJRKQRESudMv9+NSdty020iFw7r+P3vXZQcGlDt14iLcJplYwHW3KqcAs2Hfc9mA/p8BraMg9HwGprSiuqI25lmZFvaX3IcCtmH36blxTYgEDmfUcDZonlHP7dpxyzg4pHtuYyXzxPMl0yDHqJ7jWVzUecXYzji4aVIxaDVWRlkfrohRYD6Gzo+lAEo3a6TVstgr
 t...@odem.66h.42h.de

bye,
//mirabilos
- -- 
ah, that reminds me, thanks for the stellar entertainment that you and certain
other people provide on the Debian mailing lists │ sole reason I subscribed to
them (I'm not using Debian anywhere) is the entertainment factor │ Debian does
not strike me as a place for good humour, much less German admin-style humour
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (MirBSD)

iQIcBAEBCQAGBQJTf3JnAAoJEHa1NLLpkAfgATEP/3oaJtv8DSV+S9bHZExiBJ3C
HislLDCYMs5Fo3bMxQbVIA7FLpiANi1CY+GXfdJdAHD6KPots0XF1/UGqr4Ipb5v
iZ0/Ii3mJH6+edl05pa3ClJbWrocgl/k0YhmpBAiwWsezKtr6pelaJnVtNeN6+Kk
PU0LlHpXh5RcVSMRmiVpT9ntFYrCGWAtGMx822UdEgAlsd7U+RzXLK6Z0PulsCIF
vjxdWgiyTAl4SX6q0FzbVXUJ/ZkrufEI1cCX6o8Uyo5uVEqtX4miw5HEoIbsYhOB
htleuAQyFt+G9sBeGmU9Sy9m9gYwSSKIVHg5jm+rZbdFA7qS219AbiVJfguM66dS
x0TIre7eu2CV6H8tM+WnR9AO086Kk01h64NoggUwXYPXXfDZKUYxzROaKWGrX315
4p9Nkd3DCtiyITXmLEtcH4D7iQJvtAOyWwq2XxYVo74AdrOQLZv6KIzEISOFhQZr
unBIe8vUo4cGVb+MjtGRVLDl9b/F4gRn/lGSTYSsI9tb76VRdHIn4qeKIXGqLbbH
ovfrWqLISC5V7FfG0/933+Ye/x/DH3MNWD/ZGJxuPm/2DL8uUOEvOi7OHqESR83V
vecWcR8cpepeuwRVfrFlFbzoeHvUtW9IqCU9KGmy1jOyiT/XhnJjNSi3BgR667B4
T4Fm+lRDixzE8yCxans4
=tyKt
-END PGP SIGNATURE-


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#749060: klibc: ppc64el needs static binaries as well

2014-05-23 Thread Mauricio Faria de Oliveira

On 05/23/2014 01:08 PM, Thorsten Glaser wrote:

Give me a machine, and if I find any time (not very likely but
still), I'll have a look at it. I fixed most arches, except
Itanic (but that one's asm is just *too* strange) anyway.

ssh-rsa 
B3NzaC1yc2EBIwAAASEAmE/kae2OppreGbHl/45N56/d1IhXYQsc95ydk8UQuoOKd6e/+MRzwwcKz37v/VZX1co9knQECn8Pk+URARq7KChTvi2blM0T7Aqj140NVf6XTKxwx6uJpmgeOGLcGOxmgFjYkfcdMPPuejwJBpt+8fdFeKsDcKfD2oibXN7v11zngjSortJhhObsNpkfrJRKQRESudMv9+NSdty020iFw7r+P3vXZQcGlDt14iLcJplYwHW3KqcAs2Hfc9mA/p8BraMg9HwGprSiuqI25lmZFvaX3IcCtmH36blxTYgEDmfUcDZonlHP7dpxyzg4pHtuYyXzxPMl0yDHqJ7jWVzUecXYzji4aVIxaDVWRlkfrohRYD6Gzo+lAEo3a6TVstgr
 t...@odem.66h.42h.de


Sure; thank you very much.

There's a development guest available [1].  I'll put you in touch
with the guy who adds SSH keys in, on a separate e-mail.

[1] https://wiki.debian.org/ppc64el#Development_machines

--
Mauricio Faria de Oliveira
IBM Linux Technology Center


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org