I would be useful to have instructions on which files to remove to fully undo a make install.
-
Sjors commented at 11:54 AM on March 14, 2025: member
-
Sjors commented at 11:57 AM on March 14, 2025: member
Looking at the install log, something like this:
sudo rm -rf /usr/local/lib/libmultiprocess.a \ /usr/local/include/mp \ /usr/local/bin/mpgen \ /usr/local/include/mp \ /usr/local/include/mpgen.mk \ /usr/local/lib/pkgconfig/libmultiprocess.pc \ /usr/local/lib/cmake/LibmultiprocessThat's a lot of files, so a
make uninstallwould be easier to use. -
ryanofsky commented at 5:38 PM on April 8, 2025: collaborator
It looks like a reasonable way to do this is:
xargs rm -v < build/install_manifest.txtas described https://stackoverflow.com/questions/41471620/cmake-support-make-uninstall
It'd be probably a good idea to add that command to the documentation in https://github.com/bitcoin-core/libmultiprocess/blob/master/doc/install.md
It would also be possible to add a more portable
make uninstalltarget as described https://gitlab.kitware.com/cmake/community/-/wikis/FAQ#can-i-do-make-uninstall-with-cmake if that is not overkill.Would welcome opinions about this, or PRs implementing any solution.