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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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++:
syd...@1263522575: Access Violation!
syd...@1263522575: Child Process ID: 3155
syd...@1263522575: Child CWD:
/var/tmp/paludis/build/sys-devel-clang-scm/work/build/tools/clang
syd...@1263522575: Last Exec: execve("/usr/bin/cmake", ["/usr/bin/cmake", "-E",
"create_symlink", "/usr/bin/clang", "/usr/bin/clang++"])
syd...@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs