SYSCONF_INSTALL_DIR: right location with CMAKE_INSTALL_PREFIX set to /usr?

Friedrich W. H. Kossebau kossebau at kde.org
Thu May 5 21:09:54 CEST 2011


Thanks for your answers, Yury and Alex, but...

Jeudi, le 5 may 2011, à 20:02, vous avez écrit:
> On Wednesday 04 May 2011, Friedrich W. H. Kossebau wrote:
> > Hi,
> > 
> > I have blindly copied this for cagibi but since then wonder if this is
> > 
> > correct in FindKDE4Internal.cmake:
> >    _set_fancy(SYSCONF_INSTALL_DIR      "${CMAKE_INSTALL_PREFIX}/etc"
> > 
> > "The sysconfig install dir (default ${CMAKE_INSTALL_PREFIX}/etc)")
> > 
> > This will result in /usr/etc if CMAKE_INSTALL_PREFIX is set to /usr. But
> > shouldn't it be /etc then?
> 
> By default nothing should be installed outside CMAKE_INSTALL_PREFIX, so I'd
> say it's correct.

But if CMAKE_INSTALL_PREFIX is set to that special dir /usr?
Maybe it is due to the fact that I recently had to deal with auto* (no 
comment) where /usr/local seems default, so you had to enforce /usr by passing 
--prefix=/usr, thus I got used to that, but with auto* that also results in 
sysconfdir being /etc by default, not /usr/etc, which to be honest is what you 
would expect at least on Linux, no? So I would make /usr a special case :)

Hm, reading this docu here
	http://www.gnu.org/s/hello/manual/autoconf/Site-Defaults.html 
that seems to be enforced by some /usr/share/config.site (if prefix=/usr), but 
I could not find such a file, so maybe it is enforced by something as well 
that for /usr the directory variables are consistent with the Filesystem 
Hierarchy Standard (FHS).

Seems I am the only/first one to complain about this and everybody else is 
happy with that, so, well, seems I have to get used to also pass 
SYSCONF_INSTALL_DIR in that case :/

Cheers
Friedrich
-- 
Desktop Summit 2011 - Berlin, Germany - August 6-12th - www.desktopsummit.org


More information about the Kde-buildsystem mailing list