[pkg-go] Bug#1085195: golang-github-jacobsa-crypto: Add loong64 support to cmac/hash_64bit.go

zhangdandan zhangdandan at loongson.cn
Wed Oct 16 09:00:09 BST 2024


Source: golang-github-jacobsa-crypto
Version: 0.0~git20190317.9f44e2d+dfsg1-4
Severity: normal
Tags: patch
User: debian-loongarch at lists.debian.org
Usertags: loong64

Hi maintainers,

The golang-github-jacobsa-crypto package is used for arch=all arch.
But I found that there is a lack of loong64 support in 
cmac/hash_64bit.go file.

If the support for loong64 is missing in golang-github-jacobsa-crypto 
source package, many packages that depend on 
golang-github-jacobsa-crypto-dev will fail to build. For example,
Compiling the gocryptfs failed for loong64 in the Debian Package 
Auto-Building environment.
Build failed 7 times.
The build error log is as follows,
```
# github.com/jacobsa/crypto/cmac
src/github.com/jacobsa/crypto/cmac/hash.go:97:3: undefined: xorBlock
```
The full build log can be found at
https://buildd.debian.org/status/logs.php?pkg=gocryptfs&ver=2.4.0-1&arch=loong64.

Please consider the patch I attached for golang-github-jacobsa-crypto 
source package.
I have built golang-github-jacobsa-crypto package successfully on my 
local ENV.
Based on my local golang-github-jacobsa-crypto-dev binary package, 
gocryptfs was built successfully, too.

Could you add loong64 support in the next upload?

Best regards,
Dandan Zhang

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-golang-github-jacobsa-crypto-add-loong64-support.patch
Type: text/x-patch
Size: 1080 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-go-maintainers/attachments/20241016/a92f78a8/attachment.bin>


More information about the Pkg-go-maintainers mailing list