7.99 tries to install pcbnew.py outside of CMAKE_INSTALL_PREFIX
Description
since b4bb1f4b, KiCad attempts to install pcbnew.py
outside of the specified install directories (CMAKE_INSTALL_*
)
this breaks the Nix package (and presumably other package systems that only allow writing output to 1 location)
-- Installing: /nix/store/mm03g8f3bzilrprb7qzvjmw24nynzhpn-kicad-base-607622e8f8/bin/pcbnew
-- Installing: /nix/store/mm03g8f3bzilrprb7qzvjmw24nynzhpn-kicad-base-607622e8f8/bin/_pcbnew.kiface
-- Installing: /nix/store/0n4y44dnaxafqs7cg625aldrb152x7bx-python3-3.10.10/lib/python3.10/site-packages/pcbnew.py
CMake Error at pcbnew/cmake_install.cmake:132 (file):
file INSTALL cannot copy file "/build/source/build/pcbnew/pcbnew.py" to
"/nix/store/0n4y44dnaxafqs7cg625aldrb152x7bx-python3-3.10.10/lib/python3.10/site-packages/pcbnew.py":
Permission denied.
(this used to be installed in result/lib/python3.10/site-packages/pcbnew.py
(result
is a link to the build output at CMAKE_INSTALL_PREFIX
)
Steps to reproduce
- succeeds:
nix-build https://github.com/evils/nixpkgs/archive/kicad-pcbnew.py_before.tar.gz -A kicad-unstable.base
(build of b4bb...~) - fails:
nix-build https://github.com/evils/nixpkgs/archive/kicad-pcbnew.py.tar.gz -A kicad-unstable.base
(build of b4bb...)
KiCad Version
Version before b4bb... (ignore commit ID in the version, it's b4bb...~)
Application: KiCad x86_64 on x86_64
Version: 7.99.0-b4bb1f4b46, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.13.0
HarfBuzz 7.0.1
FontConfig 2.14.0
libcurl/7.88.1 OpenSSL/3.0.8 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.2 libssh2/1.10.0 nghttp2/1.51.0
Platform: , 64 bit, Little endian, wxGTK, , wayland
Build Info:
Date: Jan 1 1980 00:00:00
wxWidgets: 3.2.2 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.79.0
OCC: 7.6.2
Curl: 7.88.1
ngspice: 37
Compiler: GCC 12.2.0 with C++ ABI 1017
Build settings:
KICAD_USE_EGL=ON
KICAD_SPICE=ON
Edited by evils