tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CMAKE_INSTALL_MANDIR



On Fri, 15 Jan 2021 17:20:00 +0100
Edgar Fuß <ef%math.uni-bonn.de@localhost> wrote:

> Any CMake experts around here?
> 
> I tried to build the newly imported net/icinga2 on macOS (it needs a
> patch to deal with case-insensitive file systems that's still WIP)
> and it complains that the build provides share/man/man8/icinga2.8
> while the PLIST says man/man8/icinga2.8 (it shoud say PKG_MANDIR, but
> that's still another issue).
> 
> It works on NetBSD (the build provides man/man8/icinga2.8).
> 
> I'm slightly out of luck. bmake show-var VARNAME=CMAKE_ARGS shows
> -DCMAKE_INSTALL_MANDIR:PATH=man, the package's doc/CMakeLists.txt
> says DESTINATION ${CMAKE_INSTALL_MANDIR}/man8, yet
> doc/cmake_install.cmake contains file(INSTALL DESTINATION
> "${CMAKE_INSTALL_PREFIX}/share/man/man8 ...) on macOS and
> .../man/man8 on NetBSD.
> 
> What the hell is going on?

Not a CMake expert but I looked at the code on github and it seems that
icinga2 uses its own copy of GNUInstallDirs that does not depend on
CMAKE_INSTALL_MANDIR. (See lines 169 to 183 in
third-party/cmake/GNUInstallDirs.cmake)
CMake comes with GNUInstallDirs and that one works as expected.
I suggest that you remove third-party/cmake/GNUInstallDirs.cmake so
that the package uses the one that comes with CMake and test if that
works. (I don't have a mac to try on)


Home | Main Index | Thread Index | Old Index