[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
45/169: gnu: go-github-com-libp2p-go-libp2p: Fix build.
From: |
guix-commits |
Subject: |
45/169: gnu: go-github-com-libp2p-go-libp2p: Fix build. |
Date: |
Thu, 26 Sep 2024 09:25:38 -0400 (EDT) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 2b70dd7d7e2fdf3b6036a348c7af8cb103c73bf7
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sat Sep 14 21:46:53 2024 +0100
gnu: go-github-com-libp2p-go-libp2p: Fix build.
* gnu/packages/ipfs.scm (go-github-com-libp2p-go-libp2p): Fix build.
[arguments]: <#:phases>: Swap 'fix-embed-go-libp2p-asm-util with
'fix-embed-files, which implements generalized solution to fix embed
files issue.
Change-Id: Ic20c0c2855d8add4e80e33cd617f05bd90f56628
---
gnu/packages/ipfs.scm | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index fbccf99699..25ef38ff37 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -888,15 +888,27 @@ their levels to be controlled individually.")
#:import-path "github.com/libp2p/go-libp2p"
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'fix-embed-go-libp2p-asn-util
+ ;; TODO: Implement it in go-build-system.
+ ;;
+ ;; This happens due to Golang can't determine the valid directory of
+ ;; the module of embed file which is symlinked during setup
+ ;; environment phase, but easy resolved after coping file from the
+ ;; store to the build directory of the current package, see details
+ ;; in Golang source:
+ ;;
+ ;; - URL: <https://github.com/golang/go/blob/>
+ ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
+ ;; - file: src/cmd/go/internal/load/pkg.go#L2059
+ (add-after 'unpack 'fix-embed-files
(lambda _
- (delete-file
-
"src/github.com/libp2p/go-libp2p-asn-util/sorted-network-list.bin")
- (copy-file
- (string-append
- #$(this-package-input
"go-github-com-libp2p-go-libp2p-asn-util")
-
"/src/github.com/libp2p/go-libp2p-asn-util/sorted-network-list.bin")
-
"src/github.com/libp2p/go-libp2p-asn-util/sorted-network-list.bin"))))))
+ (for-each
+ (lambda (file)
+ (let ((file-store-path (readlink file)))
+ (delete-file file)
+ (copy-recursively file-store-path file)))
+ (find-files "src" (string-append
+ ".*(editions_defaults.binpb"
+ "|sorted-network-list.bin)$"))))))))
(propagated-inputs
(list go-github-com-benbjohnson-clock
go-github-com-davidlazar-go-crypto
- 38/169: gnu: go-github-com-libp2p-go-msgio: Fix build., (continued)
- 38/169: gnu: go-github-com-libp2p-go-msgio: Fix build., guix-commits, 2024/09/26
- 22/169: import/go: Add diagnostics., guix-commits, 2024/09/26
- 19/169: gnu: go-1.20: Build with gccgo-12 on some systems., guix-commits, 2024/09/26
- 42/169: gnu: go-github-com-prometheus-exporter-toolkit: Fix build., guix-commits, 2024/09/26
- 34/169: gnu: go-google-golang-org-protobuf: Enable all tests, guix-commits, 2024/09/26
- 16/169: import/go: Add comment about monorepo., guix-commits, 2024/09/26
- 30/169: gnu: go-golang-org-x-xerrors: Update to 0.0.0-20200804184101-5ec99f83aff1., guix-commits, 2024/09/26
- 26/169: gnu: go-golang-org-x-net: Update to 0.29.0., guix-commits, 2024/09/26
- 33/169: gnu: go-github-com-golang-protobuf: Update to 1.5.4., guix-commits, 2024/09/26
- 24/169: gnu: go-golang-org-x-image: Update to 0.20.0., guix-commits, 2024/09/26
- 45/169: gnu: go-github-com-libp2p-go-libp2p: Fix build.,
guix-commits <=
- 51/169: gnu: go-github-com-google-go-cmdtest: Fix indentation, guix-commits, 2024/09/26
- 58/169: gnu: gopls: Update to 0.16.2., guix-commits, 2024/09/26
- 61/169: gnu: go-golang-org-x-crypto: Update to 0.27.0., guix-commits, 2024/09/26
- 63/169: gnu: go-github-com-google-go-querystring: Fix indentation., guix-commits, 2024/09/26
- 66/169: gnu: go-github-com-google-goterm: Fix indentation., guix-commits, 2024/09/26
- 75/169: gnu: go-github-com-google-gopacket: Move to golang-web., guix-commits, 2024/09/26
- 67/169: gnu: go-github-com-google-goterm: Move to golang-xyz., guix-commits, 2024/09/26
- 84/169: gnu: Add go-github-com-cyphar-filepath-securejoin., guix-commits, 2024/09/26
- 68/169: gnu: go-github-com-tomnomnom-gron: Improve package style., guix-commits, 2024/09/26
- 18/169: gnu: go-1.23: Update to 1.23.1., guix-commits, 2024/09/26