Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649200 - dev-util/cmake: GNUInstallDirs disagrees with Gentoo on *-fbsd mandir
Summary: dev-util/cmake: GNUInstallDirs disagrees with Gentoo on *-fbsd mandir
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
: 620250 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-03-01 14:36 UTC by Michał Górny
Modified: 2018-03-11 11:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-03-01 14:36:46 UTC
if(CMAKE_SYSTEM_NAME MATCHES "^(.*BSD|DragonFly)$")
  _GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_INFODIR "info"
    "Info documentation (info)")
  _GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_MANDIR "man"
    "Man documentation (man)")


This means that packages using GNUInstallDirs end up installing manpages to /usr/man instead of /usr/share/man. Not sure what's the most correct solution here but I think the only 'easy' way out would be to patch it out and use /usr/share locations as PMS suggests.
Comment 1 Larry the Git Cow gentoo-dev 2018-03-10 11:35:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04c4a2f5840fe8aaf876c7c414b038e036b5c981

commit 04c4a2f5840fe8aaf876c7c414b038e036b5c981
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-03-01 15:37:23 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-03-10 11:35:13 +0000

    cmake-utils.eclass: Override CMAKE_INSTALL_{INFO,MAN}DIR
    
    Provide an explicit override for CMAKE_INSTALL_INFODIR
    and CMAKE_INSTALL_MANDIR to force Gentoo standards for those locations.
    This is needed for Gentoo/FreeBSD where CMake defaults to /usr/info
    and /usr/man; while PMS specifies /usr/share/info and /usr/share/man
    via econf & do* helpers.
    
    Closes: https://bugs.gentoo.org/649200

 eclass/cmake-utils.eclass | 2 ++
 1 file changed, 2 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2018-03-11 00:18:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=555fcc6bd1c4572edc4477c08be224211767827a

commit 555fcc6bd1c4572edc4477c08be224211767827a
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-03-01 15:37:23 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2018-03-11 00:18:07 +0000

    cmake-utils.eclass: Override CMAKE_INSTALL_{INFO,MAN}DIR
    
    Provide an explicit override for CMAKE_INSTALL_INFODIR
    and CMAKE_INSTALL_MANDIR to force Gentoo standards for those locations.
    This is needed for Gentoo/FreeBSD where CMake defaults to /usr/info
    and /usr/man; while PMS specifies /usr/share/info and /usr/share/man
    via econf & do* helpers.
    
    Closes: https://bugs.gentoo.org/649200

 eclass/cmake-utils.eclass | 2 ++
 1 file changed, 2 insertions(+)
Comment 3 Yuta SATOH 2018-03-11 11:10:23 UTC
*** Bug 620250 has been marked as a duplicate of this bug. ***