[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
45/172: gnu: go-github-com-libp2p-go-libp2p: Fix build.
From: |
guix-commits |
Subject: |
45/172: gnu: go-github-com-libp2p-go-libp2p: Fix build. |
Date: |
Sat, 9 Nov 2024 16:44:51 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit e703f973eb12144f6f7dccdc4c707053ad69d0dc
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 706015b633..3c3604902b 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -857,15 +857,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
- 39/172: gnu: go-github-com-dgraph-io-badger: Fix build., (continued)
- 39/172: gnu: go-github-com-dgraph-io-badger: Fix build., guix-commits, 2024/11/09
- 37/172: gnu: go-github-com-golang-groupcache: Fix build., guix-commits, 2024/11/09
- 41/172: gnu: go-github-com-prometheus-client-golang: Fix build., guix-commits, 2024/11/09
- 32/172: gnu: go-google-golang-org-protobuf: Update to 1.34.2., guix-commits, 2024/11/09
- 33/172: gnu: go-github-com-golang-protobuf: Update to 1.5.4., guix-commits, 2024/11/09
- 34/172: gnu: go-google-golang-org-protobuf: Enable all tests, guix-commits, 2024/11/09
- 27/172: gnu: go-golang-org-x-sys: Update to 0.25.0., guix-commits, 2024/11/09
- 43/172: gnu: go-github-com-prometheus-statsd-exporter: Fix build., guix-commits, 2024/11/09
- 28/172: gnu: go-golang-org-x-term: Update to 0.24.0., guix-commits, 2024/11/09
- 30/172: gnu: go-golang-org-x-xerrors: Update to 0.0.0-20200804184101-5ec99f83aff1., guix-commits, 2024/11/09
- 45/172: gnu: go-github-com-libp2p-go-libp2p: Fix build.,
guix-commits <=
- 53/172: gnu: go-github-com-google-renameio: Move to golang-build., guix-commits, 2024/11/09
- 49/172: gnu: Add go-golang-org-x-telemetry-config., guix-commits, 2024/11/09
- 54/172: gnu: go-github-com-google-go-cmdtest: Move to golang-build., guix-commits, 2024/11/09
- 50/172: gnu: go-github-com-google-go-cmdtest: Update to 0.4.0., guix-commits, 2024/11/09
- 47/172: gnu: go-golang-org-x-tools: Update to 0.25.0., guix-commits, 2024/11/09
- 48/172: gnu: Add go-golang-org-x-telemetry., guix-commits, 2024/11/09
- 55/172: gnu: go-golang-org-x-vuln: Update to 1.1.3., guix-commits, 2024/11/09
- 58/172: gnu: gopls: Update to 0.16.2., guix-commits, 2024/11/09
- 63/172: gnu: go-github-com-google-go-querystring: Fix indentation., guix-commits, 2024/11/09
- 59/172: gnu: Remove go-github-com-jba-printsrc., guix-commits, 2024/11/09