Source: riseup-vpn
Version: 0.24.10+ds1-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: loong64
Dear maintainers,
Compiling the riseup-vpn failed for loong64 in the Debian Package
Auto-Building environment.
The error log is as follows,
```
# github.com/refraction-networking/utls/cpu
../../../github.com/refraction-networking/utls/cpu/cpu_loong64.go:10:7:
CacheLineSize redeclared in this block
../../../github.com/refraction-networking/utls/cpu/cpu.go:20:5: other
declaration of CacheLineSize
../../../github.com/refraction-networking/utls/cpu/cpu.go:15:30:
undefined array length CacheLinePadSize or missing type constraint
../../../github.com/refraction-networking/utls/cpu/cpu.go:20:29:
undefined: CacheLinePadSize
../../../github.com/refraction-networking/utls/cpu/cpu.go:123:2:
undefined: doinit
.......
```
The full build log can be found at
https://buildd.debian.org/status/fetch.php?pkg=riseup-vpn&arch=loong64&ver=0.24.10%2Bds1-1&stamp=1740475439&raw=0.
After analyzing, I checked that we need to update loong64 support in
golang-refraction-networking-utls-dev(build-depends).
Please consider the patch I attached for
golang-refraction-networking-utls source packgage.
Based on the attached patch, golang-refraction-networking-utls
(1.2.1-3+loong64) was built successfully on local ENV.
And then, based on
golang-refraction-networking-utls-dev_1.2.1-3+loong64_all.deb, I have
built riseup-vpn normally.
Please update loong64 support in the depend of
golang-refraction-networking-utls(which is a build dependency of
riseup-vpn).
Best regards,
Dandan Zhang
Description: Update loong64 support
.
golang-refraction-networking-utls (1.2.1-3+loong64) unstable; urgency=medium
.
* Update loong64 support.
Author: Dandan Zhang <[email protected]>
---
Last-Update: 2025-03-03
--- golang-refraction-networking-utls-1.2.1.orig/cpu/cpu_loong64.go
+++ golang-refraction-networking-utls-1.2.1/cpu/cpu_loong64.go
@@ -1,13 +1,10 @@
-// Copyright 2022 The Go Authors. All rights reserved.
+// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build loong64
-// +build loong64
-
package cpu
-const CacheLineSize = 64
+const CacheLinePadSize = 64
-func initOptions() {
+func doinit() {
}