Bug 16972

Summary: Epoch is placed in the wrong location in spec, resulting in undefined epoch variables (Patch attached)
Product: Mageia Reporter: Neal Gompa <ngompa13>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: jani.valimaa
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: xaos-3.6-6.mga5.src.rpm CVE:
Status comment:
Attachments: Patch to xaos.spec to move Epoch to just below Release

Description Neal Gompa 2015-10-17 06:54:28 CEST
Description of problem:
The Epoch value was set after a call to the %{epoch} variable, which led to it being undefined for the call. 

This led to an interesting output when I started doing createrepo_c runs locally to test Mageia on the rpm-md generation on my Fedora box:

""""""""""""""""""""""""""""""""""""""""""""""""
C_CREATEREPOLIB: Warning: Bad epoch in version string "%{epoch}:3.6-6.mga5" for dependency "xaos-svgalib" in package "xaos-1:3.6-6.mga5.x86_64"
C_CREATEREPOLIB: Warning: Skipping this dependency
""""""""""""""""""""""""""""""""""""""""""""""""

The included patch corrects this by moving the Epoch above the line where this version string exists.

Version-Release number of selected component (if applicable):
3.6-6.mga5


Reproducible: 

Steps to Reproduce:
Comment 1 Neal Gompa 2015-10-17 06:55:28 CEST
Created attachment 7132 [details]
Patch to xaos.spec to move Epoch to just below Release

Patch attached.
Comment 2 Jani Välimaa 2015-10-17 08:44:06 CEST
Fixed in SVN.

Status: NEW => RESOLVED
CC: (none) => jani.valimaa
Resolution: (none) => FIXED