[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compilers that self compile



Joel Baker escreveu isso aí:
[cut]
> > Will this approach make manual porting unnecessary?
> 
> Sadly, no, at least if I understand you correctly. Because, four months
> down the road when you've uploaded another copy to the archive, that
> first copy with the pre-translated source that you built will be long
> gone and unavailable for use - and requiring the use of upstreams binary
> precompile is impractical in many situations (such as "It's a new port
> and upstream doesn't have one out yet, or may never put one out").
> 
> If it is possible to install the tool on another Debian box and *generate*
> the necessary files, before trying to do the build, and use those, that
> would generally be workable; most porters have access to, if nothing else,
> the Debian machines used for troubleshooting various things, and could
> compile it there.
> 
> However, if it's that complex, I strongly advise writing your rules file to
> make it as easy as possible, and putting at note in near the top such as "#
> Porters - please see the BOOTSTRAPPING file for instructions on building
> this package on a new port." And, of course, document the step by step way
> of doing this in that file (which, if you're doing it for the first time
> yourself to get the package into the archive, should be easy enough - just

Let me be sure I've understood.

ac++ does source-to-source-translation, and the generated sources are
platform-independent.

For building it for the first time, I'll have to install on my box
(i386) a binary distributed by upstream for i386 (the only architecture
for which they provide binaries), and build it normally.

Then, for architectures other than i386, porters will do the same what I
did (assuming that I'll document it in the debian/rules file), using
some i386 box they have access to generate the C++ source, copy these
sources to a target-architecture box, and build it themselves.

Is that it?

What I thought is that if the translated sources (which are platform
independent) went in the diff, there will be no necessary "by hand"
actions for building in any architecture. But as Joeren wrote, one it is
not recommended to do that. Am I correct?

-- 
Antonio S. de A. Terceiro <asaterceiro@inf.ufrgs.br>
http://www.inf.ufrgs.br/~asaterceiro
Chave PGP/PGP key -- http://pgp.mit.edu/




Reply to: