[Rock-dev] autoproj is calling libs.autobuild before handling osdeps

Sylvain Joyeux sylvain.joyeux at dfki.de
Thu Dec 16 15:50:40 CET 2010


On 12/16/2010 03:41 PM, Alexander Duda wrote:
> Hi
>
> I need to set the environment variable for octave. For this propose
> there is a tool called ocatve-config which belongs to the OS dependency
> octave3.2-headers.
>
> Unfortunately autoproj is installing the osdeps after libs.autobuild was
> called therefore
>
> ruby_package 'tools/octave' do |pkg|
>    Autoproj.env_add_path 'RUBYLIB', File.join(pkg.srcdir, "lib")
>    #add octave lib to ld_library
>   Autoproj.env_add_path 'LD_LIBRARY_PATH', IO.popen("octave-config -p
> OCTLIBDIR").readline.chop
> end
>
> is not working.
>
> Is it possible to tell autoporj to handle the osdeps first?

No, but you can use #post_install:

ruby_package 'tools/octave' do |pkg|
    pkg.post_install do
      Autoproj.env_add_path 'LD_LIBRARY_PATH', IO.popen("octave-config 
-p OCTLIBDIR").readline.chomp
    end
end
-- 
Sylvain Joyeux (Dr. Ing.)
Researcher - Space and Security Robotics
DFKI Robotics Innovation Center
Bremen, Robert-Hooke-Straße 5, 28359 Bremen, Germany

Phone:   +49 421 218-64136
Fax:     +49 421 218-64150
Email:   sylvain.joyeux at dfki.de

Weitere Informationen: http://www.dfki.de


More information about the Rock-dev mailing list