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

spec_parser confused by multibuild and ternary operations #131

Open
DimStar77 opened this issue Feb 9, 2024 · 0 comments
Open

spec_parser confused by multibuild and ternary operations #131

DimStar77 opened this issue Feb 9, 2024 · 0 comments

Comments

@DimStar77
Copy link
Contributor

I was trying to use some modern constructs in a spec file:

%define flavor @BUILD_FLAVOR@%{nil}

Name:           c-ares%["%{flavor}" == "" ? "" : "-%{flavor}"]

For RPM this is all right, but osc service ra source_validator fails with:

Factory/c-ares> osc service ra source_validator
- package has baselibs.conf: (unchanged)
ERROR: c-ares.changes not a subpackage, please remove

Some extra debug added in 45-stale-changes reveals it's expecting these names:
c-ares- c-ares-testsuite (note the trailing - in the first name;i.e it fails to understand that the nil flavor would not have a dash

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