-
Notifications
You must be signed in to change notification settings - Fork 188
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
prjconf Release:
breaks debs’ debian revision
#695
Comments
To handle macros with macros embedded in them, e.g.
I don't think this solution will work well with parameterized macro calls (e.g |
@ColMelvin and I were able to verify that this is indeed the problem 👍 We get it to work w/ a simplified regex that will only work on the classic prjconf First, thi sgot us the correct
--- build-recipe-dsc.orig 2021-06-01 12:49:32.606955951 -0500
|
Perhaps Iteration 1 is: support the standard Then Iteration 2: make the regexp smarter If that sounds like a good plan I’d be happy to do a pull request (NTS ¿backport to 2.10 so no maintaining patch locally?) |
PR #698 |
TL;DR:
Doing the classic
Release: %%{?release_prefix}.<CI_CNT>.<B_CNT>
in prjconf breaks debian revision.OBS-DCH-RELEASE: 1
:Release: %%{?release_prefix}.<CI_CNT>.<B_CNT>
in prjconfDetails:
Oultined here ➜ https://forums.opensuse.org/showthread.php/554631
Cause?
I believe is caused by this line being too greedy and clearing Release completely:
obs-build/build-recipe-dsc
Line 52 in d8665ae
Using this regexp (properly escaped of course) would demonstrate if that belief was justified or not:
s/%+\{[^}]+}\.?//
(should allow the classic example to work but is a bit naive still)There is probably a better regexp or logic to “remove rpm macros” as the comment above that line says its intent.
something like this for example:
s/(\.)?%+\{[^}]+}(\.)?/$1 && $2 ? $2 : ""/eg
would cover multiplesIn addition to multiples they can be nested too of course
The text was updated successfully, but these errors were encountered: