Bug 773604

Summary: can't build tests rpm
Product: Red Hat Enterprise Linux 5 Reporter: Karel Volný <kvolny>
Component: tog-pegasusAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: medium    
Version: 5.8CC: azelinka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 823521 (view as bug list) Environment:
Last Closed: 2013-03-12 12:22:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 823521    

Description Karel Volný 2012-01-12 12:02:45 UTC
Description of problem:
There's a possibility to build a subpackage with tog-pegasus tests.
From spec:

%{?!PEGASUS_BUILD_TEST_RPM:     %define PEGASUS_BUILD_TEST_RPM        0}
# do "rpmbuild --define 'PEGASUS_BUILD_TEST_RPM 1'" to build test RPM.

However, this doesn't work - rpmbuild fails while trying to copy some files, see below.


Version-Release number of selected component (if applicable):
tog-pegasus-2.11.0-2.el5


How reproducible:
always


Steps to Reproduce:
1. rpmbuild --rebuild --define 'PEGASUS_BUILD_TEST_RPM 1' tog-pegasus-2.11.0-2.el5.src.rpm

  
Actual results:
...
make[2]: Entering directory `/usr/src/redhat/BUILD/pegasus'
cp: cannot stat `/usr/src/redhat/BUILD/pegasus/build/lib/libSampleInstanceProvider.so.1': No such file or directory
cp: cannot stat `/usr/src/redhat/BUILD/pegasus/build/lib/libSampleMethodProvider.so.1': No such file or directory
cp: cannot stat `/usr/src/redhat/BUILD/pegasus/build/lib/libFamilyProvider.so.1': No such file or directory
cp: cannot stat `/usr/src/redhat/BUILD/pegasus/build/lib/libIndicationStressTestConsumer.so.1': No such file or directory
cp: cannot stat `/usr/src/redhat/BUILD/pegasus/build/lib/libIndicationStressTestProvider.so.1': No such file or directory
cp: cannot stat `/usr/src/redhat/BUILD/pegasus/build/lib/libIndicationTestProvider.so.1': No such file or directory
make[2]: *** [stage_testproviderfiles] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/pegasus'
make[1]: *** [stageTEST] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/pegasus'
make: *** [stage] Error 2
error: Špatný návratový kód z /var/tmp/rpm-tmp.11216 (%install)


Expected results:
(no errors, packages built)


Additional info:
note that this hasn't worked in the previous version too but the error was different:

rpmbuild --rebuild --define 'PEGASUS_BUILD_TEST_RPM 1' tog-pegasus-2.9.1-2.el5_5.1.src.rpm
...
make[1]: Leaving directory `/usr/src/redhat/BUILD/pegasus/src/Providers/sample/MethodProvider'
make: *** No rule to make target `/usr/src/redhat/BUILD/pegasus/build/lib/libIndicationTestProvider.so.1', needed by `tests'.  Stop.
error: Špatný návratový kód z /var/tmp/rpm-tmp.66964 (%build)

Comment 1 RHEL Program Management 2012-01-16 05:12:06 UTC
Since RHEL 5.8 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 RHEL Program Management 2012-07-19 08:59:27 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 4 Vitezslav Crhonek 2013-03-12 12:22:46 UTC
RHEL-5 is entering Production 2 Phase (see [1]), only critical and important security issues are going to be adressed => closing this bug WONTFIX.

[1] https://access.redhat.com/support/policy/updates/errata/