guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: ruby-puma: Do not install mkmf.log file.


From: guix-commits
Subject: 01/03: gnu: ruby-puma: Do not install mkmf.log file.
Date: Thu, 30 Mar 2023 17:37:26 -0400 (EDT)

apteryx pushed a commit to branch staging
in repository guix.

commit 4817758655db9ac1689b09efb86ff89cef02f991
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Mar 30 17:18:39 2023 -0400

    gnu: ruby-puma: Do not install mkmf.log file.
    
    * gnu/packages/ruby.scm (ruby-puma) [arguments]: Add delete-mkmf.log phase.
---
 gnu/packages/ruby.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 6bf248f829..7871d09966 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11595,6 +11595,12 @@ part of the Prawn PDF generator.")
             (lambda* (#:key tests? #:allow-other-keys)
               (when tests?
                 (invoke "bundle" "exec" "rake" "test"))))
+          (add-after 'install 'delete-mkmf.log
+            (lambda _
+              ;; Rubygems installs build log files that embed volatile file
+              ;; names (see:
+              ;; https://github.com/rubygems/rubygems/issues/6259).
+              (for-each delete-file (find-files #$output "^mkmf\\.log$"))))
           (add-before 'check 'disable-problematic-tests
             (lambda _
               (let-syntax ((skip-tests



reply via email to

[Prev in Thread] Current Thread [Next in Thread]