-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix genapkbuild.py to set build_type to cmake for ROS1 packages whose buildtool_depend is not catkin #168
Conversation
… buildtool_depend is not catkin
@@ -266,6 +266,8 @@ def package_to_apkbuild(ros_distro, package_name, | |||
ament_python = False | |||
|
|||
build_type = pkg.get_build_type() | |||
if not is_ros2 and not pkg.has_buildtool_depend_on_catkin(): | |||
build_type = 'cmake' | |||
if build_type == 'catkin': | |||
catkin = True | |||
elif build_type == 'cmake': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this condition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not that necessary but if there will be automatic updates for ROS 1 packages registered in aports-ros-experimental
, this change might be useful as we don't need to fix them by hand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought L271 is elif
.
Maybe better to add a newline after L270.
If ROS2 package may specify <build_type>cmake</build_type>
, this should be required for ROS2 package with build_type=cmake
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand what you mean now. I agree to change L271 to elif
. Done in fa0f9b9.
Co-authored-by: Atsushi Watanabe <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
build_type
is not specified inpackage.xml
ofcatkin
package. In this case,get_build_type()
returns "catkin". This has changedAPKBUILD
ofcatkin
package to build it bycatkin
.By this PR,
build_type
is overwritten if the package is not ROS 2 and not buildtool_depend==catkin.(originally reported by @at-wat)