Hide Forgot
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:
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.
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
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
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.