[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
117/229: gnu: Add ruby-ruby-memcheck.
From: |
guix-commits |
Subject: |
117/229: gnu: Add ruby-ruby-memcheck. |
Date: |
Tue, 28 Mar 2023 22:29:11 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 97096c268ce3d485306a3e21d6358429a37508b8
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Mar 14 14:37:25 2023 -0400
gnu: Add ruby-ruby-memcheck.
* gnu/packages/ruby.scm (ruby-ruby-memcheck): New variable.
---
gnu/packages/ruby.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d091776159..a2ca791068 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -82,6 +82,7 @@
#:use-module (gnu packages rsync)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages tls)
+ #:use-module (gnu packages valgrind)
#:use-module (gnu packages version-control)
#:use-module (gnu packages web-browsers)
#:use-module (gnu packages serialization)
@@ -8268,6 +8269,46 @@ Profiling multiple threads simultaneously is supported.
(home-page "https://github.com/ruby-prof/ruby-prof")
(license license:bsd-2)))
+(define-public ruby-ruby-memcheck
+ (package
+ (name "ruby-ruby-memcheck")
+ (version "1.2.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Shopify/ruby_memcheck")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1sx8nhx7w4z5s5vj6kq6caqsfznswqzwca372j82cd80hf9iznra"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-valgrind-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "lib/ruby_memcheck/configuration.rb"
+ (("DEFAULT_VALGRIND = \"valgrind\"")
+ (format #f "DEFAULT_VALGRIND = ~s"
+ (search-input-file inputs "bin/valgrind"))))))
+ (add-before 'replace-git-ls-files 'standardize-git-ls-files
+ (lambda _
+ (substitute* "ruby_memcheck.gemspec"
+ (("%x\\(git ls-files -z)")
+ "`git ls-files -z`")))))))
+ (native-inputs (list ruby-rake-compiler ruby-rspec))
+ (inputs (list valgrind/interactive))
+ (propagated-inputs (list ruby-nokogiri))
+ (synopsis "Valgrind memcheck tool for Ruby")
+ (description "The @code{ruby_memcheck} gem provides a sane way to use
+Valgrind's memcheck on your native extension gem, that filters out all the
+false positives caused by Ruby not freeing all of the memory it allocates
+during shutdown.")
+ (home-page "https://github.com/Shopify/ruby_memcheck")
+ (license license:expat)))
+
(define-public ruby-memory-profiler
(package
(name "ruby-memory-profiler")
- 101/229: gnu: ruby-sawyer: Update to 0.9.2., (continued)
- 101/229: gnu: ruby-sawyer: Update to 0.9.2., guix-commits, 2023/03/28
- 102/229: gnu: ruby-pry-byebug: Avoid depending on ruby-chandler., guix-commits, 2023/03/28
- 107/229: gnu: Add ruby-faraday-multipart., guix-commits, 2023/03/28
- 109/229: gnu: Add ruby-fileutils., guix-commits, 2023/03/28
- 111/229: gnu: ruby-bandwidth-iris: Fix indentation., guix-commits, 2023/03/28
- 112/229: gnu: ruby-bandwidth-iris: Update to 7.0.0., guix-commits, 2023/03/28
- 113/229: gnu: ruby-octokit: Enable tests., guix-commits, 2023/03/28
- 114/229: gnu: Add ruby-mapping., guix-commits, 2023/03/28
- 115/229: gnu: Add ruby-fiber-local., guix-commits, 2023/03/28
- 116/229: gnu: Add ruby-console., guix-commits, 2023/03/28
- 117/229: gnu: Add ruby-ruby-memcheck.,
guix-commits <=
- 118/229: gnu: Add ruby-msgpack., guix-commits, 2023/03/28
- 119/229: gnu: Add ruby-covered., guix-commits, 2023/03/28
- 120/229: gnu: Add ruby-samovar., guix-commits, 2023/03/28
- 122/229: gnu: Add ruby-reline., guix-commits, 2023/03/28
- 123/229: gnu: Add ruby-irb., guix-commits, 2023/03/28
- 124/229: gnu: Add ruby-debug., guix-commits, 2023/03/28
- 127/229: gnu: Add ruby-bake-test., guix-commits, 2023/03/28
- 131/229: gnu: Add ruby-localhost., guix-commits, 2023/03/28
- 132/229: gnu: bundler: Update to 2.4.10., guix-commits, 2023/03/28
- 133/229: gnu: ruby-puma: Update to 6.1.1 and enable test suite., guix-commits, 2023/03/28