On 26/07/15 19:48, Andrew Savchenko wrote:
> Hello all,
> 
> I propose two improvements to cmake-utils eclass:
> 
> 1. Set default documentation directory
> 
> cmake allows to specify default docs installation directory
> (analogue of --docdir for configure script), but cmake-utils.eclass
> does nothing in this regard and many ebuilds in tree contain the
> same duplicated code:
> 
> -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
> 
> I propose to add this to the eclass, thus ebuilds can be
> simplified. See attached patch.

I count four packages using this option, with three different values
being passed. Use of CMAKE_INSTALL_DOCDIR is not standardised, and may
behave unpredictably between different packages.

> 
> 2. Disable rpath for non-prefix builds
> 
> cmake allows to disable RPATH linking (enabled by default), this
> leads to insecure rpath warning during install phase checks, logs
> show that build directory (-Wl,-rpath /var/tmp/portage/...) is
> added to linker options.
> 
> Many ebuilds fix this by adding one of the following or similar
> options:
> -DCMAKE_SKIP_RPATH=ON
> -DENABLE_RPATH=OFF
> -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF

This is usually a workaround for an underlying bug. Plus, this will
break any package that legitimately uses rpath.


Reply via email to