blob: fed612f8dfa0e5605be8fd10efbeac77cd76ac99 [file] [log] [blame]
Lorenz Brunddd6caf2021-03-04 17:16:04 +01001# proto-file: build/bazel_cc_fix/ccfixspec/ccfixspec.proto
2# proto-message: CCFixSpec
3
4# To regenerate the patch, run the following in the checked-out util-linux repo
5# ./autogen.sh
6# ./configure --without-util --without-udev --without-ncursesw --without-tinfo --without-readline --without-cap-ng --without-libz --without-libmagic --without-user --without-btrfs --without-systemd --without-python
7# intercept-build make -j24 uuidgen blkid
8
9# And the following in the monorepo root
10# bazel run //build/bazel_cc_fix -- -workspace $path_to_repo -compilation_db $path_to_repo/compile_commands.json -spec third_party/util-linux/cc_fix_spec.prototxt
11
12# Templated file (original path, later rewritten)
13generated_file {
14 path: "libblkid/src/blkid.h",
15}
16
17# Rewrite blkid.h to root for ease of use and easier codegen
18replace {
19 type: WORKSPACE,
20 from: "libblkid/src/blkid.h",
21 to: "blkid.h",
22}