Source: golang-github-evanw-esbuild
Version: 0.25.0-2
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

The golang-github-evanw-esbuild package was built on loong64.
But I found that there is a lack of defining $(NPM_DIR) for loong64.
Please note that esbuild binary-package is built from golang-github-evanw-esbuild source-package.

If the support for loong64 is missing in golang-github-evanw-esbuild, packages that depend on esbuild will fail to build, for example, Compiling the elixir-ex-doc failed for loong64 in the Debian Package Auto-Building environment.
The build error log is as follows,
```
......
/usr/lib/loongarch64-linux-gnu/nodejs/esbuild/lib/main.js:1754
        throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.
        ^

Error: The package "@esbuild/linux-loong64" could not be found, and is needed by esbuild.
......
```
The full build log of elixir-ex-doc(build-depend esbuild) can be found at https://buildd.debian.org/status/logs.php?pkg=elixir-ex-doc&arch=loong64

Please consider the patch I attached for golang-github-evanw-esbuild.
Based on attached patch, I have built golang-github-evanw-esbuild_0.25.0-2+loong64 successfully on locally.
```
dpkg-deb: building package 'golang-github-evanw-esbuild-dev' in '../golang-github-evanw-esbuild-dev_0.25.0-2+loong64_alldpkg-deb: building package 'esbuild-dbgsym' in '../esbuild-dbgsym_0.25.0-2+loong64_loong64.deb'.
.deb'.
dpkg-deb: building package 'esbuild' in '../esbuild_0.25.0-2+loong64_loong64.deb'.  dpkg-genbuildinfo -O../golang-github-evanw-esbuild_0.25.0-2+loong64_loong64.buildinfo  dpkg-genchanges -O../golang-github-evanw-esbuild_0.25.0-2+loong64_loong64.changes
```

Based on local esbuild_0.25.0-2+loong64 binary-package(built from golang-github-evanw-esbuild), I have elixir-ex-doc successfully on locally.
```
......
    dpkg-deb --root-owner-group --build debian/elixir-ex-doc ..
dpkg-deb: building package 'elixir-ex-doc' in '../elixir-ex-doc_0.35.1+dfsg-4_loong64.deb'.
 dpkg-genbuildinfo -O../elixir-ex-doc_0.35.1+dfsg-4_loong64.buildinfo
 dpkg-genchanges -O../elixir-ex-doc_0.35.1+dfsg-4_loong64.changes
```

Please add loong64 support in golang-github-evanw-esbuild.
Your opinions are welcome.

Best regards,
Dandan Zhang

diff -Nru golang-github-evanw-esbuild-0.25.0/debian/changelog 
golang-github-evanw-esbuild-0.25.0/debian/changelog
--- golang-github-evanw-esbuild-0.25.0/debian/changelog 2025-03-06 
02:46:16.000000000 +0000
+++ golang-github-evanw-esbuild-0.25.0/debian/changelog 2025-03-18 
13:01:02.000000000 +0000
@@ -1,3 +1,9 @@
+golang-github-evanw-esbuild (0.25.0-2+loong64) unstable; urgency=medium
+
+  * Defining $(NPM_DIR) for loong64.
+
+ -- Dandan Zhang <zhangdan...@loongson.cn>  Tue, 18 Mar 2025 21:15:05 +0800
+
 golang-github-evanw-esbuild (0.25.0-2) unstable; urgency=medium
 
   * Team upload
diff -Nru golang-github-evanw-esbuild-0.25.0/debian/rules 
golang-github-evanw-esbuild-0.25.0/debian/rules
--- golang-github-evanw-esbuild-0.25.0/debian/rules     2025-03-06 
02:46:16.000000000 +0000
+++ golang-github-evanw-esbuild-0.25.0/debian/rules     2025-03-18 
12:58:01.000000000 +0000
@@ -13,6 +13,7 @@
   my %mapping = ( \
       amd64 => "x64", i386 => "ia32", \
       arm64 => "arm64", armhf => "arm", armel => "arm", \
+      loong64 => "loong64", \
       mips64el => "mips64el", \
       ppc64el => "ppc64", \
       riscv64 => "riscv64", \

Reply via email to