aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/ruby.scm
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2017-06-04 22:54:40 +0200
committerMarius Bakke <mbakke@fastmail.com>2017-06-04 22:54:40 +0200
commitde6f6efd737e941aa7d6f77032525ea757b2909d (patch)
tree98c8231de03eae123077f35c928f0d1c7760f6c7 /gnu/packages/ruby.scm
parent0899352f970b321c22ff971bb674cb4a131587c9 (diff)
downloadpatches-de6f6efd737e941aa7d6f77032525ea757b2909d.tar
patches-de6f6efd737e941aa7d6f77032525ea757b2909d.tar.gz
gnu: ruby-ae: Fix build failure with ruby@2.4.0.
* gnu/packages/ruby.scm (ruby-ae)[arguments]<#:phases>: Add 'replace-broken-symlink'.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r--gnu/packages/ruby.scm14
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 868188119c..6691095e55 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