Bug#453267: tested patch

2007-12-09 Thread Neil Williams
Raphael Hertzog wrote: On Sun, 09 Dec 2007, Neil Williams wrote: Emdebian cannot build, patch or test every permutation of toolchain that people need so this isn't about us patching locally, it is about lowering the barrier to cross building on Debian by not forcing every user to patch

Bug#453267: tested patch

2007-12-09 Thread Raphael Hertzog
On Sun, 09 Dec 2007, Neil Williams wrote: I'm ok with a supplementary specific check for building of a cross-compiler, but not with a generic check like testing the ARCH environment variable. OK, I have a solution for that - replace $ARCH with $GCC_TARGET. I've tested with this change

Bug#453267: tested patch

2007-12-09 Thread Neil Williams
Raphael Hertzog wrote: On Sun, 09 Dec 2007, Neil Williams wrote: I'm ok with a supplementary specific check for building of a cross-compiler, but not with a generic check like testing the ARCH environment variable. OK, I have a solution for that - replace $ARCH with $GCC_TARGET. I've tested

Bug#453267: tested patch

2007-12-08 Thread Neil Williams
Raphael Hertzog wrote: On Wed, 05 Dec 2007, Neil Williams wrote: My first patch did exactly that - and failed on building a cross compiler. gcc needs dpkg-shlibdeps to take notice of $ARCH in the preparation of libgcc1-$arch-cross and other libraries used in the complete toolchain. It needs

Bug#453267: tested patch

2007-12-08 Thread Raphael Hertzog
On Wed, 05 Dec 2007, Neil Williams wrote: Raphael Hertzog wrote: On Tue, 04 Dec 2007, Neil Williams wrote: On Wed, 5 Dec 2007 00:01:22 +0100 Raphael Hertzog [EMAIL PROTECTED] wrote: On Tue, 04 Dec 2007, Neil Williams wrote: +my @shlibdeps=(); +# ARCH for some awkward builds +my

Bug#453267: tested patch

2007-12-05 Thread Raphael Hertzog
On Tue, 04 Dec 2007, Neil Williams wrote: On Wed, 5 Dec 2007 00:01:22 +0100 Raphael Hertzog [EMAIL PROTECTED] wrote: On Tue, 04 Dec 2007, Neil Williams wrote: +my @shlibdeps=(); +# ARCH for some awkward builds +my $crossprefix = Dpkg::Arch::debarch_to_gnutriplet($ENV{ARCH}) if

Bug#453267: tested patch

2007-12-04 Thread Neil Williams
Hector and I have tested this patch with normal builds, cross builds and cross compiler builds. It does apply against dpkg 1.14.12 (albeit with offsets), it was developed against 1.14.11. -- Neil Williams = http://www.data-freedom.org/ http://www.nosoftwarepatents.com/

Bug#453267: tested patch

2007-12-04 Thread Frank Lichtenheld
On Tue, Dec 04, 2007 at 10:27:35AM +, Neil Williams wrote: use constant DEFAULT_LIBRARY_PATH = qw(/lib /usr/lib /lib32 /usr/lib32 /lib64 /usr/lib64 /emul/ia32-linux/lib /emul/ia32-linux/usr/lib); [...] +if ($crossprefix) +{ +@shlibdeps = ( ${crossprefix}/lib,

Bug#453267: tested patch

2007-12-04 Thread Neil Williams
Frank Lichtenheld wrote: On Tue, Dec 04, 2007 at 10:27:35AM +, Neil Williams wrote: use constant DEFAULT_LIBRARY_PATH = qw(/lib /usr/lib /lib32 /usr/lib32 /lib64 /usr/lib64 /emul/ia32-linux/lib /emul/ia32-linux/usr/lib); [...] +if ($crossprefix) +{ +@shlibdeps = (

Bug#453267: tested patch

2007-12-04 Thread Raphael Hertzog
On Tue, 04 Dec 2007, Neil Williams wrote: +my @shlibdeps=(); +# ARCH for some awkward builds +my $crossprefix = Dpkg::Arch::debarch_to_gnutriplet($ENV{ARCH}) if ($ENV{ARCH}); What's the role of $ARCH ? And why shall we consider that we're crossbuilding only because this variable is set ?

Bug#453267: tested patch

2007-12-04 Thread Neil Williams
On Wed, 5 Dec 2007 00:01:22 +0100 Raphael Hertzog [EMAIL PROTECTED] wrote: On Tue, 04 Dec 2007, Neil Williams wrote: +my @shlibdeps=(); +# ARCH for some awkward builds +my $crossprefix = Dpkg::Arch::debarch_to_gnutriplet($ENV{ARCH}) if ($ENV{ARCH}); What's the role of $ARCH ? And why