Bug 816226 - OBS auto-increment release numbers for RPMs. This would also be useful for DEB packages
Summary: OBS auto-increment release numbers for RPMs. This would also be useful for DE...
Status: NEW
Alias: None
Product: openSUSE.org
Classification: openSUSE
Component: BuildService (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Enhancement (vote)
Target Milestone: ---
Assignee: Michael Schröder
QA Contact: Adrian Schröter
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-19 13:39 UTC by Joerg Steffens
Modified: 2013-04-22 12:13 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
add auto-increment release numbers also when building DEB packages (3.21 KB, patch)
2013-04-19 13:44 UTC, Joerg Steffens
Details | Diff
add auto-increment release numbers also when building DEB packages (3.35 KB, patch)
2013-04-22 12:13 UTC, Joerg Steffens
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Steffens 2013-04-19 13:39:49 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.32 (KHTML, like Gecko) Chrome/27.0.1425.0 Safari/537.32 SUSE/27.0.1425.0

The OBS auto-increment the RPM release number on every new build.
Debian has no direct support for release numbers,
but commonly used is to add the release to the version number, separated by "-":
<version>-<release>

Currently the Debian build process from OBS set the version to the string defined in the DSC file. (A normal build will just use the version from the 
top most entry from debian/changelog.)

It would be an advantage, if OBS would provide auto-increment version/release-numbers also for Debian/Ubuntu/...


Reproducible: Always

Steps to Reproduce:
1.upload a Debian package to build.opensuse.org. It should include a debian.changelog file

Actual Results:  
package gets build. Version/Release-Number is static, based on the version entry in the DSC file.

Expected Results:  
package gets build, but version number gets expanded by OBS build number
Comment 1 Joerg Steffens 2013-04-19 13:44:07 UTC
Created attachment 536094 [details]
add auto-increment release numbers also when building DEB packages

This patch against the build package adds support for auto-incremental release numbers also for DEB packages.
Comment 2 Adrian Schröter 2013-04-19 13:47:04 UTC
reassign to our debian expert :)
Comment 3 Joerg Steffens 2013-04-19 13:51:16 UTC
The patch if integrated to https://build.opensuse.org/package/show?package=build&project=home%3Asteffens%3Abranches%3AopenSUSE%3ATools
and is working fine on our local OBS instance.

To use it,
the project must provide a separat "debian.changelog" file with at least one changelog entry and the DSC file must include the tag:
DEBTRANSFORM-RELEASE: 1

Therefore, the current build behaviour is not changed. This new feature gets only activated, when the DEBTRANSFORM-RELEASE is added to the DSC file.

The build script is only changed slightly, most Debian specific changed have been done to the debtransform script.
Comment 4 Joerg Steffens 2013-04-22 12:13:55 UTC
Created attachment 536262 [details]
add auto-increment release numbers also when building DEB packages

fixes a bug in the previous patch: exit, if more than 3 parameter are given.