[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
44/172: gnu: go-github-com-ipfs-go-ds-badger: Fix build.
From: |
guix-commits |
Subject: |
44/172: gnu: go-github-com-ipfs-go-ds-badger: Fix build. |
Date: |
Sat, 9 Nov 2024 16:44:51 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit 9d093bc60172ff6a89d54e8fd87677cd5fccd338
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sat Sep 14 21:30:49 2024 +0100
gnu: go-github-com-ipfs-go-ds-badger: Fix build.
* gnu/packages/ipfs.scm (go-github-com-ipfs-go-ds-badger): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.
Change-Id: I78f43ec2598ab6644e4be0d4d0c2fec665f2551b
---
gnu/packages/ipfs.scm | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 988a565e03..706015b633 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -354,7 +354,27 @@ throughout its lifetime.")
(list
;; XXX: Tests time out, figure out workaround.
#:tests? #f
- #:import-path "github.com/ipfs/go-ds-badger"))
+ #:import-path "github.com/ipfs/go-ds-badger"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; 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 _
+ (for-each (lambda (file)
+ (let ((file-store-path (readlink file)))
+ (delete-file file)
+ (copy-recursively file-store-path file)))
+ (find-files "src" ".*(editions_defaults.binpb)$")))))))
(propagated-inputs
(list go-github-com-dgraph-io-badger
go-github-com-ipfs-go-datastore
- 36/172: gnu: go-github-com-golang-groupcache: Fix indentation., (continued)
- 36/172: gnu: go-github-com-golang-groupcache: Fix indentation., guix-commits, 2024/11/09
- 29/172: gnu: go-golang-org-x-text: Update to 0.18.0., guix-commits, 2024/11/09
- 23/172: gnu: packages/golang-crypto: Apply #:subdir parameter., guix-commits, 2024/11/09
- 31/172: gnu: go-golang-org-x-xerrors: Fix indentation., guix-commits, 2024/11/09
- 24/172: gnu: go-golang-org-x-image: Update to 0.20.0., guix-commits, 2024/11/09
- 38/172: gnu: go-github-com-libp2p-go-msgio: Fix build., guix-commits, 2024/11/09
- 25/172: gnu: go-golang-org-x-mod: Update to 0.21.0., guix-commits, 2024/11/09
- 42/172: gnu: go-github-com-prometheus-exporter-toolkit: Fix build., guix-commits, 2024/11/09
- 46/172: gnu: kubo: Fix build., guix-commits, 2024/11/09
- 52/172: gnu: go-mvdan-cc-xurls: Rename variable., guix-commits, 2024/11/09
- 44/172: gnu: go-github-com-ipfs-go-ds-badger: Fix build.,
guix-commits <=
- 51/172: gnu: go-github-com-google-go-cmdtest: Fix indentation, guix-commits, 2024/11/09
- 56/172: gnu: go-golang-org-x-vuln: Move to golang-build., guix-commits, 2024/11/09
- 64/172: gnu: go-github-com-google-go-querystring: Move to golang-web., guix-commits, 2024/11/09
- 60/172: gnu: go-github-com-sergi-go-diff: Update to 1.3.1., guix-commits, 2024/11/09
- 61/172: gnu: go-golang-org-x-crypto: Update to 0.27.0., guix-commits, 2024/11/09
- 66/172: gnu: go-github-com-google-goterm: Fix indentation., guix-commits, 2024/11/09
- 68/172: gnu: go-github-com-tomnomnom-gron: Improve package style., guix-commits, 2024/11/09
- 85/172: gnu: go-github-com-go-git-go-billy: Update to 5.5.0., guix-commits, 2024/11/09
- 79/172: gnu: go-github-com-go-logr-logr: Update to 1.4.2., guix-commits, 2024/11/09
- 74/172: gnu: go-github-com-google-btree: Move to golang-build., guix-commits, 2024/11/09