[Top] [All Lists]

Re: Cross compiling RPMs

To: Florian Lohoff <>
Subject: Re: Cross compiling RPMs
From: "Maciej W. Rozycki" <>
Date: Sat, 27 Jan 2001 08:42:34 +0100 (MET)
Cc: Pete Popov <>,
In-reply-to: <>
Organization: Technical University of Gdansk
On Fri, 26 Jan 2001, Florian Lohoff wrote:

> Cross compiling is definitly no option for debian as the dependencies
> etc are all made from "ldd binary" which has to fail for cross-compiling.
> I guess this also happens to rpm packages so cross-compiling to really
> get a correct distribution is definitly no option.

 See how my RPM got modified to make use of readelf and objdump if
available to circumvent this problem.  I'm actually going to contribute
these changes to RPM one day (I've just got bored trying to figure the
right e-mail address last time) -- using ldd for this purpose is
definitely broken as it pulls in indirect dependencies (see e.g. dnet vs
non-dnet versions of libX11). 

 All my cross-compiled packages have correct dependencies. 8-}

> I definitly go for native builds - Once you have a working stable 
> base you can set up debian autobuilders which will do nearly 
> everything for you except signing and uploading the package into
> the main repository.

 Yep, native builds are more likely to get correct as that's what most
developers out there check (there are actually developers who never heard
of something like a cross-compilation, sigh...).  But not everyone can
afford a week to build glibc or X11... 


+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+        e-mail:, PGP key available        +

<Prev in Thread] Current Thread [Next in Thread>