From d096b7d67d91f26266252a903dc30ec79661227e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Thu, 26 Mar 2015 17:13:01 +0100 Subject: [PATCH] dtrace does not appear in RbConfig anymore :(. --- ruby.spec | 5 ----- test_systemtap.rb | 9 --------- 2 files changed, 14 deletions(-) delete mode 100644 test_systemtap.rb diff --git a/ruby.spec b/ruby.spec index 70620d5..1094289 100644 --- a/ruby.spec +++ b/ruby.spec @@ -84,8 +84,6 @@ Source7: config.h Source8: rubygems.attr Source9: rubygems.req Source10: rubygems.prov -# SystemTap sanity test case. -Source11: test_systemtap.rb # The load directive is supported since RPM 4.12, i.e. F21+. The build process # fails on older Fedoras. @@ -582,9 +580,6 @@ sed -e "s|@LIBRARY_PATH@|%{tapset_libdir}/libruby.so.%{major_minor_version}|" \ sed -i -r "s|( \*.*\*)\/(.*)|\1\\\/\2|" %{buildroot}%{tapset_dir}/libruby.so.%{major_minor_version}.stp %check -# Sanity check that SystemTap (dtrace) was detected. -make runruby TESTRUN_SCRIPT=%{SOURCE11} - DISABLE_TESTS="" # test_debug(TestRubyOptions) fails due to LoadError reported in debug mode, diff --git a/test_systemtap.rb b/test_systemtap.rb deleted file mode 100644 index aa8df4e..0000000 --- a/test_systemtap.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'rbconfig' - -if RbConfig::CONFIG.select {|k, v| v =~ /dtrace/}.size == 1 - exit true -else - puts 'ERROR: SystemTap (dtrace) support was not detected.' - - exit false -end