Re: Making multiple packages from source.
On Tue, Aug 21, 2001 at 01:07:44PM +0200, Eduard Bloch wrote:
> Viral wrote on Tue Aug 21, 2001 um 02:29:25PM:
> > I need to build an i386 version of a package, and also an i686 optimised
> > version for the same package. Is it possible to build both packages from
> > one source, instead of doing it twice in two different directories ?
> Please don't do this. A package must be useable on any machine with an
> x86 CPU, so (hypotheticaly) on an old i386. Your program may change the
> i386 routines to optimized version at run-time. Or you create two
> packages (or two binaries in the package) which are selected by a
> wrapper depending on the current CPU.
I guess he wants to build a
package and a
package as it was done with libc6 some time ago.
Viral, you need to build the whole package twice but this can be
done using the same source package and the same rules file. It
depends on the Makefile how easy it can be done. I would not
want to do it. :-(
To problem is (as I see): you need to stick with the definitions
of the targets as described in section 5.2 of the Debian policy.
Philipp | work: firstname.lastname@example.org +41 1 632 60 38
Frauenfelder | home: email@example.com +41 1 862 73 14
[PGP] | http://www.math.ethz.ch/~pfrauenf/
Proudly running Debian GNU/Linux. See http://www.debian.org/