[Bug 2009881] [NEW] libcbor fails to build with "nocheck" build profile

Alex Kompel 2009881 at bugs.launchpad.net
Thu Mar 9 18:30:51 UTC 2023


Public bug reported:

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)
---

** Affects: libcbor (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libcbor in Ubuntu.
https://bugs.launchpad.net/bugs/2009881

Title:
  libcbor fails to build with "nocheck" build profile

Status in libcbor package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libcbor/+bug/2009881/+subscriptions




More information about the foundations-bugs mailing list