[LLVMbugs] [Bug 6046] New: make install DESTDIR=/ foo attempts to create symlink outside DESTDIR

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jan 14 18:48:29 PST 2010


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

           Summary: make install DESTDIR=/foo attempts to create symlink
                    outside DESTDIR
           Product: Build scripts
           Version: trunk
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cmake
        AssignedTo: ofv at wanadoo.es
        ReportedBy: ingmar at exherbo.org
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4055)
 --> (http://llvm.org/bugs/attachment.cgi?id=4055)
Respect DESTDIR when creating clang++ symlink

In Exherbo everything is built inside a sandbox (known as sydbox), which
doesn't allow writes outside of the build directory for security reasons.

Using CMake, make DESTDIR=/foo install attempts to create a symlink 
/usr/bin/clang++ rather than ${DESTDIR}/usr/bin/clang++:

sydbox at 1263522575: Access Violation!                                            
sydbox at 1263522575: Child Process ID: 3155                                       
sydbox at 1263522575: Child CWD:
/var/tmp/paludis/build/sys-devel-clang-scm/work/build/tools/clang               
sydbox at 1263522575: Last Exec: execve("/usr/bin/cmake", ["/usr/bin/cmake", "-E",
"create_symlink", "/usr/bin/clang", "/usr/bin/clang++"])                        
sydbox at 1263522575: Reason: symlink(?, "/usr/bin/clang++", ...)                  

Fairly sure the attached patch should work, but I can't test it atm.


-- 
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