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

* gnu/packages/ruby.scm (ruby-puma) [arguments]: Add delete-mkmf.log phase.
This commit is contained in:
Maxim Cournoyer 2023-03-30 17:18:39 -04:00
parent e457f01a31
commit 4817758655
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -11595,6 +11595,12 @@ (define-public ruby-puma
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "bundle" "exec" "rake" "test")))) (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 (add-before 'check 'disable-problematic-tests
(lambda _ (lambda _
(let-syntax ((skip-tests (let-syntax ((skip-tests