git: 4d1528008f9f - 2026Q3 - misc/claude-code-legacy: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 03 Aug 2026 15:10:18 UTC
The branch 2026Q3 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4d1528008f9febbccbcdf17aaf6b455210730695
commit 4d1528008f9febbccbcdf17aaf6b455210730695
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-07-31 09:36:42 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-08-03 15:10:08 +0000
misc/claude-code-legacy: fix build on armv7
This is the same issue as in 0c9905d54dedcf8763df802a01beb2ea3d4ac4a0,
but for some reason cargo complains about a checksum error if I patch
it. Work around the error for now by disabling the AUDIO_CAPTURE
option on arm, without which this problem does not occur.
Maintainer should strongly consider unbundling the rust bits so that
they use the conventional rust support instead of hand-rolling a poorly
conceived solution.
See also: 0c9905d54dedcf8763df802a01beb2ea3d4ac4a0
MFH: 2026Q3
Approved by: portmgr (build fix blanket)
(cherry picked from commit cb13c34eb2244f54519722d66dc3b639936b2934)
---
misc/claude-code-legacy/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/misc/claude-code-legacy/Makefile b/misc/claude-code-legacy/Makefile
index 50538ce608a4..e850f76c3d00 100644
--- a/misc/claude-code-legacy/Makefile
+++ b/misc/claude-code-legacy/Makefile
@@ -23,6 +23,10 @@ PLIST_SUB= JS_ARCH=${JS_ARCH}
OPTIONS_DEFINE= AUDIO_CAPTURE USE_CURL_USER_AGENT
OPTIONS_DEFAULT= AUDIO_CAPTURE USE_CURL_USER_AGENT
+# same issue as 0c9905d54dedcf8763df802a01beb2ea3d4ac4a0
+# that is, type error in cpal-0.17.3/src/host/alsa/mod.rs
+# but rust won't let me patch it
+OPTIONS_EXCLUDE_armv7= AUDIO_CAPTURE
OPTIONS_SUB= yes
AUDIO_CAPTURE_DESC= Build native audio capture module for FreeBSD