[Rock-dev] Se default --overridable-- flavor

Sylvain Joyeux sylvain.joyeux at dfki.de
Thu Oct 18 15:42:44 CEST 2012


On 10/18/2012 03:34 PM, Matthias Goldhoorn wrote:
>> if !Autoproj.has_config_key?('ROCK_FLAVOR')
>> Autoproj.change_option('ROCK_FLAVOR', 'next', true)
>> end
> But did this really help, then the ROCK_FLAVOR is setted hart and cannot
> be overriden even if you are know what you are doing. (expect later in
> the config).
It is going to set the flavor ONLY if it has not been already set 
(that's the point of the if has_config_key?). So, it is going to set it 
at the first bootstrap, but is going to keep any change you make to that 
option later on.

> Where is the question at all located?, i searched for the "Which Flavor"
> and for ROCK_FLAVOR in the package sets and autoproj gem but found nothing.
> Which code/file triggers the question during bootstrap?
See the bottom of
 
http://rock-robotics.org/stable/documentation/autoproj/advanced/creating_pkg_set.html
This particular question is in autoproj/remotes/rock.base/init.rb

> Second question this came me just up, is there an way to disable all
> orogen components for an bootstrap-instance?.
> Since i work in an Project where still Windows users are it would be
> great to keep the same manifest, but disable (by an question) all orogen
> (rtt) components.
Since you will have to disable the complete rock toolchain + orocos 
toolchain + orogen packages, I really wonder if what you don't want is 
having a different branch on the main build configuration.

Anyways, with the next version of autoproj, you will be able to exclude 
packages programatically and therefore have them removed from the build.

So, basically, in your project's overrides.rb, you will do

if WINDOWS
   Autoproj.manifest.each_autobuild_package do |pkg|
     if pkg.kind_of?(Autobuild::Orogen)
        Autoproj.manifest.add_exclusion(pkg.name, "cannot be built on 
Windows")
     end
   end
end
-- 
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
-----------------------------------------------------------------------


More information about the Rock-dev mailing list