From dece908603f575c028dbded3e2ff332cfd024581 Mon Sep 17 00:00:00 2001 From: Huang Yang Date: Mon, 1 Sep 2025 10:31:13 +0800 Subject: [PATCH] add loongarch64 support --- 0001-goselect-0.1.2-add-loong64.patch | 23 +++++++++++++++++++++++ golang-github-creack-goselect.spec | 7 ++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 0001-goselect-0.1.2-add-loong64.patch diff --git a/0001-goselect-0.1.2-add-loong64.patch b/0001-goselect-0.1.2-add-loong64.patch new file mode 100644 index 0000000..a44a36c --- /dev/null +++ b/0001-goselect-0.1.2-add-loong64.patch @@ -0,0 +1,23 @@ +From 87f825182f0bacc027932ca8eefa5e945c7d5c7d Mon Sep 17 00:00:00 2001 +From: Huang Yang +Date: Mon, 1 Sep 2025 10:26:53 +0800 +Subject: [PATCH] goselect 0.1.2 add loong64 + +--- + fdset_64.go | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/fdset_64.go b/fdset_64.go +index 142023b..7243568 100644 +--- a/fdset_64.go ++++ b/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 + +-- +2.43.7 + diff --git a/golang-github-creack-goselect.spec b/golang-github-creack-goselect.spec index bff2837..caa5bc6 100644 --- a/golang-github-creack-goselect.spec +++ b/golang-github-creack-goselect.spec @@ -12,13 +12,14 @@ Select(2) implementation in Go.} %global godocs example README.md Name: %{goname} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Select(2) implementation in Go License: MIT URL: %{gourl} Source0: %{gosource} Patch0001: https://github.com/creack/goselect/pull/18.patch +Patch3000: 0001-goselect-0.1.2-add-loong64.patch %description %{common_description} @@ -40,6 +41,10 @@ Patch0001: https://github.com/creack/goselect/pull/18.patch %gopkgfiles %changelog +* Mon Sep 01 2025 Huang Yang - 0.1.2-3 +- [Type] bugfix +- [DESC] add loong64 support + * Sat Jun 07 2025 bbrucezhang - 0.1.2-2 - Rebuilt for loongarch64 -- Gitee