Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724874 - dev-ros/turtle_tf2-0.2.3: Compilation fails with missing tf2_geometry_msgs
Summary: dev-ros/turtle_tf2-0.2.3: Compilation fails with missing tf2_geometry_msgs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robot Operating System team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-23 21:44 UTC by Stefan Huber
Modified: 2020-07-27 11:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,1.79 KB, application/x-xz)
2020-05-24 16:28 UTC, Stefan Huber
Details
emerge --info dev-ros/turtle_tf2 (file_724874.txt,7.25 KB, text/plain)
2020-05-24 16:29 UTC, Stefan Huber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Huber 2020-05-23 21:44:00 UTC
This package depends on tf2_geometry_msgs, but the ebuild does not list it as a dependency. Consequently, emerge fails due to this configuration error:

- Could NOT find tf2_geometry_msgs (missing: tf2_geometry_msgs_DIR)
-- Could not find the required component 'tf2_geometry_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /usr/share/catkin/cmake/catkinConfig.cmake:88 (find_package):
  Could not find a package configuration file provided by "tf2_geometry_msgs"
  with any of the following names:

    tf2_geometry_msgsConfig.cmake
    tf2_geometry_msgs-config.cmake

  Add the installation prefix of "tf2_geometry_msgs" to CMAKE_PREFIX_PATH or
  set "tf2_geometry_msgs_DIR" to a directory containing one of the above
  files.  If "tf2_geometry_msgs" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:4 (find_package)

After emerging tf2_geometry_msgs it works, i.e., emerging turtle_tf2 succeeded.
Comment 1 Jonas Stein gentoo-dev 2020-05-24 02:03:56 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to 
* attach the logs and 
* paste the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 2 Stefan Huber 2020-05-24 16:28:44 UTC
Created attachment 641378 [details]
build.log.xz
Comment 3 Stefan Huber 2020-05-24 16:29:23 UTC
Created attachment 641380 [details]
emerge --info dev-ros/turtle_tf2
Comment 4 Stefan Huber 2020-05-24 16:38:06 UTC
I have added the log files and therefore reopened the bug.

However, I still would like to point out that 

https://github.com/ros/geometry_tutorials/blob/kinetic-devel/turtle_tf2/CMakeLists.txt

simply contains a find_package() on tf2_geometry_msgs. This fact alone implies that the ebuild has to contain dev-ros/tf2_geometry_msgs as a dependency.

This dependency has been added by commit 8c8b7f8 and was therefore newly introduced for version 0.2.3 of dev-ros/tf2_geometry_msgs. This is why it worked for tf2_geometry_msgs-0.2.2.
Comment 5 Larry the Git Cow gentoo-dev 2020-07-27 11:31:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59666f33d9e58af5435b6f83806c61044e9eff6d

commit 59666f33d9e58af5435b6f83806c61044e9eff6d
Author:     Alexis Ballier <aballier@gentoo.org>
AuthorDate: 2020-07-27 11:31:13 +0000
Commit:     Alexis Ballier <aballier@gentoo.org>
CommitDate: 2020-07-27 11:31:13 +0000

    dev-ros/turtle_tf2: fixup deps
    
    Closes: https://bugs.gentoo.org/724874
    Package-Manager: Portage-3.0.0, Repoman-2.3.23
    Signed-off-by: Alexis Ballier <aballier@gentoo.org>

 dev-ros/turtle_tf2/turtle_tf2-0.2.3.ebuild | 5 +++--
 dev-ros/turtle_tf2/turtle_tf2-9999.ebuild  | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)