summaryrefslogtreecommitdiff
path: root/doc/bugs/make_install_can__39__t_be_used_with_sudo.mdwn
blob: c43075e58ca5a9d9c4743ceedbae1e8276c7d757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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.

> [[fixed|done]] using an ugly stamp file. --[[Joey]]