Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBS fails to set CI_CNT.B_CNT in Debian builds #964

Closed
jengelh opened this issue Feb 2, 2016 · 6 comments
Closed

OBS fails to set CI_CNT.B_CNT in Debian builds #964

jengelh opened this issue Feb 2, 2016 · 6 comments

Comments

@jengelh
Copy link
Contributor

jengelh commented Feb 2, 2016

[   33s] -----------------------------------------------------------------
[   33s] I have the following modifications for gsoap-zarafa.spec:
[   33s] 5c5
[   33s] < Release:        0
[   33s] ---
[   33s] > Release:        23.1
[   33s] -----------------------------------------------------------------
[   33s] ----- building gsoap-zarafa.spec (user abuild)
[   33s] -----------------------------------------------------------------

This substitution is only done for RPM specfiles, but not for the Debian descriptions. This leads to rebuilds always carrying the same filename even if CI_CNT or B_CNT actually increased, and apt-get dist-upgrade will subsequently never pick the new builds for installation because of this.

@dg0yt
Copy link

dg0yt commented Feb 7, 2016

It seems to be missing from the wiki page:

You need to have DEBTRANSFORM-RELEASE: 1 in your .dsc file. See 53e20eb.

@dg0yt
Copy link

dg0yt commented Feb 7, 2016

You must also provide a separate "debian.changelog" file with at least one changelog entry, according to that commit. I updated to wiki page.

@hennevogel
Copy link
Member

Thanks for the edits @dg0yt

dg0yt referenced this issue in openSUSE/obs-docu Feb 10, 2016
@dg0yt
Copy link

dg0yt commented Feb 10, 2016

For the record, DEBTRANSFORM-RELEASE will work (debtransform will be run) only if there is any debian.* file. It doesn't need to be the changelog.

It is implemented in build-recipe-dsc and debtransform which reside in the https://github.com/openSUSE/obs-build repository.

@adrianschroeter
Copy link
Member

that functionality is just not implemented in the build script. You may want to create a pull request for build-recipe-arch ...

@adrianschroeter adrianschroeter transferred this issue from openSUSE/open-build-service Nov 15, 2023
@leukimi
Copy link

leukimi commented Feb 26, 2024

I do not have the code to achieve pkgrel=<CI_CNT>.<B_CNT> and propose a merge to build-recipe-arch.

Is there, in your opinion, a way to achieve this functionality by adapting the code that sets the version in Fedora/openSUSE/Debian builds? Maybe the current code can be reused to include the sane functionality to Manjaro/Archlinux builds by automatically updating the default pkgrel=1 field in file PKGBUILD when a rebuild is made. Do you think that would be possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants