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 00d84146f3
commit 5c3727ff07
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -11572,6 +11572,12 @@ (define-public ruby-puma
(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