Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702728 - dev-ros/ament_cmake_export_libraries-0.8.1 : CMake Error at /.../ament_cmake_package_templates-extras.cmake:41 (message):
Summary: dev-ros/ament_cmake_export_libraries-0.8.1 : CMake Error at /.../ament_cmake_...
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: 2019-12-13 18:13 UTC by Toralf Förster
Modified: 2019-12-16 13:49 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.47 KB, text/plain)
2019-12-13 18:13 UTC, Toralf Förster
Details
CMakeOutput.log (CMakeOutput.log,39 bytes, text/plain)
2019-12-13 18:13 UTC, Toralf Förster
Details
dev-ros:ament_cmake_export_libraries-0.8.1:20191213-175655.log (dev-ros:ament_cmake_export_libraries-0.8.1:20191213-175655.log,4.14 KB, text/plain)
2019-12-13 18:13 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,81.20 KB, text/plain)
2019-12-13 18:13 UTC, Toralf Förster
Details
environment (environment,121.75 KB, text/plain)
2019-12-13 18:14 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.84 KB, application/x-bzip)
2019-12-13 18:14 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,223 bytes, application/x-bzip)
2019-12-13 18:14 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,28.14 KB, application/x-bzip)
2019-12-13 18:14 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-12-13 18:13:47 UTC
    from ament_package.templates import get_environment_hook_template_path
ModuleNotFoundError: No module named 'ament_package'
CMake Error at /usr/share/ament_cmake_core/cmake/ament_cmake_package_templates-extras.cmake:41 (message):
  
  execute_process(/var/tmp/portage/dev-ros/ament_cmake_export_libraries-0.8.1/temp/python3.7/bin/python
  /usr/share/ament_cmake_core/cmake/package_templates/templates_2_cmake.py

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_developer-libressl-20191211-212527

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  (none found)
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.13.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Fri, 13 Dec 2019 17:06:07 +0000

emerge -qpvO dev-ros/ament_cmake_export_libraries
[ebuild  N    ] dev-ros/ament_cmake_export_libraries-0.8.1
Comment 1 Toralf Förster gentoo-dev 2019-12-13 18:13:50 UTC
Created attachment 599440 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-12-13 18:13:53 UTC
Created attachment 599442 [details]
CMakeOutput.log
Comment 3 Toralf Förster gentoo-dev 2019-12-13 18:13:55 UTC
Created attachment 599444 [details]
dev-ros:ament_cmake_export_libraries-0.8.1:20191213-175655.log
Comment 4 Toralf Förster gentoo-dev 2019-12-13 18:13:58 UTC
Created attachment 599446 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2019-12-13 18:14:01 UTC
Created attachment 599448 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2019-12-13 18:14:04 UTC
Created attachment 599450 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-12-13 18:14:07 UTC
Created attachment 599452 [details]
logs.tbz2
Comment 8 Toralf Förster gentoo-dev 2019-12-13 18:14:09 UTC
Created attachment 599454 [details]
temp.tbz2
Comment 9 Toralf Förster gentoo-dev 2019-12-13 18:48:03 UTC
maybe dup of bug #702722
Comment 10 Alexis Ballier gentoo-dev 2019-12-16 09:57:17 UTC
what useflags to you have on dev-python/ament_package ?
it is merged and in BDEPEND so should be found...
Comment 11 Toralf Förster gentoo-dev 2019-12-16 10:05:34 UTC
(In reply to Alexis Ballier from comment #10)
> what useflags to you have on dev-python/ament_package ?
> it is merged and in BDEPEND so should be found...

mr-fox ~ # emerge -qpvO dev-python/ament_package
[ebuild   R   ] dev-python/ament_package-0.8.8  USE="-test" PYTHON_TARGETS="python3_6 -python3_7"
Comment 12 Alexis Ballier gentoo-dev 2019-12-16 10:54:18 UTC
(In reply to Toralf Förster from comment #11)
> (In reply to Alexis Ballier from comment #10)
> > what useflags to you have on dev-python/ament_package ?
> > it is merged and in BDEPEND so should be found...
> 
> mr-fox ~ # emerge -qpvO dev-python/ament_package
> [ebuild   R   ] dev-python/ament_package-0.8.8  USE="-test"
> PYTHON_TARGETS="python3_6 -python3_7"

Ok so this is wrong.

@python team: is it a problem with python-any-r1 or my code ?

BDEPEND="
	$(python_gen_any_dep 'dev-python/ament_package[${PYTHON_USEDEP}] dev-python/catkin_pkg[${PYTHON_USEDEP}]')
	${PYTHON_DEPS}
"

But python-any-r1 seems to take python3.7 if it's installed even if PYTHON_USEDEP is not satisfied...
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-16 11:17:01 UTC
The eclass is not currently equipped with a crystall ball, so you need to declare python_check_deps().  As the description on top of the eclass says.  And the manual.
Comment 14 Alexis Ballier gentoo-dev 2019-12-16 11:28:25 UTC
(In reply to Michał Górny from comment #13)
> The eclass is not currently equipped with a crystall ball, so you need to
> declare python_check_deps().  As the description on top of the eclass says. 
> And the manual.

Ah! Thanks.
I was expecting python_gen_any_dep to do this kind of magic for me.
Comment 15 Larry the Git Cow gentoo-dev 2019-12-16 13:49:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90931d853657e42c750dd77959747751705687ed

commit 90931d853657e42c750dd77959747751705687ed
Author:     Alexis Ballier <aballier@gentoo.org>
AuthorDate: 2019-12-16 11:30:51 +0000
Commit:     Alexis Ballier <aballier@gentoo.org>
CommitDate: 2019-12-16 13:49:43 +0000

    dev-ros/ament_cmake_export_libraries: Declare python_check_deps().
    
    Thanks to mgorny.
    Closes: https://bugs.gentoo.org/702728
    Package-Manager: Portage-2.3.81, Repoman-2.3.20
    
    Signed-off-by: Alexis Ballier <aballier@gentoo.org>

 .../ament_cmake_export_libraries-0.8.1.ebuild                        | 5 +++++
 .../ament_cmake_export_libraries-9999.ebuild                         | 5 +++++
 2 files changed, 10 insertions(+)