Overview

Request 764183 accepted

- Fix setting CMAKE_INSTALL_LIBDIR in cmake macro
* This is a relative path, see `cmake --help-module GNUInstallDirs`
- Do NOT set -DCMAKE_SKIP_RPATH:BOOL=OFF
* A lot of applications have private libraries in a subdirectory
and require linking with RPATH which is totally valid.

Loading...

Dirk Mueller's avatar

@gladiac can you be more specific? which application requires a specific rpath? the issue is that runpaths are restricted in openSUSE distributions, so just setting them means we break a lot of builds.

I'm okay with taking the libdir->lib change.


Andreas Schneider's avatar

I know a lot of application which put private libraries in %{_libdir}/%{name}. The reason is that those are internal libraries without a public API.

Just to name two of them: * Samba * darktable

RPATH isn't a bad thing it is there for a reason. cmake has very good RPATH handling and only suggests to set it if really needed. It probably had issues in the past with autofools but certainly not with cmake ;-)

If a project sets the RPATH incorrectly, it should be fixed. This way we just hide problems.


Request History
Andreas Schneider's avatar

gladiac created request

- Fix setting CMAKE_INSTALL_LIBDIR in cmake macro
* This is a relative path, see `cmake --help-module GNUInstallDirs`
- Do NOT set -DCMAKE_SKIP_RPATH:BOOL=OFF
* A lot of applications have private libraries in a subdirectory
and require linking with RPATH which is totally valid.


Simon Lees's avatar

simotek accepted request

I'll accept this one

openSUSE Build Service is sponsored by