Bug 16972 - Epoch is placed in the wrong location in spec, resulting in undefined epoch variables (Patch attached)
Summary: Epoch is placed in the wrong location in spec, resulting in undefined epoch v...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-17 06:54 CEST by Neal Gompa
Modified: 2015-10-17 08:44 CEST (History)
1 user (show)

See Also:
Source RPM: xaos-3.6-6.mga5.src.rpm
CVE:
Status comment:


Attachments
Patch to xaos.spec to move Epoch to just below Release (734 bytes, patch)
2015-10-17 06:55 CEST, Neal Gompa
Details | Diff

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


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