Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg.depends_on ignores overrides.rb #399

Open
hwiedPro opened this issue Jun 6, 2023 · 0 comments
Open

pkg.depends_on ignores overrides.rb #399

hwiedPro opened this issue Jun 6, 2023 · 0 comments

Comments

@hwiedPro
Copy link

hwiedPro commented Jun 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant