[GNC] GnuCash 3.2 Released
DaveC49
davidcousens at bigpond.com
Mon Jul 2 02:13:03 EDT 2018
John,
Just some further information. I rebuilt GnuCash with the -G Ninja option.
The build.ninja seems to contain a build uninstall target but it has no
commands. If I run
sudo ninja install
it installs GnuCash (in/usr/local the prefix I set with cmake) and creates
install_manifest.txt.
If i copy the install target in build.ninja to the blank uninstall section
and modify it as follows
# Utility command for uninstall
build CMakeFiles/uninstall.util: CUSTOM_COMMAND all
COMMAND = cd /home/david/Applications/gnucash-3.2/build-ninja &&
/usr/bin/cmake -P cmake_uninstall.cmake
DESC = Uninstall the project...
pool = console
restat = 1
build uninstall: phony CMakeFiles/uninstall
and then issue
sudo ninja uninstall
Gnucash is correctly uninstalled except that it leaves:
an empty gnucash directory in /etc;
/include has an empty gnucash folder;
/lib has a guncash directory with a scm/ccache/2.2 directory containing
gnucash, json and qif-import
folders
/share has a gnucash directory with subdirectories but no files
It appears the uninstall is removing all files but not necessarily the
directory structure the files were in. OK unless that changes between
versions.
I haven't checked whether the uninstall behavior is any different for the
make version but a diff on the make and ninja versions of
install_manifest.txt produces no differences so I would expect that the
uninstall is the same given the cmake_uninstall.cmake files were essentially
the same.
Getting cmake to correctly create the build.ninja uninstall target should be
enough to get the ninja uninstall working as well.
Cheers
David
-----
David Cousens
--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
More information about the gnucash-user
mailing list