From 5a2ccecdb9a2f7d4a4524f40b94b74391b94e883 Mon Sep 17 00:00:00 2001 From: Jarek Prokop Date: Tue, 15 Apr 2025 17:09:51 +0200 Subject: [PATCH] Add the systemtap-sdt-devel dependency. Recently systemtap package in RHEL 9 decided to split the `dtrace` binary and the build-time required header since: https://gitlab.com/redhat/centos-stream/rpms/systemtap/-/commit/56e7eb32b2d1b38b3f3d8919194f006412259d95 So to acquire the header AND the dtrace binary that we require, we need to BuildRequire `systemtap-sdt-devel` in addition to `%{_bindir}/dtrace` since they are provided by separate packages. Fixes: ``` ./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems /builddir/build/SOURCES/test_systemtap.rb ERROR: SystemTap (DTrace) headers were not detected in resulting library. make: *** [uncommon.mk:1214: runruby] Error 1 ``` See also the commit upstream in Fedora for further reference: https://src.fedoraproject.org/rpms/ruby/c/d03ac3403a673a9be541f95579f2fb55a145eaf7 Related: RHEL-86130 --- ruby.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/ruby.spec b/ruby.spec index 0b7cde0..5b13a94 100644 --- a/ruby.spec +++ b/ruby.spec @@ -355,6 +355,7 @@ BuildRequires: readline-devel # Needed to pass test_set_program_name(TestRubyOptions) BuildRequires: procps %{?with_systemtap:BuildRequires: %{_bindir}/dtrace} +%{?with_systemtap:BuildRequires: systemtap-sdt-devel} # RubyGems test suite optional dependencies. %{?with_git:BuildRequires: git} %{?with_cmake:BuildRequires: %{_bindir}/cmake}