Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
what is ${D} in ebuilds
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
radfaraf
n00b
n00b


Joined: 25 May 2002
Posts: 55
Location: NJ

PostPosted: Sat Oct 12, 2002 1:56 am    Post subject: what is ${D} in ebuilds Reply with quote

I'm noticing ${D} in some of the ebuilds I looked at as I try to learn how to do my own. I don't see it in the Developers HOWTO so I was wondering if someone can tell me what it is used for :D.

Here's an example
Code:

src_install () {

        python setup.py ${myconf} install --prefix=${D}/usr || die

        dodoc BUILD.unix.txt CHANGES.txt MANIFEST.in PKG-INFO README.txt
}


Unrelated note where can I get this program for use with ebuilds.

change - Can create a new ChangeLog or add an entry to an existing one.
Back to top
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Sat Oct 12, 2002 2:33 am    Post subject: Reply with quote

${D} expands to /var/tmp/portage/<package>/image/

This is where the files get installed before they are actually merged into the system. Sandbox will not allow any file to be installed directly into the live system.
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
iKiddo
Guru
Guru


Joined: 27 Jun 2002
Posts: 341
Location: Europe?

PostPosted: Sat Oct 12, 2002 3:24 pm    Post subject: Reply with quote

I also found two other undocumented variables, ${PV} and ${PN} I guess they've got something to do with ${P}. Can someone pls explain what they are?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Oct 12, 2002 4:32 pm    Post subject: Reply with quote

iKiddo wrote:
I also found two other undocumented variables, ${PV} and ${PN}

${PN} seems to be the "name" portion of ${P}, ${PV} the "version" portion.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
bverheg
n00b
n00b


Joined: 01 Sep 2002
Posts: 39
Location: Vlaanderen

PostPosted: Sat Oct 12, 2002 6:52 pm    Post subject: Reply with quote

You can learn more about these and other variables by reading
Code:
man 5 ebuild
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum