On Fri, 30 Sep 2005, Dave Nebinger wrote:

> If I have an ant build.xml file that creates and populates an /opt/dnebing 
> directory but runs as part of an ebuild, will it actually create 
> the /opt/dnebing directory or is it made as part of the image 
> in /var/tmp/portage/dnebing/image directory?

It is better to have a separate task for the install and the build.  You
can set the default task to the install, but call it with just the build
task.

On a related sidenote, please do not expect that the install/build is in
/var/tmp/portage/dnebing/image.  $ROOT can be something other than / in
theory (not 100% sure that it is fully supported yet or not).  Also, you
can change the tmp dir (PORTAGE_TMPDIR in /etc/make.conf).  You should
be generic enough to handle any of those cases.  If you are looking for
a very generic build.xml check bug #92014.

I hope that helps.  Please feel free to ask any other questions that you
may have.

Saleem Abdulrasool
compnerd (at) gentoo (dot) org

Attachment: pgpOLzhCMP2nU.pgp
Description: PGP signature

Reply via email to