[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
120/169: gnu: miniflux: Fix build.
From: |
guix-commits |
Subject: |
120/169: gnu: miniflux: Fix build. |
Date: |
Thu, 26 Sep 2024 06:42:58 -0400 (EDT) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit fa49cd2840c710f862828c0360971fa62c064d94
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Mon Sep 16 10:58:25 2024 +0100
gnu: miniflux: Fix build.
Fix the build as senn in <https://ci.guix.gnu.org/build/5804243/log/raw>.
* gnu/packages/web.scm (miniflux): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.
Change-Id: If266fa82e0e810e340a3c69c80edbacddd6bcefa
---
gnu/packages/web.scm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 5d8f043355..5be742ee21 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -367,6 +367,24 @@ and its related documentation.")
#$version))
#: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)$"))))
;; XXX: Replace when go-build-system supports nested path.
(replace 'check
(lambda* (#:key import-path tests? #:allow-other-keys)
- 63/169: gnu: go-github-com-google-go-querystring: Fix indentation., (continued)
- 63/169: gnu: go-github-com-google-go-querystring: Fix indentation., guix-commits, 2024/09/26
- 64/169: gnu: go-github-com-google-go-querystring: Move to golang-web., guix-commits, 2024/09/26
- 81/169: gnu: go-github-com-go-git-go-git-fixtures: Rename variable., guix-commits, 2024/09/26
- 87/169: gnu: go-github-com-go-git-go-billy-v5: Move to golang-xyz., guix-commits, 2024/09/26
- 82/169: gnu: go-github-com-go-git-go-git-fixtures-v4: Keep all phases., guix-commits, 2024/09/26
- 88/169: gnu: go-github-go-git: Rename variable., guix-commits, 2024/09/26
- 90/169: gnu: Add go-github-com-bmatcuk-doublestar-v3., guix-commits, 2024/09/26
- 102/169: gnu: Add go-github-com-datadog-datadog-go-v5., guix-commits, 2024/09/26
- 105/169: gnu: Add go-github-com-circonus-labs-circonus-gometrics., guix-commits, 2024/09/26
- 110/169: gnu: Add go-github-com-xlab-treeprint., guix-commits, 2024/09/26
- 120/169: gnu: miniflux: Fix build.,
guix-commits <=
- 117/169: guix: Add copyright records., guix-commits, 2024/09/26
- 127/169: gnu: go-github-com-aws-smithy-go: Update to 1.21.0., guix-commits, 2024/09/26
- 146/169: gnu: Add go-github-com-prometheus-community-pro-bing., guix-commits, 2024/09/26
- 160/169: gnu: go-github-com-fsnotify-fsnotify: Move to golang-xyz., guix-commits, 2024/09/26
- 157/169: gnu: packages/high-availability: Remove golang module., guix-commits, 2024/09/26
- 03/169: gnu: Remove go-github-com-niemeyer-pretty., guix-commits, 2024/09/26
- 05/169: gnu: go-github-com-gogs-chardet: Move to golang-xyz., guix-commits, 2024/09/26
- 42/169: gnu: go-github-com-prometheus-exporter-toolkit: Fix build., guix-commits, 2024/09/26
- 25/169: gnu: go-golang-org-x-mod: Update to 0.21.0., guix-commits, 2024/09/26
- 26/169: gnu: go-golang-org-x-net: Update to 0.29.0., guix-commits, 2024/09/26