List Info

Thread: multiple compile-install phases




multiple compile-install phases
country flaguser name
Netherlands
2007-06-17 13:06:39
Hi list,

I've encountered a few cases where the build process
requires building and 
installing something and then using that to build something
else. Is there a 
standard way to do this?

Marijn

-- 
gentoo-devgentoo.org mailing list


Re: multiple compile-install phases
country flaguser name
Switzerland
2007-06-17 13:23:33
SUNDAY, 17. JUNE 2007, MARIJN SCHOUTEN (HKBST) ?? ????????:
> I'VE ENCOUNTERED A FEW CASES WHERE THE BUILD PROCESS
REQUIRES BUILDING AND
> INSTALLING SOMETHING AND THEN USING THAT TO BUILD
SOMETHING ELSE. IS THERE
> A STANDARD WAY TO DO THIS?
I'D SAY - SPLIT THE PACKAGE IN TWO (OR HOW MANY PIECES THERE
ARE). SUCH 
PROCEDURE IMPLIES THAT THE PARTS ARE ALREADY WELL ISOLATED,
SO THE SPLIT 
SHOULD NOT BE THAT HARD TO DO. TRYING TO FORCE IT "IN
ONE GO" IS NOT TRIVIAL 
USUALLY, UNLESS WHAT YOU ARE TALKING ABOUT IS SOME BOOTSTRAP
PROCEDURE. 
HOWEVER IN THAT CASE THERE SHOULD BE A CERTAIN WAY OF
"PROPER BOOTSTRAPPING" 
FOR THE PACKAGE DESCRIBED IN ITS INSTALL DOCS.

GEORGE
--
GENTOO-DEVGENTOO.ORG MAILING LIST


Re: multiple compile-install phases
country flaguser name
United States
2007-06-17 13:27:35
"Marijn Schouten (hkBst)" <hkBstgentoo.org> wrote:
> I've encountered a few cases where the build process
requires building
> and installing something and then using that to build
something else.
> Is there a standard way to do this?

Perhaps you could build the build tools and install them to
some
directory under the temporary build directory and use them
from there by
adding that directory to $PATH or by calling them with full
pathnames. 

Do the build tools in question need to be installed along
with the
desired end product, or are they nothing more than
integrated build
prerequisites?

-- 
"Such things have often happened and still happen,
 and how can these be signs of the end of the world?"
  -- Julian, Emperor of Rome 361-363 A.D.
Re: multiple compile-install phases
user name
2007-06-17 17:31:32
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

George Shapovalov wrote:
> Sunday, 17. June 2007, Marijn Schouten (hkBst) Ви
написали:
>> I've encountered a few cases where the build
process requires building and
>> installing something and then using that to build
something else. Is there
>> a standard way to do this?
> I'd say - split the package in two (or how many pieces
there are). Such 
> procedure implies that the parts are already well
isolated, so the split 
> should not be that hard to do. Trying to force it
"in one go" is not trivial 
> usually, unless what you are talking about is some
bootstrap procedure. 
> However in that case there should be a certain way of
"proper bootstrapping" 
> for the package described in its install docs.
> 
> George

Splitting the package is a good idea indeed.

If it is needed a bootstrapping , you could build a binary
version of
the necessary components of the package, that's what we do
with ghc and
many of the languages packages inside dev-lang.

Regards,

- --

Luis F. Araujo "araujo at gentoo.org"
Gentoo Linux

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (GNU/Linux)

iD8DBQFGdbYfaTNpke9pJcURAmm6AKCMZQZC6tvFbgHu9dUb0c8ahpQfIgCg
iLMU
YnKpHz22OvjdyYLlF8l7+9k=
=99fq
-----END PGP SIGNATURE-----
-- 
gentoo-devgentoo.org mailing list


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )