NetBSD Problem Report #61046
From gourd@netbsd-vm.localdomain Sun Nov 22 23:31:50 2026
Return-Path: <gourd@netbsd-vm.localdomain>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 701C91A923B
for <gnats-bugs@gnats.NetBSD.org>; Sun, 22 Nov 2026 23:31:50 +0000 (UTC)
Message-Id: <20261122233147.F279550935@netbsd-vm.localdomain>
Date: Sun, 22 Nov 2026 23:31:47 +0000 (UTC)
From: gourd753+netbsd@xenos5.net
Reply-To: gourd753+netbsd@xenos5.net
To: gnats-bugs@NetBSD.org
Subject: shell/fish 4.9.3 does not build w/cmake 4.5+
X-Send-Pr-Version: 3.95
X-From4GNATS: "gourd753+netbsd@xenos5.net via gnats" <gnats-admin@NetBSD.org>
>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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 22 23:35:00 +0000 2026
>Closed-Date: Mon Nov 23 07:46:45 +0000 2026
>Last-Modified: Mon Nov 23 07:50:01 +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:/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
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Mon, 23 Nov 2026 07:46:45 +0000
State-Changed-Why:
Fixed, thanks!
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/61046 CVS commit: pkgsrc/shells
Date: Mon, 23 Nov 2026 07:46:21 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Mon Nov 23 07:46:21 UTC 2026
Modified Files:
pkgsrc/shells/fish: distinfo
pkgsrc/shells/fish/patches: patch-cmake_Install.cmake
pkgsrc/shells/fish3: distinfo
pkgsrc/shells/fish3/patches: patch-cmake_Install.cmake
Log Message:
fish*: fix installation with cmake 4.5
Based on upstream commit and PR 61046 by Gourd753.
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 pkgsrc/shells/fish/distinfo
cvs rdiff -u -r1.7 -r1.8 pkgsrc/shells/fish/patches/patch-cmake_Install.cmake
cvs rdiff -u -r1.1 -r1.2 pkgsrc/shells/fish3/distinfo
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/shells/fish3/patches/patch-cmake_Install.cmake
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.