[LLVMbugs] [Bug 11693] New: cannot install without permissions to write to source tree

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 3 03:40:00 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=11693

             Bug #: 11693
           Summary: cannot install without permissions to write to source
                    tree
           Product: new-bugs
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: devel at fresse.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When issuing make install as a privileged user, the installation script tries
to write to the source directory.

freundt at segen:pts/19:/home/src/devel/llvm-3.0.src> sudo make V=1 install
...
llvm[1]: Regenerating LibDeps.txt.tmp
/bin/sh: /home/src/devel/llvm-3.0.src/tools/llvm-config/LibDeps.txt.tmp:
Permission denied
make[1]: *** [/home/src/devel/llvm-3.0.src/tools/llvm-config/LibDeps.txt.tmp]
Error 1
make[1]: Leaving directory `/home/src/devel/llvm-3.0.src/tools/llvm-config'
make: *** [install] Error 1

Reproducible: always

How to reproduce:
1. run ./configure and make as a user that is allowed to write to the source
tree
2. run make install as a user that isn't allowed to write to the source tree

In my case the user root is allowed to write to /usr but NOT to the source tree
itself.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list