Bug 1502944 - ruby: A macro to remove systemtap
Summary: ruby: A macro to remove systemtap
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ruby
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jun Aruga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-17 06:23 UTC by Jun Aruga
Modified: 2017-10-20 10:18 UTC (History)
7 users (show)

Fixed In Version: ruby-2.4.2-85.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-20 10:18:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jun Aruga 2017-10-17 06:23:37 UTC
Description of problem:

ruby.spec (rpms/ruby) depends on systemtap as a build dependency.
From ruby module's requirement, I want to add a macro to remove systemtap dependency from the ruby.


$ rpm -qf /usr/bin/dtrace
systemtap-sdt-devel-3.1-5.fc25.x86_64


Version-Release number of selected component (if applicable):
ruby-2.4.2-85.fc28.src.rpm

Additional info:
- perl is using this kind of macro.
  https://src.fedoraproject.org/modules/perl/blob/master/f/perl.yaml#_161
  %_without_perl_enables_systemtap 1

Comment 1 Jun Aruga 2017-10-17 13:55:14 UTC
I also need macros to remove git and cmake.

> # RubyGems test suite optional dependencies.
> BuildRequires: git
> BuildRequires: %{_bindir}/cmake

Thanks.

Comment 2 Jun Aruga 2017-10-19 06:58:46 UTC
Ref. rpms/perl using %bcond and %with
https://src.fedoraproject.org/rpms/perl/blob/master/f/perl.spec

> %bcond_without perl_enables_systemtap

> %if %{with perl_enables_systemtap}
> BuildRequires:  systemtap-sdt-devel
> %endif


Note You need to log in before you can comment on or make changes to this bug.