Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1505427

Summary: Ruby-SDK build requires redhat-rpm-config which is not listed in requirements
Product: [oVirt] ovirt-engine-sdk-ruby Reporter: Radim Hrazdil <rhrazdil>
Component: BuildAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Radim Hrazdil <rhrazdil>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.9CC: bugs, rhrazdil
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 10:44:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Radim Hrazdil 2017-10-23 14:41:19 UTC
Description of problem:
Build of Ruby SDK requires package redhat-rpm-config to be installed, but it is not listed in requirements in the SDK README.adoc.


Version-Release number of selected component (if applicable):
ovirt-engine-sdk-ruby-4.1.9 

How reproducible:
100%

Steps to Reproduce:
1. redhat-rpm-config not installed 
2. run: mvn package

Actual results:
build fails.

Expected results:
build should succeed.

Additional info:
Discovered on clean installation of Fedora 25, where redhat-rpm-config is not preinstalled.

Comment 1 Juan Hernández 2017-10-23 14:54:28 UTC
What command/commands are you using exactly to do the build?

Comment 2 Radim Hrazdil 2017-10-24 08:18:15 UTC
I followed the steps in https://github.com/oVirt/ovirt-engine-sdk-ruby . 
To run the build I used 'mvn package' to run the build.

Comment 3 Juan Hernández 2017-10-25 10:18:07 UTC
The `redhat-rpm-config` is required because the version of Ruby included in the distribution generates Makefiles that require the `redhat-hardened-cc1` file. That file is part of the `redhat-rpm-config` package, but that package it isn't explicitly required by `ruby-devel`. That could be considered a bug in the `ruby-devel` package. To avoid the issue we will update the documentation to explicitly require the `redhat-rpm-config`.

Comment 4 Radim Hrazdil 2017-11-16 14:02:13 UTC
Verified that redhat-rpm-config is explicitly required in the documentation.

Comment 5 Sandro Bonazzola 2017-12-20 10:44:38 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.