summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--opencode.spec14
-rw-r--r--sources2
2 files changed, 14 insertions, 2 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
diff --git a/sources b/sources
index 52034cb..b2789b8 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
20383605b7dde93ddf4c8ec41648f090 models-api.json.xz
-49fb3cd0d185ad2d35175fb015a2e7ac opencode-1.19.5.tar.gz
+cc68e2eb0a06cf007b07a9e3172970c0 opencode-1.19.5.tar.gz