From 76b9ca0799f999a7379cdf1458f50ee48ddef885 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawlup4hyZo4eCjF8T85vfRXMKBxGj9bMdl0" Date: Mon, 20 Aug 2012 17:25:36 +0000 Subject: --- .../make_install_can__39__t_be_used_with_sudo.mdwn | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/bugs/make_install_can__39__t_be_used_with_sudo.mdwn diff --git a/doc/bugs/make_install_can__39__t_be_used_with_sudo.mdwn b/doc/bugs/make_install_can__39__t_be_used_with_sudo.mdwn new file mode 100644 index 000000000..6cb136586 --- /dev/null +++ b/doc/bugs/make_install_can__39__t_be_used_with_sudo.mdwn @@ -0,0 +1,18 @@ +What steps will reproduce the problem? +In the git-annex tree, + + $ make + $ sudo make install + +What is the expected output? What do you see instead? + +One would expect git-annex to be installed in the configured prefix. Unfortunately, make tries to rebuild the "all" target before "install". This fails (presumably) due to incorrect environment state, + + ghc -O2 -Wall -ignore-package monads-fd -ignore-package monads-tf -outputdir tmp -IUtility -DWITH_ASSISTANT -DWITH_S3 -DWITH_INOTIFY --make git-annex Utility/libdiskfree.o + + Utility/FileSystemEncoding.hs:17:8: + Could not find module `Data.Bits.Utils': + Use -v to see a list of the files searched for. + make: *** [git-annex] Error 1 + +Removing "all" from the dependencies of "install" allows the process to run to completion, although this is clearly not a satisfactory solution. -- cgit v1.2.3