Am 30.09.2010 18:48, schrieb Enrico Weigelt:
> Of course. Perhaps you could explain the current process from
> fetching the tarball (and maybe other files, eg. patches) until
> the local source tree is set up and the actual package build begins
> to me. I'll try to find a solution for a soft migration.
I guess I have to answer that one, after writing a few minutes ago, that 
I'd be happy to help with explaining buildtool questions...

buildtool uses a set of config files for each source/package that tell 
it what to download, and how to build it.

For an example, look at
http://leaf.cvs.sourceforge.net/viewvc/leaf/src/bering-uclibc4/source/dropbear/

buildtool.cfg is the file that holds the package metadata, what needs to 
go into the package, and the "links" to the sourcecode

See
http://leaf.cvs.sourceforge.net/viewvc/leaf/src/bering-uclibc4/source/dropbear/buildtool.cfg?revision=1.1.1.1&view=markup
for an example.

The "File" sections are the pointers to the files that need to be 
downloaded for building the source, the "Package" section controls what 
goes into the finished lrp package.

The other main file is buildtool.mk, which essentially is a Makefile, 
controlling the actual build process.

See
http://leaf.cvs.sourceforge.net/viewvc/leaf/src/bering-uclibc4/source/dropbear/buildtool.mk?revision=1.1.1.1&view=markup
for an example.

That's basically it - most of what buildtool provides is about 
downloading source files, dependency tracking, and starting the build 
process (see
http://leaf.cvs.sourceforge.net/viewvc/leaf/src/bering-uclibc4/buildtool/conf/sources.cfg?revision=1.57&view=markup
 

for the config file that controls most of that).

I hope that wasn't too brief - but I'm not trying to sell buildtool, 
just trying to give an overview :-)

For a more in-depth description, that touches all the important parts in 
a step by step fashion, see
http://leaf.sourceforge.net/doc/buc-buildtool.html

Martin

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to