Bug 729826 - RFE: drop hard-coded default for os_ver:
Summary: RFE: drop hard-coded default for os_ver:
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 2.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 2.7
Assignee: Jeff Fearn 🐞
QA Contact: Ruediger Landmann
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-11 00:04 UTC by Ruediger Landmann
Modified: 2011-09-06 03:56 UTC (History)
2 users (show)

Fixed In Version: 2.7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-06 03:56:44 UTC
Embargoed:


Attachments (Terms of Use)

Description Ruediger Landmann 2011-08-11 00:04:48 UTC
Description of problem:
The os_ver parameter provides the value for the "dist" value used to build a package. Presently, it defaults to ".el5", but can be overridden in the config file. This is counter-intuitive behaviour for anyone building RPMs on any OS other than Red Hat Enterprise Linux 5 or its clones. For example, it's not how rpmbuild behaves. 

I think it's still useful to provide os_ver as a customizable value, for times when someone might want to build a package for an OS other than the one they're using, but the value should default to their own OS, the way that rpmbuild does.

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

How reproducible:
100%

Steps to Reproduce:
1. Package a book on an OS other than Red Hat Enterprise Linux 5 or its clones; ensure that os_ver is not set in the config file.
  
Actual results:
Package NVR includes .el5

Expected results:
If no os_ver is set, package NVR should include the dist value for the OS on which the package was built.


Additional info:

Comment 1 Jeff Fearn 🐞 2011-08-11 03:45:30 UTC
Changed code so that if os_ver is not set then dist doesn't get supplied to rpmbuild, removed default os_ver value.

This means that without os_ver rpmbuild will use the OS the build is being run on.

Committed revision 1860.

Comment 2 Jeff Fearn 🐞 2011-09-06 03:56:44 UTC
Publican 2.7 has been release and includes a fix for this issue.


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