[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: gnu: racket: Fix out-of-source build.
From: |
guix-commits |
Subject: |
02/10: gnu: racket: Fix out-of-source build. |
Date: |
Thu, 12 May 2022 06:30:29 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 544fbdcc9e092fd03663d649a199060ea278a658
Author: Philip McGrath <philip@philipmcgrath.com>
AuthorDate: Mon May 9 02:02:43 2022 -0400
gnu: racket: Fix out-of-source build.
* gnu/packages/racket.scm (racket-vm-cgc)[arguments]: Supply
'#:out-of-source? #t'. Wrap 'install-license-files' to work around
limitation.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/racket.scm | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/racket.scm b/gnu/packages/racket.scm
index c6f8ec20ba..e593f64c21 100644
--- a/gnu/packages/racket.scm
+++ b/gnu/packages/racket.scm
@@ -276,8 +276,9 @@
;; main-distribution-test that aren't part of the main
;; distribution.
#:tests? #f
- ;; Upstream recommends #:out-of-source?, and it does
- ;; help with debugging, but it confuses `install-license-files`.
+ ;; Upstream recommends #:out-of-source?, and it
+ ;; helps a lot with debugging.
+ #:out-of-source? #t
#:modules '((ice-9 match)
(ice-9 regex)
(guix build gnu-build-system)
@@ -314,7 +315,18 @@
#f)))))))
(add-before 'configure 'chdir
(lambda _
- (chdir "racket/src"))))))
+ (chdir "racket/src")))
+ (replace 'install-license-files
+ ;; The #:out-of-source? mode for install-license-files fails
+ ;; to find the srcdir: as a workaround, navigate there ourselves.
+ (let ((install-license-files
+ (assoc-ref %standard-phases 'install-license-files)))
+ (lambda args
+ (with-directory-excursion "../src"
+ (apply install-license-files
+ `(,@args
+ ;; if there are duplicate keywords, last is used
+ #:out-of-source? #f)))))))))
(home-page "https://racket-lang.org")
(synopsis "Old Racket implementation used for bootstrapping")
(description "This variant of the Racket BC (``before Chez'' or
- branch master updated (8980f6c532 -> 0b4300d4fd), guix-commits, 2022/05/12
- 07/10: gnu: chez-upstream-features-for-system: Improve implementation., guix-commits, 2022/05/12
- 02/10: gnu: racket: Fix out-of-source build.,
guix-commits <=
- 09/10: gnu: chez-scheme-for-system: Adjust for bytecode backend., guix-commits, 2022/05/12
- 01/10: gnu: racket: Update to 8.5., guix-commits, 2022/05/12
- 03/10: gnu: chez-scheme: Update to 9.5.8., guix-commits, 2022/05/12
- 05/10: gnu: chez-scheme: Refactor configure phase and fix '--threads'., guix-commits, 2022/05/12
- 04/10: gnu: chez-scheme: Refactor documentation phases., guix-commits, 2022/05/12
- 08/10: gnu: chez-scheme-for-racket: Fix supported systems., guix-commits, 2022/05/12
- 06/10: gnu: stex: Get machine type dynamically., guix-commits, 2022/05/12
- 10/10: gnu: commencement: Remove redundant import., guix-commits, 2022/05/12