Gentoo Archives: gentoo-dev

From: Georgi Georgiev <chutz@×××.net>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] How does ebuild move files to the final destination
Date: Wed, 16 Jul 2003 01:51:08
Message-Id: 20030716015104.GB5591%chutz@gg3.net
In Reply to: [gentoo-dev] How does ebuild move files to the final destination by "Brett I. Holcomb"
1 On 15/07/2003 at 19:46:38(-0400), Brett I. Holcomb used 1.4K just to say:
2 > I'm working on an ebuild for getting a program for cvs and have some
3 > questions. The ebuild succesfully fetchs, unpacks, and compiles the cvs
4 > source but I'm puzzled on some aspects of src_install.
5 >
6 > I notice that the make install command references ${D} as in
7 > prefix=${D}/somedir or mandir=${D}/usr/share/man. However ${D} is
8 > essentially a temporary directory (${PORTAGE_TMPDIR}/PORTAGE/${PF}/image)
9 > which is used to construct the directory structure of the program as it will
10 > be after it's installed to /usr or wherever. In short, the entire program
11 > install with all it's directory is built under ${D}.
12 >
13 > After looking at the emake and other eclass functions I can not see where the
14 > tree in ${D} is moved to the final location (say /usr/someprog from
15 > ${D}/usr/someprog) but it obviously happens <G>! Is there some portage code
16 > somewhere that does the move? How does the move happen and when?
17
18 man ebuild
19 /qmerge
20
21 --
22 () Georgi Georgiev () Sigmund Freud is alleged to have said that ()
23 () chutz@×××.net () in the last analysis the entire field of ()
24 () +81(90)6266-1163 () psychology may reduce to biological ()
25 () ------------------- () electrochemistry. ()
26
27 --
28 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] How does ebuild move files to the final destination "Brett I. Holcomb" <brettholcomb@×××××××.net>