[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
119/172: gnu: soju: Fix build.
From: |
guix-commits |
Subject: |
119/172: gnu: soju: Fix build. |
Date: |
Tue, 5 Nov 2024 16:05:06 -0500 (EST) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit b526c556d79ccae46a520ffeb75f12dcf2ea3a1d
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Mon Sep 16 10:55:21 2024 +0100
gnu: soju: Fix build.
Fix the build as seen in <https://ci.guix.gnu.org/build/5804515/log/raw>.
* gnu/packages/irc.scm (soju): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.
Change-Id: I8d1bddc335ab838127111f70dbc64528aa3dc4ff
---
gnu/packages/irc.scm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
index 51bd43869e..e75432673e 100644
--- a/gnu/packages/irc.scm
+++ b/gnu/packages/irc.scm
@@ -1160,6 +1160,24 @@ what.")
#:import-path "codeberg.org/emersion/soju"
#: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)$"))))
(add-after 'unpack 'adjust-makefile
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
- 81/172: gnu: go-github-com-go-git-go-git-fixtures: Rename variable., (continued)
- 81/172: gnu: go-github-com-go-git-go-git-fixtures: Rename variable., guix-commits, 2024/11/05
- 86/172: gnu: go-github-com-go-git-go-billy: Rename variable., guix-commits, 2024/11/05
- 91/172: gnu: Add go-github-com-rs-xid., guix-commits, 2024/11/05
- 98/172: gnu: Add go-github-com-go-openapi-runtime., guix-commits, 2024/11/05
- 105/172: gnu: Add go-github-com-circonus-labs-circonus-gometrics., guix-commits, 2024/11/05
- 110/172: gnu: Add go-github-com-xlab-treeprint., guix-commits, 2024/11/05
- 114/172: gnu: Add go-github-com-philhofer-fwd., guix-commits, 2024/11/05
- 113/172: gnu: Add go-github-com-pquerna-ffjson., guix-commits, 2024/11/05
- 112/172: gnu: Add go-github-com-dgryski-go-ddmin., guix-commits, 2024/11/05
- 118/172: gnu: go-github-com-prometheus-common-sigv4: Update to 0.1.0, fix build., guix-commits, 2024/11/05
- 119/172: gnu: soju: Fix build.,
guix-commits <=
- 125/172: build/go: Replace symlinks with a copy of the file., guix-commits, 2024/11/05
- 129/172: gnu: Add go-github-com-workiva-go-datastructures., guix-commits, 2024/11/05
- 131/172: gnu: go-github-com-aead-chacha20: Update to 0.0.0-20180709150244-8b13a72661da., guix-commits, 2024/11/05
- 133/172: gnu: go-github-com-shadowsocks-go-shadowsocks2: Update to 0.1.5., guix-commits, 2024/11/05
- 139/172: gnu: Add go-github-com-smarty-assertions., guix-commits, 2024/11/05
- 05/172: gnu: go-github-com-gogs-chardet: Move to golang-xyz., guix-commits, 2024/11/05
- 10/172: gnu: go-github-com-operatorfoundation-monolith-go: Update to 1.0.10., guix-commits, 2024/11/05
- 14/172: gnu: Remove go-github-com-rylans-getlang., guix-commits, 2024/11/05
- 07/172: gnu: go-github-com-jaytaylor-html2text: Enable tests., guix-commits, 2024/11/05
- 06/172: gnu: go-github-com-jaytaylor-html2text: Update to 0.0.0-20230321000545-74c2419ad056., guix-commits, 2024/11/05