libcbor fails to build with "nocheck" build profile

Bug #2009881 reported by Alex Kompel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libcbor (Ubuntu)
New
Undecided
Unassigned

Bug Description

libcbor fails to build with "nocheck" build profile:

----
/build/libcbor-0.8.0# apt-get purge libcmocka-dev
/build/libcbor-0.8.0# dpkg-buildpackage -b -us -uc --build-profiles=nocheck
...
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find CMocka (missing: CMOCKA_LIBRARIES CMOCKA_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  CMakeModules/FindCMocka.cmake:46 (find_package_handle_standard_args)
  test/CMakeLists.txt:8 (find_package)
...
----

Either debian/control needs to be updated to install libcmocka-dev regardless of nocheck profile or
debian/rules need to be updated to use DEB_BUILD_PROFILES (https://wiki.debian.org/BuildProfileSpec#The_Built-For-Profiles_field)

----
CONFIGURE_SWITCHES=-DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
    CONFIGURE_SWITCHES += -DWITH_TESTS=ON
endif

...

override_dh_auto_configure-arch:
        dh_auto_configure -- $(CONFIGURE_SWITCHES)
---

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.