Jinxin Zheng
2010-Apr-08 04:18 UTC
[Libguestfs] 'make uninstall' does not clean up ocaml binding files
Hi all, I have successfully compiled the libguestfs-1.0.89 source and 'make install'ed on my Fedora 12 box. Everything went fine. I have ocaml installed so the default configuration enabled ocaml binding. then I found some minimal configure mistake with my compilation and wanted to compile and install again. 1.first I made uninstall and cleaned up everthing: $ make uninstall $ make clean $ make distclean 2.I reconfigured the source and compiled again: $ ./configure ... $ make 3.compiling seems fine, install then: $ make install This is where I failed. The make command fails complaining that the /usr/lib64/ocaml/guestfs directory isn't clean, as attached full output log of this step. I thinks the problem is at the cleaning step. I'm not actually confident that it's the correct way I cleaned up the installation. Would like to seek for suggestion. Thanks. Jinxin Zheng -------------- next part -------------- A non-text attachment was scrubbed... Name: make_install.log Type: text/x-log Size: 31901 bytes Desc: not available URL: <http://listman.redhat.com/archives/libguestfs/attachments/20100408/d192ca9c/attachment.bin>
Richard W.M. Jones
2010-Apr-08 09:00 UTC
[Libguestfs] 'make uninstall' does not clean up ocaml binding files
On Thu, Apr 08, 2010 at 12:18:12AM -0400, Jinxin Zheng wrote:> Hi all, > I have successfully compiled the libguestfs-1.0.89 source and 'make install'ed on my Fedora 12 box. Everything went fine. I have ocaml installed so the default configuration enabled ocaml binding. > then I found some minimal configure mistake with my compilation and wanted to compile and install again. > > 1.first I made uninstall and cleaned up everthing: > $ make uninstall > $ make clean > $ make distcleanI never use 'make uninstall'. It's not surprising that it fails because we have a custom install hook for the OCaml bindings: http://git.annexia.org/?p=libguestfs.git;a=blob;f=ocaml/Makefile.am;h=38238f6933e85118c2e1cbb14e066926e6bab430;hb=HEAD#l122 So we'd need the equivalent uninstall hook to remove them too. I also hardly ever use 'make install', because you should be able to run everything libguestfs related from the build directory. There are 'run-local' scripts everywhere so you can do (for example): ./tools/run-locally resize [normal virt-resize options here ...] or for guestfish just do: ./fish/guestfish --help Anyway if you want to fix the 'make uninstall' rule then patches are accepted, but it's not high on my list of stuff to fix at the moment. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/