Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Aug 2026 15:07:30 +0000
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: cb13c34eb224 - main - misc/claude-code-legacy: fix build on armv7
Message-ID:  <6a70aeb2.393df.3d0a455e@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cb13c34eb2244f54519722d66dc3b639936b2934

commit cb13c34eb2244f54519722d66dc3b639936b2934
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:01: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)
---
 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 e1522382b959..c4ee95401b11 100644
--- a/misc/claude-code-legacy/Makefile
+++ b/misc/claude-code-legacy/Makefile
@@ -24,6 +24,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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a70aeb2.393df.3d0a455e>