Source: golang-github-creack-goselect
Version: 0.1.2-3
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Hi maintainers,

The golang-github-creack-goselect package is used for all arch.
Please see https://buildd.debian.org/status/package.php?p=golang-github-creack-goselect&suite=sid.
But I found that there is a lack of loong64 support in fdset_64.go file.

If the support for loong64 is missing, many packages that depend on golang-github-creack-goselect will fail to build, for example, Compiling the pat failed for loong64 in the Debian Package Auto-Building environment.
The build error log is as follows,
```
# github.com/creack/goselect
src/github.com/creack/goselect/fdset.go:14:14: undefined: NFDBITS
src/github.com/creack/goselect/fdset.go:19:14: undefined: NFDBITS
src/github.com/creack/goselect/fdset.go:24:21: undefined: NFDBITS
```
The full build log can be found at https://buildd.debian.org/status/logs.php?pkg=pat&ver=0.15.1-2&arch=loong64.

Please consider the patch I attached for golang-github-creack-goselect source package. The loong64 was supported in goselect upstream, please check https://github.com/creack/goselect/pull/20/files. I have built golang-github-creack-goselect package successfully on my local ENV.

Could you add loong64 support in the next upload?

Thanks,
Dandan Zhang

Description: Add loong64 support 
Last-Update: 2024-06-26

--- golang-github-creack-goselect-0.1.2.orig/fdset_64.go
+++ golang-github-creack-goselect-0.1.2/fdset_64.go
@@ -1,5 +1,5 @@
 // +build !darwin,!netbsd,!openbsd
-// +build amd64 arm64 ppc64le mips64 mips64le s390x riscv64
+// +build amd64 arm64 ppc64le mips64 mips64le s390x riscv64 loong64
 
 package goselect
 

Reply via email to