[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: ruby-ae: Fix build failure with address@hidden
From: |
Marius Bakke |
Subject: |
02/02: gnu: ruby-ae: Fix build failure with address@hidden |
Date: |
Sun, 4 Jun 2017 16:56:05 -0400 (EDT) |
mbakke pushed a commit to branch staging
in repository guix.
commit de6f6efd737e941aa7d6f77032525ea757b2909d
Author: Marius Bakke <address@hidden>
Date: Sun Jun 4 22:54:40 2017 +0200
gnu: ruby-ae: Fix build failure with address@hidden
* gnu/packages/ruby.scm (ruby-ae)[arguments]<#:phases>: Add
'replace-broken-symlink'.
---
gnu/packages/ruby.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 8681881..6691095 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3788,7 +3788,19 @@ requirement specifications systems like Cucumber.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda _ (zero? (system* "qed")))))))
+ (lambda _ (zero? (system* "qed"))))
+ (add-before 'validate-runpath 'replace-broken-symlink
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (file (string-append out "/lib/ruby/gems/"
+ ,(package-version ruby)
+ "/gems/ae-" ,version
+ "/lib/ae.yml")))
+ ;; XXX: This symlink is broken since ruby 2.4.
+ ;;
https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
+ (delete-file file)
+ (symlink "../.index" file)
+ #t))))))
(propagated-inputs
`(("ruby-ansi" ,ruby-ansi)))
(native-inputs