[3dprinter-general] Bug#1032930: pynest2d: FTBFS with cmake 3.25: Libnest2D could not be found because dependency clipper could not be found.

Andreas Beckmann anbe at debian.org
Tue Mar 14 10:03:44 GMT 2023


Source: pynest2d
Version: 5.0.0-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)

Hi,

pynest2d/experimental started to FTBFS after some (transitive)
build-dependency has been upgraded. Most likely this is caused by cmake
3.25 (the last successful build was done with cmake 3.23).
This does not affect the version in sid since that does not seem to
check for clipper.

https://buildd.debian.org/status/fetch.php?pkg=pynest2d&arch=amd64&ver=5.0.0-1%2Bb1&stamp=1675641711&raw=0

   dh_auto_configure -a -O--buildsystem=pybuild
I: pybuild base:240: dh_auto_configure --buildsystem=cmake --builddirectory=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build -- -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.11 -DPYTHON_LIBRARY:FILEPATH=/usr/lib/python3.11/config-3.11-x86_64-linux-gnu/libpython3.11.so -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.11 -DPython_EXECUTABLE=/usr/bin/python3.11 -DPython_LIBRARY=/usr/lib/python3.11/config-3.11-x86_64-linux-gnu/libpython3.11.so -DPython_INCLUDE_DIR=/usr/include/python3.11 -DPython3_EXECUTABLE=/usr/bin/python3.11 -DPython3_LIBRARY=/usr/lib/python3.11/config-3.11-x86_64-linux-gnu/libpython3.11.so -DPython3_INCLUDE_DIR=/usr/include/python3.11 -DPYVER=3.11
	cd .pybuild/cpython3_3.11/build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.11 -DPYTHON_LIBRARY:FILEPATH=/usr/lib/python3.11/config-3.11-x86_64-linux-gnu/libpython3.11.so -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.11 -DPython_EXECUTABLE=/usr/bin/python3.11 -DPython_LIBRARY=/usr/lib/python3.11/config-3.11-x86_64-linux-gnu/libpython3.11.so -DPython_INCLUDE_DIR=/usr/include/python3.11 -DPython3_EXECUTABLE=/usr/bin/python3.11 -DPython3_LIBRARY=/usr/lib/python3.11/config-3.11-x86_64-linux-gnu/libpython3.11.so -DPython3_INCLUDE_DIR=/usr/include/python3.11 -DPYVER=3.11 ../../..
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting BUILD_SHARED_LIBS to ON
-- Generating compile commands to /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/compile_commands.json
-- Setting POSITION_INDEPENDENT_CODE: ON
-- Setting C++17 support with extensions off and standard required
-- Setting Python version to 3.11. Set Python_VERSION if you want to compile against an other version.
-- Found Python: /usr/bin/python3.11 (found suitable exact version "3.11.1") found components: Interpreter Development Development.Module Development.Embed
-- Linking and building  against Python 3.11.1
-- Found SIP version: 6.7.6
-- Using dependent package: Threads
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Using dependent package: Boost
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0")
-- Using dependent package: clipper
CMake Warning (dev) at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (Clipper)
  does not match the name of the calling package (clipper).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/lib/cmake/Libnest2D/Findclipper.cmake:67 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /usr/lib/cmake/Libnest2D/Libnest2DConfig.cmake:20 (find_dependency)
  CMakeLists.txt:33 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Clipper: /usr/include/polyclipping
CMake Error at CMakeLists.txt:33 (find_package):
  Found package configuration file:

    /usr/lib/cmake/Libnest2D/Libnest2DConfig.cmake

  but it set Libnest2D_FOUND to FALSE so package "Libnest2D" is considered to
  be NOT FOUND.  Reason given by package:

  Libnest2D could not be found because dependency clipper could not be found.



-- Configuring incomplete, errors occurred!


Andreas



More information about the 3dprinter-general mailing list