debian: replace @BUILD_FLAVOR@ in parse and dsc source preparation#1123
debian: replace @BUILD_FLAVOR@ in parse and dsc source preparation#1123rjd15372 wants to merge 1 commit intoopenSUSE:masterfrom
Conversation
This commit improves the support for multibuild when building debian-based packages. * The `@BUILD_FLAVOR@` can now be used in the `.dsc` or `debian.control` file to correctly identify build dependencies. * The `@BUILD_FLAVOR@` can also be used `debian/control` and `debian/rules` files, which are processed during build time but before the debian packaging process starts Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>
|
at least in the rpm space empty flavor is actually valid. see e.g.: https://build.opensuse.org/package/show/server:database:postgresql/pgrx for other packages where we have nothing to build in an empty flavor we use the do_not_build hack https://build.opensuse.org/package/show/server:database:postgresql/VectorChord my suggestion in a meeting earlier was that we had something like |
|
@darix how can we implement a similar hack for debian packages? Is this something that is built in obs-build, or in open-build-service? |
|
my suggestion is that "emptybuildflavor" attribute :) well as we can see with the pgrx example. we would also need conditionals build requires in that case and currently we have no native conditionals support in within the dsc files. I wonder if we should do |
I just don't like the In my little experience, I think we just need two .dsc files, one for the non-multibuild or empty-flavor case, and another for the multibuild flavor case. Another approach could be to have a bash script file |
|
I'll open a new PR with just the |
|
@darix I've implemented the |
This commit improves the support for multibuild when building debian-based packages.
The
@BUILD_FLAVOR@can now be used in the.dscordebian.controlfile to correctly identify build dependencies.The
@BUILD_FLAVOR@can also be useddebian/controlanddebian/rulesfiles, which are processed during build time but before the debian packaging process starts