-
Notifications
You must be signed in to change notification settings - Fork 438
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
Mulitple spec files & _multibuild flavors #8847
Comments
So in your case it looks for
When we display this ¹ In the |
But if I only have one spec file plus a _multibuild, then it replaces @BUILD_FLAVOR@ inside the .spec file (see installation-images and many others) |
News to me 😉 @mlschroe? |
As far as I can see, @BUILD_FLAVOR@ is always substituted. One can either use multple spec files (where the spec file name is the same as the flavor), or one spec file, where the spec file has to match the package/container name. Two minimal examples for the cases above: A combination of both seems to be not possible, it behaves like in the "multiple spec files" case: |
The _multibuild file actually has two tags, "flavor" and "package". Maybe meanting of the two needs to be separated. Ie "package" acting like a local link, while "flavor" should use @BUILD_FLAVOR@ to build the same spec several times. |
package is just obsolete, flavor is the successor, but package is there for backward compability. |
not sure what exactly is open here, but
All of that should be documented here: https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.multibuild.html any open question here? |
'obosolete' yet promoted as the way to implement mutibuild in place of package links |
Recently, openSUSE:Factory changed the 'policy' to allow multiple spec files AND a _multibuild in one package (as often asked for), so we started testing what we can achieve with that
Somehow, this does not do what I as a user would expect. I have a demo setup at
https://build.opensuse.org/package/show/home:dimstar:Factory/a
There is a.spec, a-foo.spec and a _multibuild
_multbuild contains:
in discussions, it was not clear what the expectation actually should be, but the result in OBS clearly did not match any. OBS builds out of this:
the package a, based on a.spec
The package a-foo, based on a-foo.spec
The flavor 'BAR' is added to the scheduler as a:BAR - but excluded
By discussing, we came to the following variants of expectaions what should happen:
The text was updated successfully, but these errors were encountered: