Skip to content

pkg.depends_on ignores overrides.rb #399

@hwiedPro

Description

@hwiedPro

When defining a package in the *.autobuild file of a package set it is possible to define dependencies by using:

cmake_package "some/package" do |pkg|
  pkg.depends_on "DEPENDENCY"
end

It is also possible to override os dependencies using source packages by adding the following to the overrides.rb of the package_set.

if (Autoproj.workspace.operating_system[1] & [''18.04', '18.10']).any?
  Autoproj.add_osdeps_overrides 'DEPENDENCY', :package => 'external/DEPENDENCY', :force => true
end

My expectation would be that pkg.depends_on behaves as if the package would have DEPEDENCY set in the packages manifest by:

<depend package="DEPENDENCY" />

This includes that the override would apply for both, the dependencies in the manifest and the depends_on dependency.

It seem that this is not the case:
When using pkg.depends_on "DEPENDENCY" the override is not applied which leads to an installation of the os dependency anyways. But when listed in the same way via manifest.xml it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions