tree: 1d654323e896023b3bb683e17f2ab6fc0c091b10
  1. BUILD
  2. MODULE.bazel
  3. README.md
  4. test.c
examples/rpm/debuginfo/README.md

Using system rpmbuild with bzlmod and generating debuginfo

Summary

This example uses the find_system_rpmbuild_bzlmod module extension to help us register the system rpmbuild as a toolchain in a bzlmod environment.

It configures the system toolchain to be aware of which debuginfo configuration to use (defaults to “none”, the example uses “centos” for RPM < 4.18).

To use

bazel build :*
rpm2cpio bazel-bin/test-rpm.rpm | cpio -ivt
cat bazel-bin/content.txt