Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-86248

ruby FTBFS

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Normal Normal
    • rhel-10.1
    • CentOS Stream 10
    • systemtap
    • None
    • Yes
    • None
    • rhel-pt-perf-tools
    • ssg_platform_tools
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      What were you trying to do that didn't work?

       

      Trying to rebuild ruby-3.3.7-9.el10 in mock

      What is the impact of this issue to you?

       

      ruby testsuite fails

      Please provide the package NVR for which the bug is seen:

       

      3.3.7-9.el10

      How reproducible is this bug?:

      Always after systemtap-5.2-2.el10 update.

      Steps to reproduce

      1.  try to build ruby-3.3.7-9.el10 in mock

      Expected results

       

      successful build

       

      Actual results

       

      Test failure:

       

      + make -C redhat-linux-build runruby TESTRUN_SCRIPT=/builddir/build/SOURCES/test_systemtap.rb
      make: Entering directory '/builddir/build/BUILD/ruby-3.3.7/redhat-linux-build'
      RUBY_ON_BUG='gdb -x /builddir/build/BUILD/ruby-3.3.7/.gdbinit -p' ./miniruby -I/builddir/build/BUILD/ruby-3.3.7/lib -I. -I.ext/common  /builddir/build/BUILD/ruby-3.3.7/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:1386: runruby] Error 1

      Reason for this is change in systemtap-5.2-2.el10 which added /usr/bin/dtrace to systemtap-std-devel package. Fix is quite simple, change dtrace build dependency to actual package:

       

      diff --git a/ruby.spec b/ruby.spec
      index e2256f0..cd02771 100644
      --- a/ruby.spec
      +++ b/ruby.spec
      @@ -301,8 +301,8 @@ BuildRequires: libyaml-devel
       BuildRequires: openssl-devel
       BuildRequires: zlib-devel
       %{?with_gmp:BuildRequires: gmp-devel}
      -%{?with_systemtap:BuildRequires: %{_bindir}/dtrace}
       %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
      +%{?with_systemtap:BuildRequires: systemtap-sdt-dtrace}
       %{?with_yjit:BuildRequires: %{_bindir}/rustc}
       
       # Install section

        1. build.log.gz
          60 kB
        2. installed_pkgs.log.gz
          10 kB
        3. root.log.gz
          24 kB

              rhtorsys Frank Eigler
              bleve Tuomo Soini (Inactive)
              Frank Eigler Frank Eigler
              Martin Cermak Martin Cermak
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: