On Wed, 6 Oct 2010 14:31:13 +0200
Loïc Minier <loic.minier@linaro.org> wrote:
> On Wed, Oct 06, 2010, Goswin von Brederlow wrote:
> > Create a wrapper script that defaults to the natgive arch but accepts an
> > arch triplet as argumen, like:
> >
> > cat >tclConfig.sh <<EOF
> > #!/bin/sh
> >
> > ARCH=${1:$(DEB_HOST_GNU_TYPE)}
> >
> > exec /usr/lib/$ARCH/tcl8.5/$0
> > EOF
>
> Yup, that's fair; I would use /usr/share/$triplet, but it's alright.
First you have to check whether the script itself uses relative or
absolute paths, otherwise you will actually need a whole new script.
Scripts in /usr/share/ are usually not aware of the changes needed to
allow for cross-configuration.
> Does dpkg-cross preserve pathnames below /usr/share/$triplet or
> /usr/lib/$triplet though?
No. /usr/lib/ and /usr/include only. /usr/share/ is *meant* to be
architecture-independent.
> Since we don't have multiarch, we do need to
> dpkg-cross this, and that's why Marcin is trying to dpkg-cross
> tcl8.5-dev.
dpkg-cross is not a one-stop solution for the support of cross-building
for all packages in Debian. Some packages simply need specialised
wrappers and/or upstream changes/patches. dpkg-cross exists for
common-case solutions based around cross-compilation, not every single
broken package.
--
Neil Williams
=============
http://www.data-freedom.org/
http://www.linux.codehelp.co.uk/
http://e-mail.is-not-s.ms/
Attachment:
pgpQL9MEjm3hR.pgp
Description: PGP signature