Bugzilla Automation <[email protected]> has asked freebsd-kde (Team)
<[email protected]> for maintainer-feedback:
Bug 267894: devel/cmake-core: Potential bug in FreeBSD CPack generator
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267894



--- Description ---
A pkg package generated with the CPack FreeBSD generator will fail to install
when CPACK_FREEBSD_PACKAGE_DEPS is non empty.

To reproduce, ensure that the FreeBSD CPack generator is enabled in the port
options.
Run the following CMakeLists.txt script:

cmake_minimum_required(VERSION 3.24)
project(cpack_test)
set(CPACK_PACKAGE_VENDOR "nobody")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "cpack freebsd generator test")
set(CPACK_FREEBSD_PACKAGE_MAINTAINER "[email protected]")
set(CPACK_FREEBSD_PACKAGE_LICENSE "BSD")
set(CPACK_FREEBSD_PACKAGE_DEPS "devel/spdlog devel/gpds")   # Error when
installing the resulting package:   pkg: elx has a missing dependency:
devel/spdlog devel/gpds
include(CPack)

Then, run CPack with the FreeBSD generator.
The package builds fine but fails to install with: pkg: cpack_test has a
missing dependency: devel/spdlog devel/gpds

If the CPACK_FREEBSD_PACKAGE_DEPS variable is empty, the package installs just
fine.

There's a good chance that this is PEBKAC but I'm out of ideas.

Reply via email to