Replies: 3 comments 7 replies
-
This sounds reasonable to me. For my clarification, is the |
Beta Was this translation helpful? Give feedback.
-
Can you elaborate on this a bit? I'm definitely unclear on the implications around remote execution in this respect as I've not explored it at all.
I'll try to clean up my changes and post a PR next week. I need to do a bit more testing in a "normal" rpmbuild environment to ensure that I haven't gotten anything fundamentally wrong. Further out, it might make sense to distill what's in |
Beta Was this translation helpful? Give feedback.
-
I wanted to add support for two things that appear to be currently missing in the RPM packaging rules: (1) support for building Sub RPMs, (2) support for letting rpmbuild auto-generate debuginfo RPMs. I've hacked out a working PoC for both (the latter depending on the former) but wanted to get some feedback on the approach I've taken before opening a PR.
For (1) the reasoning is that it avoids multiple invocations of rpmbuild and some of the configuration (arch, version, release, etc) doesn't need to be duplicated between rules. Plus, the debuginfo RPM that is generated will cover all of the packages. The rough approach is to add add
pkg_sub_rpm
rule that has approximately the same form aspkg_rpm
but returns a provider that is specific to sub RPMs. From there, pkg_rpm gets an extra attribute that is a list of subpackages to include.For (2) the reasoning is that the automated rpmbuild debuginfo generation has a lot of magic associated with it and it spans all of the subpackages, so it seems better to leave that magic there instead of asking folks to hack up their own variation with bazel rules. Internally, this requires some tweaks and some explanation (eg: the internal rpmbuild magic expects to find
foo.debug
for the binaries instead of justfoo
) but other than fiddling a few knobs just leans on the structures I set up for (1)Questions:
Beta Was this translation helpful? Give feedback.
All reactions