v5.0.0 rc1: bdist_rpm fails due to illegal char in verson string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP |
Fix Released
|
Undecided
|
Stephane Wirtel (OpenERP) |
Bug Description
The distutils target, bdist_rpm, fails when trying to create an RPM for OpenERP release candidate rc1 (and rc1.1). This is due to an illegal char (hyphen) being present in the version string in setup.py (exec'd from bin/release.py). The RPM spec does not permit hyphen separators in version strings, only underscores or periods.
To correct this problem you have to modify the version line in bin/release.py as follows:
Change From: version = '5.0.0-rc1'
Change To: version = '5.0.0_rc1' or version = '5.0.0.rc1'
Ref: http://
Now the rpmbuild process will run.
It can also be difficult using rpm to build packages for release candidates that will 'update' properly because of the alphanumeric ordering of the version strings. For instance 5.0.0 would not update 5.0.0_rc1. But something like 5.0.0.0 would update 5.0.0._rc1 as the underscore would precede the '0' in ordering.
description: | updated |
description: | updated |
description: | updated |
Changed in openerp: | |
assignee: | nobody → matrixise |
Changed in openerp: | |
status: | New → Fix Released |