| Lorenz Brun | ddd6caf | 2021-03-04 17:16:04 +0100 | [diff] [blame] | 1 | # 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) | 
 | 13 | generated_file { | 
 | 14 |   path: "libblkid/src/blkid.h", | 
 | 15 | } | 
 | 16 |  | 
 | 17 | # Rewrite blkid.h to root for ease of use and easier codegen | 
 | 18 | replace { | 
 | 19 |   type: WORKSPACE, | 
 | 20 |   from: "libblkid/src/blkid.h", | 
 | 21 |   to: "blkid.h", | 
 | 22 | } |