RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 823521 - can't build tests rpm
Summary: can't build tests rpm
Keywords:
Status: CLOSED DUPLICATE of bug 600308
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: tog-pegasus
Version: 6.2
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: rc
: ---
Assignee: Vitezslav Crhonek
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On: 773604
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-21 13:02 UTC by Petr Sklenar
Modified: 2012-05-21 13:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 773604
Environment:
Last Closed: 2012-05-21 13:17:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2012-05-21 13:02:53 UTC
I can see the same on rhel63:

make[2]: Entering directory `/root/rpmbuild/BUILD/pegasus'
make[2]: Leaving directory `/root/rpmbuild/BUILD/pegasus'
make[2]: Entering directory `/root/rpmbuild/BUILD/pegasus'
cp: cannot stat `/root/rpmbuild/BUILD/pegasus/build/lib/libSampleInstanceProvider.so.1': No such file or directory
cp: cannot stat `/root/rpmbuild/BUILD/pegasus/build/lib/libSampleMethodProvider.so.1': No such file or directory
cp: cannot stat `/root/rpmbuild/BUILD/pegasus/build/lib/libFamilyProvider.so.1': No such file or directory
cp: cannot stat `/root/rpmbuild/BUILD/pegasus/build/lib/libIndicationStressTestConsumer.so.1': No such file or directory
cp: cannot stat `/root/rpmbuild/BUILD/pegasus/build/lib/libIndicationStressTestProvider.so.1': No such file or directory
cp: cannot stat `/root/rpmbuild/BUILD/pegasus/build/lib/libIndicationTestProvider.so.1': No such file or directory
make[2]: *** [stage_testproviderfiles] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/pegasus'
make[1]: *** [stageTEST] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/pegasus'
make: *** [stage] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.sB87bQ (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.sB87bQ (%install)


+++ This bug was initially created as a clone of Bug #773604 +++

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 2 Petr Sklenar 2012-05-21 13:17:46 UTC

*** This bug has been marked as a duplicate of bug 600308 ***


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