New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LIB_INSTALL_DIR set to a Relative Path #36
Comments
Hi, What is the security warning? Don't all KDE applications also install to paths relative to CMAKE_INSTALL_PREFIX? Is this problem unique to GammaRay? Thanks, Steve. |
If CMAKE_INSTALL_PREFIX is set to "/usr" everything should be as you expect it. |
Then it's probably a CMake bug, because if you set LIB_INSTALL_DIR to "lib" then that's what goes to the rpath, and not the complete "/usr/lib" path. The security warning is related to setting a relative path in the rpath. |
Stephen, you're the CMake guy. Does it make sense to set LIB_INSTALL_DIR to an absolute path? |
If it's a CMake bug, then your cue is here probably worth to check if at that point you have a relative path or an absolute path and, if relative, then you want to append the CMAKE_INSTALL_PREFIX thing. |
Please file a bug report upstream with a minimal testcase: http://public.kitware.com/Bug/main_page.php (Note: minimal means don't say 'build gammaray' :) ) |
Here's the relevant conclusion of the discussion up at CMake http://www.cmake.org/pipermail/cmake/2013-February/053467.html |
FindKDE4Internal.cmake indeed messes with CMAKE_INSTALL_RPATH (which needs an absolute path). Rather than changing our in my understanding correct relative install dirs, shouldn't it be enough to fix CMAKE_INSTALL_RPATH after find_package(KDE4) (i.e prepend CMAKE_INSTALL_PREFIX if necessary), and possibly fix this for real inside FindKDE4Internal.cmake? Hm, actually, I'm wondering if RPATHs aren't even harmful for us, since the probe will always be using the libs loaded by the host application, never pull them in on its own. So, maybe we should just disable RPATH handling again after loading the KDE4 stuff? |
Re-opening while we figure out what the real solution is. |
Did we figure out a solution for this? |
A workaround has been committed to the 1.3 branch. |
So I'm assuming this fixed. Closing. |
Hi, I noticed that you set the LIB_INSTALL_DIR variable in line 123 of GammaRay-1.3.0/CMakeList.txt to a relative path. This triggers some security warnings in Gentoo when installing the package. Is this intended or can it be changed to /usr/lib${LIBSUFFIX}?
The text was updated successfully, but these errors were encountered: