Bug 797405 - Unable to rebuild rhev-hypervisor6-6.2-20120209.0.el6_2.src.rpm
Summary: Unable to rebuild rhev-hypervisor6-6.2-20120209.0.el6_2.src.rpm
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhev-hypervisor6
Version: 6.2
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Mike Burns
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-25 16:27 UTC by JYundt
Modified: 2016-04-26 13:30 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
An install script pointed to an incorrect hypervisor rpm. The install script has been updated to point to the correct rpm.
Clone Of:
Environment:
Last Closed: 2012-07-19 13:51:15 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0742 0 normal SHIPPED_LIVE rhev-hypervisor6 bug fix and enhancement update 2012-07-19 17:50:38 UTC

Description JYundt 2012-02-25 16:27:11 UTC
Description of problem:
Unable to rebuild this SRPM.  Commands used:

[root@hostname RHEV]# rpmbuild --rebuild rhev-hypervisor6-6.2-20120209.0.el6_2.src.rpm 
Installing rhev-hypervisor6-6.2-20120209.0.el6_2.src.rpm
warning: InstallSourcePackage at: psm.c:244: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.MmTWg8
+ umask 022
+ cd /root/rpmbuild/BUILD
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZtklWd
+ umask 022
+ cd /root/rpmbuild/BUILD
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.GOL5Bj
+ umask 022
+ cd /root/rpmbuild/BUILD
+ /bin/rm -rf /root/rpmbuild/BUILDROOT/rhev-hypervisor6-6.2-20120209.0.el6.x86_64
+ mkdir /root/rpmbuild/BUILDROOT/rhev-hypervisor6-6.2-20120209.0.el6.x86_64
+ /usr/bin/install -d -m0755 /root/rpmbuild/BUILDROOT/rhev-hypervisor6-6.2-20120209.0.el6.x86_64/usr/share/rhev-hypervisor
+ /usr/bin/install -p -m0644 /root/rpmbuild/SOURCES/rhev-hypervisor6-6.2-20120209.0.el6.iso /root/rpmbuild/BUILDROOT/rhev-hypervisor6-6.2-20120209.0.el6.x86_64/usr/share/rhev-hypervisor/rhevh-6.2-20120209.0.el6.iso
/usr/bin/install: cannot stat `/root/rpmbuild/SOURCES/rhev-hypervisor6-6.2-20120209.0.el6.iso': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.GOL5Bj (%install)


RPM build errors:
    InstallSourcePackage at: psm.c:244: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.GOL5Bj (%install)
[root@hostname RHEV]# 


Based on the contents of the SRPM, I believe the %install script should be looking for "rhev-hypervisor6-6.2-20120209.0.el6_2.iso" instead of "rhev-hypervisor6-6.2-20120209.0.el6.iso" 

Version-Release number of selected component (if applicable):

6.2 (RHEL) / 3.0 (RHEV) ?

How reproducible:

Always

Steps to Reproduce:
1. rpmbuild --rebuild rhev-hypervisor6-6.2-20120209.0.el6_2.src.rpm
2.
3.
  
Actual results:

Build error

Expected results:

Successful build

Additional info:

Comment 2 Mike Burns 2012-04-11 19:46:07 UTC
This is due to the fact that the SOURCE1 contains %dist so rebuild will only work on a machine where %dist is defined as .el6_2

Overall, this is not a high prio bug since there is nothing overly useful in the srpm and there is little to nothing to be gained by rebuilding the srpm since it contains only an iso file (other scripts included in the srpm have been removed in 6.3) and the spec file.

Comment 6 Mike Burns 2012-04-12 20:13:33 UTC
diff --git a/rhev-hypervisor6.spec b/rhev-hypervisor6.spec
index 9f84bab..11365a0 100644
--- a/rhev-hypervisor6.spec
+++ b/rhev-hypervisor6.spec
@@ -14,7 +14,7 @@ Version: 6.3
 Release: %{rhevh_build}%{?dist}%{?extra_release}
 BuildArch: noarch
 %if %{source_iso}
-Source1: %{name}-%{version}-%{rhevh_build}%{?dist}.iso
+Source1: %{product_code}-%{version}-%{rhevh_build}.iso
 %define image_iso %{SOURCE1}
 %else
 %define image_iso %{name}.iso

Comment 11 errata-xmlrpc 2012-07-19 13:51:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHBA-2012-0742.html

Comment 12 Andrew Burden 2012-08-21 05:18:26 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
An install script pointed to an incorrect hypervisor rpm. The install script has been updated to point to the correct rpm.


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