Re: Cross compiling packages that try to run test programs
Neil Williams wrote:
> On Thu, 25 Jan 2007 10:55:58 -0500
> Jim Heck <jsurf@heckheck.com> wrote:
>
> > 3.4 varient and can compile many packages, but has problems with
> > packages that try to invoke a test program as part of the configure
> > script to test the output of the compiler. For example chrpath and
>
> Those are compiled for the target arch, not the build arch so they
> cannot be run.
They could be run via a emulator like qemu.
> > In general how does emdebian plan to get around invocation of native
> > binaries as part of the compilation process? Is QEMU the right
>
> Don't. (!) Programs compiled during ./configure can be omitted via
> cache files. Programs compiled during make can be omitted by preventing
> 'make check'.
To some degree this answer means "Don't do QA".
> See the emdebian-tools package, in particular, the manpages. (Available
> in emdebian SVN whilst waiting for entry into Debian.)
>
> > approach? Will there be emdebian build patches for packages such as
> > this that will newter the testing configure does?
>
> Don't let ./configure do the test - provide the answer to the test in a
> cache file.
FWIW, I learned to hate that approach because it breaks with nearly every
configure change.
Thiemo
Reply to: