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

[switchbot_ros] add actionlib_msgs and std_msgs as build_depend #357

Merged
merged 2 commits into from Jul 21, 2022

Conversation

knorth55
Copy link
Member

@knorth55 knorth55 commented Jul 14, 2022

this PR solve #356
add actionlib_msgs and std_msgs as build_depend.
these packages are used in CMakeLists.txt.

generate_messages(
DEPENDENCIES
std_msgs
actionlib_msgs
)

Copy link
Member

@mqcmd196 mqcmd196 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@k-okada
Copy link
Member

k-okada commented Jul 15, 2022 via email

@mqcmd196 mqcmd196 requested a review from k-okada July 15, 2022 06:42
@knorth55
Copy link
Member Author

Now I can reproduce the same error of build.ros.org locally.

docker run -it osrf/ros:melodic-desktop-bionic /bin/bash
# in docker
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add -
apt update
apt install python-bloom
apt install fakeroot dpkg-dev debhelper

cd 
git clone https://github.com/jsk-ros-pkg/jsk_3rdparty.git
cd jsk_3rdparty/switchbot_ros
bloom-generate rosdebian --os-name ubuntu --os-version bionic --ros-distro melodic
apt purge ros-melodic-std-msgs ros-melodic-actionlib-msgs

dpkg-buildpackage -rfakeroot -uc -b

When I install both ros-melodic-std-msgs and ros-melodic-actionlib-msgs, the build can correctly done.

So the dependencies for std_msg and actionlib_msgs was missing.

@mqcmd196 mqcmd196 self-requested a review July 20, 2022 05:12
@knorth55 knorth55 linked an issue Jul 20, 2022 that may be closed by this pull request
@mqcmd196
Copy link
Member

mqcmd196 commented Jul 20, 2022

@knorth55 I confirmed same error after executing

apt purge ros-melodic-std-msgs ros-melodic-actionlib-msgs

in osrf/ros:melodic-desktop-bionic

@mqcmd196
Copy link
Member

Thank you for telling me the way to make .deb in locally.
With this PR, in osrf/ros:melodic-desktop-bionic image,

$git clone https://github.com/knorth55/jsk_3rdparty.git --branch fix-switchbot-deps
$cd jsk_3rdparty/switchbot_ros/
$apt update
$apt install curl
$apt install python-bloom fakeroot dpkg-dev debhelper
$apt purge ros-melodic-std-msgs ros-melodic-actionlib-msgs
$bloom-generate rosdebian --os-name ubuntu --os-version bionic --ros-distro melodic
$dpkg-buildpackage -rfakeroot -uc -b
dpkg-buildpackage: warning:     debian/changelog(l5): found trailer where expected start of change data
LINE:  -- Kei Okada <k-okada@jsk.t.u-tokyo.ac.jp>  Mon, 26 Jul 2021 00:00:00 -0000
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: info: source package ros-melodic-switchbot-ros
dpkg-buildpackage: info: source version 2.1.24-0bionic
dpkg-buildpackage: info: source distribution bionic
dpkg-buildpackage: info: source changed by Kei Okada <k-okada@jsk.t.u-tokyo.ac.jp>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build switchbot_ros
dpkg-source: info: using options from switchbot_ros/debian/source/options: --auto-commit
dpkg-source: warning: switchbot_ros/debian/changelog(l5): found trailer where expected start of change data
LINE:  -- Kei Okada <k-okada@jsk.t.u-tokyo.ac.jp>  Mon, 26 Jul 2021 00:00:00 -0000
dpkg-checkbuilddeps: error: Unmet build dependencies: ros-melodic-actionlib ros-melodic-actionlib-msgs ros-melodic-std-msgs
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)

dpkg-buildpackage recognizes the dependencies and doesn't begin to build the package. It failes in dpkg-checkbuilddeps phase. In origin/master, it starts building and fails with cmake's building phase.
After the execution of apt install ros-melodic-std-msgs ros-melodic-actionlib-msgs ros-melodic-actionlib , it successfully builds.

@k-okada k-okada merged commit d8047dd into jsk-ros-pkg:master Jul 21, 2022
@knorth55 knorth55 deleted the fix-switchbot-deps branch July 21, 2022 01:08
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

Successfully merging this pull request may close these issues.

[switchbot_ros] build failure on build.ros.org
3 participants