diff options
Diffstat (limited to 'opencode.spec')
| -rw-r--r-- | opencode.spec | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/opencode.spec b/opencode.spec index 7cd554a..c5fbe38 100644 --- a/opencode.spec +++ b/opencode.spec @@ -33,7 +33,7 @@ Name: opencode Version: 1.19.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The open source coding agent License: MIT @@ -190,6 +190,11 @@ bun --version export npm_config_registry="https://mirrors.huaweicloud.com/repository/npm/" export NPM_CONFIG_REGISTRY="$npm_config_registry" export BUN_CONFIG_REGISTRY="$npm_config_registry" +# Dependency install scripts (e.g. tree-sitter-powershell) run node-gyp, which +# downloads the Node headers. nodejs.org is unreachable from the builders (the +# reference 24.03 LTS SP4 build failed there), so point node-gyp at the mirror. +export npm_config_disturl="https://mirrors.huaweicloud.com/nodejs" +export NPM_CONFIG_DISTURL="$npm_config_disturl" export npm_config_prefix="$HOME/npm-global" export NPM_CONFIG_PREFIX="$npm_config_prefix" mkdir -p "$npm_config_prefix" @@ -223,6 +228,13 @@ install -Dpm 0644 LICENSE %{buildroot}%{_licensedir}/%{name}/LICENSE %{_bindir}/opencode %changelog +* Fri Oct 30 2026 user_76c6f026 <user_76c6f026@eur.openeuler.cn> - 1.19.5-2 +- Route node-gyp header downloads to the Huawei Cloud Node.js mirror + (npm_config_disturl) so dependency install scripts do not fail on the + unreachable nodejs.org +- Rebuild after build 114056 aborted at the first %build download with a + transient "Could not resolve host: mirrors.huaweicloud.com" DNS failure + * Fri Oct 30 2026 user_76c6f026 <user_76c6f026@eur.openeuler.cn> - 1.19.5-1 - Build opencode 1.19.5 from source for openEuler 24.03 LTS SP4 x86_64 - Adapt EUR reference spec (25.09) to the 24.03 LTS SP4 chroot |
