[Bug 267894] devel/cmake-core: Potential bug in FreeBSD CPack generator

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Nov 21 16:55:27 GMT 2022


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267894

            Bug ID: 267894
           Summary: devel/cmake-core: Potential bug in FreeBSD CPack
                    generator
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde at FreeBSD.org
          Reporter: jbo at insane.engineer
          Assignee: kde at FreeBSD.org
             Flags: maintainer-feedback?(kde at FreeBSD.org)

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 "nodbody at no.where")
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list