[Rock-dev] Autoproj : change the build dir of a package

Charles Lesire-Cabaniols charles.lesire at gmail.com
Tue Nov 22 10:19:45 CET 2011


Are some Rock people using LWPR?
How did you make autoproj build LWPR as an autotools_package?

This autotools-based libraries that only support to be built in the source
dir are really pissing off!

Charles

2011/11/18 Sylvain Joyeux <sylvain.joyeux at dfki.de>

> On 11/18/2011 03:43 PM, Charles Lesire-Cabaniols wrote:
>
>> Hi,
>>
>> I would like to change the build dir of one of my packages.
>>
>> While my package is built in <package>/build, I would like to build it
>> in <package> directly... it is certainly a "bad practice", but it is an
>> autotools package from an archive that does not accept to be built
>> outside of the source dir.
>> The library is LWPR for people using it
>> (http://www.ipab.informatics.**ed.ac.uk/slmc/software/lwpr/<http://www.ipab.informatics.ed.ac.uk/slmc/software/lwpr/>
>> ).
>>
>> I have not found anything related to the build dir in Autobuild::Package
>>
> It is builddir= in
>
>  http://rock-robotics.org/api/**autobuild/Autobuild/**Configurable.html<http://rock-robotics.org/api/autobuild/Autobuild/Configurable.html>
>
> (It's not in Package as general packages don't have to be built)
>
> However, the current implementation does NOT accept empty build
> directories. The reason is that when you do an autoproj rebuild, the whole
> builddir gets deleted which would have dire consequences in your case (see
> #prepare_for_rebuild). Moreover, the build currently excludes the builddir
> directory to check if a package source has been updated, which you can't do
> anymore if there are build byproducts -- you would need to list the
> patterns carefully.
>
> If you feel like it, I would be happy to accept a patch that carefully
> tests for empty builddirs before doing something potentially dangerous like
> FileUtils.rm_rf ...
> --
> Sylvain Joyeux (Dr.Ing.)
> Space & Security Robotics
>
> !!! Achtung, neue Telefonnummer!!!
>
> Standort Bremen:
> DFKI GmbH
> Robotics Innovation Center
> Robert-Hooke-Straße 5
> 28359 Bremen, Germany
>
> Phone: +49 (0)421 178-454136
> Fax:   +49 (0)421 218-454150
> E-Mail: robotik at dfki.de
>
> Weitere Informationen: http://www.dfki.de/robotik
> ------------------------------**------------------------------**
> -----------
> Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
> Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
> Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
> (Vorsitzender) Dr. Walter Olthoff
> Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
> Amtsgericht Kaiserslautern, HRB 2313
> Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
> USt-Id.Nr.:    DE 148646973
> Steuernummer:  19/673/0060/3
> ------------------------------**------------------------------**
> -----------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20111122/b6c4fb3c/attachment.htm 


More information about the Rock-dev mailing list