[GNC] GnuCash 3.2 Released
John Ralls
jralls at ceridwen.us
Mon Jul 2 10:36:53 EDT 2018
> On Jul 1, 2018, at 11:13 PM, DaveC49 <davidcousens at bigpond.com> wrote:
>
> 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.
David,
Remember that cmake is a tool for developers. Installing and uninstalling several times an hour isn’t uncommon when coding or debugging.
As for the rest, seems like a lot of work when `xargs rm < install_manifest.txt` works well (though it does leave the directory structure, but the goal is to get rid of the installable modules and old compiled scheme files so that the don’t confuse the new build). It also has the advantage of not talking to cmake so it’s not affected by changes in the source directory.
Incidentally, if you’ve already deleted install_manifest.txt, `rm -rf <prefix>/lib/gnucash` will get rid of enough to get a clean build.
Regards,
John Ralls
More information about the gnucash-user
mailing list