Comment 2 for bug 726428

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

18:17 < hrw> slangasek: dh_strip checks for DEB_BUILD_GNU_TYPE/DEB_HOST_GNU_TYPE when it tries to find cross tools and it is ok. but for cross-gcc it is only partially good as we generate both host binaries (dh-strip is fine) and cross ones (dh-strip fails)
18:17 < slangasek> hrw: right
18:18 < hrw> I think that we can change gcc to manually strip using cross-strip for cross builds but would it be proper way?
18:19 < slangasek> hrw: lool seems to have thoughts about what dh_strip should do here; I think he has a point that if you're running dh_strip on an arch: all package, you probably want the binutils-multiarch version
18:20 < steev> i ask about it being a mirror because i can't seem to check out Freescale's repo currently
18:20 < hrw> slangasek: but for strip-multiarch I need to know what I will strip cause now it just fail
18:21 < slangasek> hrw: well, I don't think gcc manually using the cross-strip sounds very correct. what other options are there? Can we revert these latest changes to binutils-multiarch?
18:22 < hrw> slangasek: that would be simplest solution I think
18:22 < hrw> we can look at returning to it during 11.10
18:37 < hrw> slangasek: DEB_HOST_GNU_TYPE=arm-linux-gnueabi dh_strip -plibgcc1-armel-cross --dbg-package=libgcc1-dbg-armel-cross
18:37 < hrw> slangasek: that works and is change into gcc packaging to set DEB_HOST_GNU_TYPE=DEB_TARGET_GNU_TYPE
18:38 < hrw> slangasek: arm-linux-gnueabi-objcopy --only-keep-debug debian/libgcc1-armel-cross/usr/arm-linux-gnueabi/lib/libgcc_s.so.1 debian/libgcc1-dbg-armel-cross/usr/lib/debug//usr/arm-linux-gnueabi/lib/libgcc_s.so.1

Thats added to not forget about it. Change was done to gcc/debian/rules.d/binary-libgcc.mk packaging rules.