Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[regression in 3.9.0] Install target fails when stage directory is used: CMake Error: Could not open file for write in copy operation /usr/local/share/pkgconfig/catch2.pc.tmp #3006

@yurivict

Description

@yurivict

Describe the bug
The install target attempts to write into the read-only location:

CMake Error: Could not open file for write in copy operation /usr/local/share/pkgconfig/catch2.pc.tmp
CMake Error: : System Error: Permission denied
CMake Error at cmake_install.cmake:89 (configure_file):
  configure_file Problem configuring file


FAILED: CMakeFiles/install/strip.util 
cd /usr/ports/devel/catch2/work/.build && /usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
ninja: build stopped: subcommand failed.
*** Error code 1

Expected behavior
n/a

Reproduction steps
make build install

Platform information:

  • OS: FreeBSD 14.3
  • Compiler+version: clang-19
  • Catch version: 3.9.0

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions