Your message dated Sun, 13 Apr 2025 20:41:44 +0000
with message-id <[email protected]>
and subject line Bug#1103023: fixed in ros2-ament-cmake 2.7.2-2
has caused the Debian Bug report #1103023,
regarding ros2-ament-cmake FTCBFS: fails building a python extension without 
libpython3-dev
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1103023: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103023
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: ros2-ament-cmake
Version: 2.7.2-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

ros2-ament-cmake fails to cross build from source.

| Not searching for unused variables given on the command line.
| -- Found ament_cmake_core: 2.7.2 
(/build/reproducible-path/ros2-ament-cmake-2.7.2/debian/tmp/usr/share/ament_cmake_core/cmake)
| -- Found Python3: /usr/bin/python3 (found version "3.13.3") found components: 
Interpreter
| -- Found ament_cmake_python: 2.7.2 
(/build/reproducible-path/ros2-ament-cmake-2.7.2/debian/tmp/usr/share/ament_cmake_python/cmake)
| Traceback (most recent call last):
|   File "<string>", line 4, in <module>
|     if sysconfig.get_config_var('base') != os.path.normpath('/usr'):
|        ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
|   File "/usr/lib/python3.13/sysconfig/__init__.py", line 627, in 
get_config_var
|     return get_config_vars().get(name)
|            ~~~~~~~~~~~~~~~^^
|   File "/usr/lib/python3.13/sysconfig/__init__.py", line 601, in 
get_config_vars
|     _init_config_vars()
|     ~~~~~~~~~~~~~~~~~^^
|   File "/usr/lib/python3.13/sysconfig/__init__.py", line 538, in 
_init_config_vars
|     _init_posix(_CONFIG_VARS)
|     ~~~~~~~~~~~^^^^^^^^^^^^^^
|   File "/usr/lib/python3.13/sysconfig/__init__.py", line 396, in _init_posix
|     _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
| ModuleNotFoundError: No module named 
'_sysconfigdata__linux_arm-linux-gnueabihf'
| CMake Error at 
/build/reproducible-path/ros2-ament-cmake-2.7.2/debian/tmp/usr/share/ament_cmake_python/cmake/ament_cmake_python-extras.cmake:71
 (message):
|   execute_process(/usr/bin/python3 -c 'import os
| 
|   import sysconfig
| 
|   kwargs = {'vars': {'base': '/usr'}}
| 
|   if sysconfig.get_config_var('base') != os.path.normpath('/usr'):
| 
|       schemes = sysconfig.get_scheme_names()
|       if 'deb_system' in schemes or 'osx_framework_library' in schemes:
|           kwargs['scheme'] = 'posix_prefix'
|       elif 'rpm_prefix' in schemes:
|           kwargs['scheme'] = 'rpm_prefix'
| 
|   print(os.path.relpath(sysconfig.get_path('purelib', **kwargs),
|   start='/usr').replace(os.sep, '/'))') returned error code 1
| Call Stack (most recent call first):
|   
/build/reproducible-path/ros2-ament-cmake-2.7.2/debian/tmp/usr/share/ament_cmake_python/cmake/ament_cmake_python-extras.cmake:22
 (_ament_cmake_python_get_python_install_dir)
|   
/build/reproducible-path/ros2-ament-cmake-2.7.2/debian/tmp/usr/share/ament_cmake_python/cmake/ament_python_install_package.cmake:38
 (_ament_cmake_python_register_environment_hook)
|   CMakeLists.txt:8 (ament_python_install_package)
| 
| 
| -- Configuring incomplete, errors occurred!
|         cd obj-arm-linux-gnueabihf/ament_cmake_test && tail -v -n \+0 
CMakeCache.txt
| ==> CMakeCache.txt <==

This looks like it is trying to build a Python extension and fails as
the sysconfigdata module for the host architecture is not found. Adding
a dependency on libpython3-dev fixes this.

Helmut
diff --minimal -Nru ros2-ament-cmake-2.7.2/debian/changelog 
ros2-ament-cmake-2.7.2/debian/changelog
--- ros2-ament-cmake-2.7.2/debian/changelog     2024-11-23 23:05:59.000000000 
+0100
+++ ros2-ament-cmake-2.7.2/debian/changelog     2025-04-12 19:59:29.000000000 
+0200
@@ -1,3 +1,11 @@
+ros2-ament-cmake (2.7.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Missing Build-Depend: libpython3-dev for building a Python
+    extension. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sat, 12 Apr 2025 19:59:29 +0200
+
 ros2-ament-cmake (2.7.2-1) unstable; urgency=medium
 
   * New upstream version 2.7.2
diff --minimal -Nru ros2-ament-cmake-2.7.2/debian/control 
ros2-ament-cmake-2.7.2/debian/control
--- ros2-ament-cmake-2.7.2/debian/control       2024-11-23 23:05:59.000000000 
+0100
+++ ros2-ament-cmake-2.7.2/debian/control       2025-04-12 19:59:27.000000000 
+0200
@@ -11,6 +11,7 @@
  dh-ros,
  dh-sequence-python3,
  libgtest-dev <!nocheck>,
+ libpython3-dev,
  python3-ament-package,
  python3-catkin-pkg,
  python3-setuptools,

--- End Message ---
--- Begin Message ---
Source: ros2-ament-cmake
Source-Version: 2.7.2-2
Done: Timo Röhling <[email protected]>

We believe that the bug you reported is fixed in the latest version of
ros2-ament-cmake, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Timo Röhling <[email protected]> (supplier of updated ros2-ament-cmake 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 13 Apr 2025 22:30:03 +0200
Source: ros2-ament-cmake
Architecture: source
Version: 2.7.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Robotics Team <[email protected]>
Changed-By: Timo Röhling <[email protected]>
Closes: 1103023
Changes:
 ros2-ament-cmake (2.7.2-2) unstable; urgency=medium
 .
   * Add missing cross build dependency.
     Thanks to Helmut Grohne (Closes: #1103023)
   * Bump Standards-Version to 4.7.2
   * Wrap and sort Debian package files
Checksums-Sha1:
 9543a6083be9ddd80be974ed33b56758729b0829 3094 ros2-ament-cmake_2.7.2-2.dsc
 2d056e5f01c8252f706872c4a274be5406ac201d 11180 
ros2-ament-cmake_2.7.2-2.debian.tar.xz
Checksums-Sha256:
 f6d0cb37ad788a4525d5beca14bd1781dd4a24b00d29b5f8e1bc84cd3283ccfc 3094 
ros2-ament-cmake_2.7.2-2.dsc
 ab3ee5d45daa158541e270c88bc093b3b3fd389a3d8cd3ebf70a3b774abd9979 11180 
ros2-ament-cmake_2.7.2-2.debian.tar.xz
Files:
 ca03b6eda911030c7f58f032a6aae606 3094 devel optional 
ros2-ament-cmake_2.7.2-2.dsc
 8dcd5c52e4e454dbb6c54b2276fed87e 11180 devel optional 
ros2-ament-cmake_2.7.2-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEmwPruYMA35fCsSO/zIxr3RQD9MoFAmf8HvQUHHJvZWhsaW5n
QGRlYmlhbi5vcmcACgkQzIxr3RQD9MoW5A//UebDTzTK3OJZZCQvkUtAivCUQbQS
4PyDWgAQNctoOxeliEuymO15bXHyLiMfD6rIvihG77uoDTSvifBdJ1Yi84TDw7nm
HahL4Oy36Zr3+BFBkeW1kCOyRV8Q2/+q5CPhA+SQ7p8PINtabeZgcotzZY2briSb
w3YBJSwi44s8uFkuhfQw9OAhI6xnR0rh3RoofHLVfdgyYYZsTJ9feg5u4ywZJZUt
FOhP45UTWtiI/qbd0+PMQhutY3x1hxpo3Jv58yeA3dS1KcWp+1E17HzJDjnx1eCu
Zs4W3xZQU6u8BsHZgCLe+4Jr+heMwSs2itj447As7ZZOaUG5Xk2B2Dgo+y97tqHe
xyr5MiYYjNVBUiWNwrBTJWDoUwfKu5hdVkIxfhFwTQaL0vKt96dTxrHiY+ttsd1S
MbH0Ngvv6pQms0wDt8Bq8RG/VZaxL8HX8lMyOgNRgZIkXAFI+MuAqVlc5PwJak1h
GXWeICIM2mm350v2nqwxagERE8isrpPf+MGyQZpUtyD12yII7qhDbqQkodM76Sfd
bAS7ixduebkItw4PGTU8fWffDfrmDf+/lFjg9W/6KW4r7/BlYArZbyWaBeuMc3Qp
HhHjnYZ1MUHUb6GUrRaRFju1hIXVpK9XX0AK0mBTEqnK1lriy1Nr29UCVqwWgbAZ
UUES3rfuVx4Gb+I=
=klJM
-----END PGP SIGNATURE-----

Attachment: pgpn77MSDsGUi.pgp
Description: PGP signature


--- End Message ---

Reply via email to