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 pkgrel=<CI_CNT>.<B_CNT> in Archlinux builds #984

Open
leukimi opened this issue Nov 5, 2023 · 1 comment
Open

OBS fails to set pkgrel=<CI_CNT>.<B_CNT> in Archlinux builds #984

leukimi opened this issue Nov 5, 2023 · 1 comment

Comments

@leukimi
Copy link

leukimi commented Nov 5, 2023

For Archlinux auto-incrementing the Release number is needed. It already works in openSUSE, Fedora and similar RPM-based distros and Debian/Ubuntu/Raspbian.

Typical PKGBUILD header looks like this:

pkgname=mypackage
pkgver=0.0.1
pkgrel=CI_CNT.B_CNT

For Debian builds see this issue there seems to be a solution in place that works.

Reason why this is needed

pacman -Sy mypackage searches all available databases for a match and may therefore choose to download a package with the same name and pkgrel version from another not-yet-freshly-synched server with shorter latency, causing a GPG or checksum mismatch detected at installation time compared to the hashes found in the openSUSE database.

Therefore, today a manual pkgrel= update is needed to force pacman to choose a newer package from the openSUSE Archlinux Extra repository. Since rebuild can happen anytime, manual update of pkgrel is not optimal and would benefit from an automatic updating mechanism such as in all the other distributions OBS build service can build.

@leukimi
Copy link
Author

leukimi commented Feb 26, 2024

The answer to this question seems to have ended up in this thread and reads as follows:


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


I do not have the code for this to propose a merge.

Would somebody be willing to reuse/adapt the code from Debian/Fedora/openSUSE build script to stretch the same functionality to Archlinux/Manjaro builds and implement

pkgrel=<CI_CNT>.<B_CNT>

functionality in Archlinux/Manjaro within build-recipe-arch ?

@leukimi leukimi changed the title OBS fails to set CI_CNT.B_CNT in Archlinux builds OBS fails to set pkgrel=<CI_CNT>.<B_CNT> in Archlinux builds Feb 26, 2024
@hennevogel hennevogel transferred this issue from openSUSE/open-build-service Feb 29, 2024
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

1 participant