sapling/exec
Jun Wu 41ccbe9f8d hg.rust: add BuildInfo symbols
Summary:
BuildInfo symbols are generated for fbcode binaries, and scanned by the
internal procprint tool. The procprint tool also scans hg binaries, but cannot
extract any build information.

The procprint data is used by Push4Push to find out job owners running ancient
software.

This diff inserts BuildInfo symbols so Push4Push (and we) can use them to
figure out people running old versions of hg and send tasks to them.

Note rpmbuild strips symbols by default and is hard to customize. For now, I
just disable the debuginfo packages to preserve the symbols. If space usage or
runtime performance becomes an issue, we can try other workarounds (ex. provide
a shim of `%_find_debuginfo_dwz_opts` that skips `hg.rust`, or provide a shim
of `%__strip`, etc).

By default, the symbols only get added when `setup.py` is run by `rpmbuild`.
So `make local` won't rebuild `hg.rust` every time.

Reviewed By: singhsrb

Differential Revision: D14464056

fbshipit-source-id: ac6f9dedf28cee5fc8d65e144e3d7d1c544d1eda
2019-03-20 23:44:10 -07:00
..
hgmain hg.rust: add BuildInfo symbols 2019-03-20 23:44:10 -07:00
scm_daemon codemod: use explicit versions in Cargo.toml 2018-11-15 18:54:06 -08:00
scratch hg: rename scratch to mkscratch and include in the hg build 2019-02-14 17:28:14 -08:00
utils indexedlog: move binary indexedlog_dump out 2018-12-18 08:17:21 -08:00