pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/61046: shell/fish 4.9.3 does not build w/cmake 4.5+
>Number: 61046
>Category: pkg
>Synopsis: shell/fish 4.9.3 does not build w/cmake 4.5+
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 22 23:35:00 +0000 2026
>Originator: Gourd753
>Release: NetBSD 11.1
>Organization:
N/A
>Environment:
System: NetBSD netbsd-vm 11.1 NetBSD 11.1 (GENERIC) #0: Mon Nov 2 16:34:32 UTC 2026 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Attempting to build fish/shell 4.9.3 with cmake 4.5.1 ends with
the following error during the configuration step:
---
-- The C compiler identification is GNU 12.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/pkgsrc/shells/fish/work/.cwrapper/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Forcing static build of PCRE2
-- Found Rust: /usr/pkg/bin/rustc
CMake Error at cmake/Install.cmake:77 (install):
install SCRIPT given invalid argument:
SCRIPT: missing required value
Call Stack (most recent call first):
cmake/Install.cmake:124 (fish_try_create_dirs)
CMakeLists.txt:104 (include)
-- The following features have been enabled:
* Translation, message localization (requires gettext)
* Documentation, user manual and documentation
-- The following REQUIRED packages have been found:
* Rust
-- Configuring incomplete, errors occurred!
*** Error code 1
Stop.
make[1]: stopped making "configure" in /usr/pkgsrc/shells/fish
*** Error code 1
Stop.
make: stopped making "configure" in /usr/pkgsrc/shells/fish
---
>How-To-Repeat:
`make configure` in the /usr/pkgsrc/shells/fish folder.
>Fix:
Fix taken from OpenSUSE's fish changelog: https://opensuse.pkgs.org/tumbleweed/opensuse-oss-x86_64/fish-devel-4.8.1-2.1.x86_64.rpm.html
Change "install(SCRIPT CODE" to "install(CODE" in cmake/install.cmake
Here's a revised version of patches/patch-cmake_install.cmake:
$NetBSD: patch-cmake_Install.cmake,v 1.7 2026/10/08 17:55:58 ktnb Exp $
Use pkgsrc defaults.
Also solve issues with "install(SCRIPT CODE" not working under cmake 4.5+
Idea taken from https://opensuse.pkgs.org/tumbleweed/opensuse-oss-x86_64/fish-devel-4.8.1-2.1.x86_64.rpm.html
--- cmake/Install.cmake.orig 2026-09-08 18:53:36.000000000 +0000
+++ cmake/Install.cmake
@@ -4,11 +4,14 @@ set(prefix ${CMAKE_INSTALL_PREFIX})
set(bindir ${CMAKE_INSTALL_BINDIR})
set(sysconfdir ${CMAKE_INSTALL_SYSCONFDIR})
set(mandir ${CMAKE_INSTALL_MANDIR})
+set(libdir ${CMAKE_INSTALL_LIBDIR})
+
set(datadir ${CMAKE_INSTALL_FULL_DATADIR})
file(RELATIVE_PATH rel_datadir ${CMAKE_INSTALL_PREFIX} ${datadir})
set(docdir ${CMAKE_INSTALL_DOCDIR})
+set(egdir "${datadir}/examples")
set(rel_completionsdir "fish/vendor_completions.d")
set(rel_functionsdir "fish/vendor_functions.d")
@@ -71,7 +74,7 @@ function(FISH_TRY_CREATE_DIRS)
else()
set(abs_dir "\$ENV{DESTDIR}${dir}")
endif()
- install(SCRIPT CODE "
+ install(CODE "
EXECUTE_PROCESS(COMMAND mkdir -p ${abs_dir} OUTPUT_QUIET ERROR_QUIET)
execute_process(COMMAND chmod 755 ${abs_dir} OUTPUT_QUIET ERROR_QUIET)
")
@@ -101,7 +104,7 @@ install(CODE "file(CREATE_LINK ${abs_bin
fish_create_dirs(${sysconfdir}/fish/conf.d ${sysconfdir}/fish/completions
${sysconfdir}/fish/functions)
-install(FILES etc/config.fish DESTINATION ${sysconfdir}/fish/)
+install(FILES etc/config.fish DESTINATION ${egdir}/fish/)
fish_create_dirs(
${rel_datadir}/fish
@@ -134,7 +137,7 @@ add_custom_target(build_fish_pc ALL DEPE
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/fish.pc
- DESTINATION ${rel_datadir}/pkgconfig
+ DESTINATION ${libdir}/pkgconfig
)
# CONDEMNED_PAGE is managed by the conditional above
Home |
Main Index |
Thread Index |
Old Index