-
Notifications
You must be signed in to change notification settings - Fork 281
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
Check for exported packages in build(tool)-export depends, not run-depends. #790
Conversation
…pends. - For format 1 packages this makes no difference, since build-export-depends are equal to run-depends and buildtool-export-depends are empty. - For format 2 packages this has two aspects: Firstly, it now correctly fails if a package that is exported in `catkin_package` is listed only as an exec-depend, and not a build(tool)-export depend. Secondly, it now does not fail, if a package exported by `catkin_package` is listed only as a buildtool-export-depend.
It should be noted, that this might break the compilation of format2 packages that export a package in |
If we should only export build(tool)-export depends as suggested in this PR, then the documentation has a bug: It suggests to add |
That library is also being used at runtime therefore it is also an exec dependency. |
So the documentation should be changed to either
or
Any preferences? I have a very slight preference for the former because of simplicity. The extra build-depend is superfluous (?), but shouldn't hurt much I guess. But either way is fine IMO. |
The documentation shouldn't recommend to add |
…cy on `message_runtime` See ros#790 (comment)
…cy on `message_runtime` See ros#790 (comment)
…cy on `message_runtime` See #790 (comment)
I think we will have to go with a mere warning in such cases to not break builds, at least for a transition period. |
Closing due to inactivity. |
are equal to run-depends and buildtool-export-depends are empty.
a package that is exported in
catkin_package
is listed only as anexec-depend, and not a build(tool)-export depend. Secondly, it now does not
fail, if a package exported by
catkin_package
is listed only as abuildtool-export-depend.