Bug 659723

Summary: torque-2.4.10 from RHEL 6 not backporable to RHEL 5
Product: [Fedora] Fedora EPEL Reporter: Nico Kadel-Garcia <nkadel>
Component: torqueAssignee: Steve Traylen <steve.traylen>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: el6CC: fotis, garrick, steve.traylen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-08 11:56:39 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:

Description Nico Kadel-Garcia 2010-12-03 15:05:14 UTC
Description of problem:
  torque-2.4.10 SRPM backport fails compilation on RHEL 5 due to 'BuildArch: noarch' settings.

Version-Release number of selected component (if applicable):
  torque-2.4.10-1.el6.src.rpm

How reproducible:
   Extract contents of torque-2.4.10 SRPM from Fedora Core 14, try to build on RHEL 5.

Steps to Reproduce:
1. Extract contents of SRPM
2. Copy files to [rpmdir]/SOURCES
3. rpmbuiild -ba [rpmdir]/SOURCES/torque.spec
  
Actual results:
  Compilation on RHEL 5 fails due to unallocated debug components.

Expected results:
  Successful compilation.

Additional info:
  Fixing this will allow torque-2.4.10, or 2.4.11, to be backported gracefully to RHEL 5.

  The solution for this is already included in the "git" SRPM. The .spec file needs to filter for compilation on Fedora < version 10, or RHEL < version 6, and disable the "BuildArch: noarch" setting if present.

Here is the patch:

diff -c -r1.1 torque-rh6.spec
*** torque-rh6.spec     2010/12/03 15:01:47     1.1
--- torque-rh6.spec     2010/12/03 15:02:08
***************
*** 124,130 ****
--- 124,132 ----
  Group:          Documentation
  Summary:        Documentation files for TORQUE
  Requires:       %{name} = %{version}-%{release}
+ %if 0%{?fedora} >= 10 || 0%{?rhel} >= 6
  BuildArch:      noarch
+ %endif

  %description docs
  TORQUE (Tera-scale Open-source Resource and QUEue manager) is a resource

Comment 1 Steve Traylen 2010-12-03 15:21:14 UTC
Okay, I'll add this sometime.

Comment 2 Steve Traylen 2010-12-08 11:56:39 UTC
Hi Nico,

What do you mean by the "git" SRPM?

Have added the fix to both EPEL6 build and F15 build.

http://koji.fedoraproject.org/koji/buildinfo?buildID=208305
and
http://koji.fedoraproject.org/koji/buildinfo?buildID=208307

I've not checked if the F15 builds on EPEL5 but I expect so, certainly
I am happy to fix it if there are still problems. Submit a new bug.

You may have an opinion as to if moving the current F15 build to EPEL6 makes
sense while we are still epel6-beta phase? Otherwise we stuck with
2.4 potentially for a long time.

Steve.