Skip to content
Snippets Groups Projects
Commit cb7a2697 authored by Ellon Paiva Mendes's avatar Ellon Paiva Mendes
Browse files

[wip/infuse_bitstream_sink-genom3] Add workaround to avoid double dependency...

[wip/infuse_bitstream_sink-genom3] Add workaround to avoid double dependency on installed package.xml
parent ebbd41dc
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,42 @@ include ../../architecture/genom3/module.mk
# For InFuse we use ROS, so keep these options enabled by default
PKG_SUGGESTED_OPTIONS+= ros-client-c ros-client-ros ros-server
# # This WAS SUPPOSED TO fix the double dependency on std_msgs in the
# # generated package.xml files. This does not work here probably because
# # PKG_OPTIONS here is empty. This should probably go in a 'define' to be
# # expanded later, but I don't know how to do it. :(
# ifneq (,$(filter ros-client-c,${PKG_OPTIONS}))
# SUBST_CLASSES+= fix-ros-client-c-depends
# SUBST_STAGE.fix-ros-client-c-depends= pre-install
# SUBST_MESSAGE.fix-ros-client-c-depends= Fixing repeated dependency on std_msgs for option ros-client-c
# SUBST_FILES.fix-ros-client-c-depends= ../templates/ros/client/c/*/package.xml
# SUBST_SED.fix-ros-client-c-depends= -e '0,/<depend>std_msgs<\/depend>/! s/<depend>std_msgs<\/depend>//'
# endif
# ifneq (,$(filter ros-client-ros,${PKG_OPTIONS}))
# SUBST_CLASSES+= fix-ros-client-ros-depends
# SUBST_STAGE.fix-ros-client-ros-depends= pre-install
# SUBST_MESSAGE.fix-ros-client-ros-depends= Fixing repeated dependency on std_msgs for option ros-client-ros
# SUBST_FILES.fix-ros-client-ros-depends= ../templates/ros/client/ros/*/package.xml
# SUBST_SED.fix-ros-client-ros-depends= -e '0,/<depend>std_msgs<\/depend>/! s/<depend>std_msgs<\/depend>//'
# endif
# ifneq (,$(filter ros-server,${PKG_OPTIONS}))
# SUBST_CLASSES+= fix-ros-server-depends
# SUBST_STAGE.fix-ros-server-depends= pre-install
# SUBST_MESSAGE.fix-ros-server-depends= Fixing repeated dependency on std_msgs for option ros-server
# SUBST_FILES.fix-ros-server-depends= ../templates/ros/server/*/package.xml
# SUBST_SED.fix-ros-server-depends= -e '0,/<depend>std_msgs<\/depend>/! s/<depend>std_msgs<\/depend>//'
# endif
# Dirty hack to fix the repeated dependency because the solution commented
# above didn't work. The installation of this package probably going to fail
# if not compiled with ROS options
SUBST_CLASSES+= fix-std-msgs-depends
SUBST_STAGE.fix-std-msgs-depends= pre-install
SUBST_MESSAGE.fix-std-msgs-depends= Fixing repeated dependency on std_msgs
SUBST_FILES.fix-std-msgs-depends= ../templates/ros/server/*/package.xml
SUBST_FILES.fix-std-msgs-depends+= ../templates/ros/client/*/*/package.xml
SUBST_SED.fix-std-msgs-depends= -e '0,/<depend>std_msgs<\/depend>/! s/<depend>std_msgs<\/depend>//'
include ../../interfaces/openrobots-idl/depend.mk
include ../../wip/infuse-asn1-types/depend.mk
include ../../wip/infuse-idl/depend.mk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment