tree: 9b78e56eb4824fe242e96b01cb8965b66115e8bb [path history] [tgz]
  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 “centos7”).

To use

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