build(deb): fix source tree path leaking into package#22
Conversation
einhander
commented
Apr 26, 2026
- Add -fdebug-prefix-map to debian/rules to remap absolute build
paths to relative in DWARF debug info
- Fix configure_file to output Version.cpp into BINARY_DIR instead
of polluting the source tree
- Replace global include_directories with target_include_directories
to scope include paths to the target only
- Fix Makefile install target: pass DESTDIR as env variable and
--prefix separately so cmake --install uses correct paths
- Add override_dh_auto_install with PREFIX=/usr in debian/rules
- Add CMAKE_*_RPATH options to control rpath behaviour
- Switch deb target from dpkg-buildpackage -F to debuild -uc -us
|
Thanks for the cleanup - the debug-path remap, scoped target includes, and proper 1. target_include_directories is missing BEFORE - macOS fmt regressionEarlier in the file, directory-scope 2. Stale src/Version.cpp from prior builds → duplicate-symbol link error
Either remove the stale file at configure time: or exclude it from the glob with Optional nits (non-blocking)
Happy to merge once (1) and (2) are addressed. |