Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: kde@g.o, soap@g.o
Subject: Re: [gentoo-dev] Re: [PATCH] cmake-utils.eclass: Override CMAKE_INSTALL_{INFO,MAN}DIR
Date: Fri, 02 Mar 2018 09:36:19
Message-Id: 1519983366.1892.2.camel@gentoo.org
In Reply to: [gentoo-dev] Re: [PATCH] cmake-utils.eclass: Override CMAKE_INSTALL_{INFO,MAN}DIR by Michael Palimaka
1 W dniu pią, 02.03.2018 o godzinie 19∶53 +1100, użytkownik Michael
2 Palimaka napisał:
3 > On 03/02/2018 02:40 AM, Michał Górny wrote:
4 > > Provide an explicit override for CMAKE_INSTALL_INFODIR
5 > > and CMAKE_INSTALL_MANDIR to force Gentoo standards for those locations.
6 > > This is needed for Gentoo/FreeBSD where CMake defaults to /usr/info
7 > > and /usr/man; while PMS specifies /usr/share/info and /usr/share/man
8 > > via econf & do* helpers.
9 > > ---
10 > > eclass/cmake-utils.eclass | 2 ++
11 > > 1 file changed, 2 insertions(+)
12 > >
13 > > diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
14 > > index b9f69a824b14..636927d66491 100644
15 > > --- a/eclass/cmake-utils.eclass
16 > > +++ b/eclass/cmake-utils.eclass
17 > > @@ -602,6 +602,8 @@ cmake-utils_src_configure() {
18 > > SET (CMAKE_GENTOO_BUILD ON CACHE BOOL "Indicate Gentoo package build")
19 > > SET (LIB_SUFFIX ${libdir/lib} CACHE STRING "library path suffix" FORCE)
20 > > SET (CMAKE_INSTALL_LIBDIR ${libdir} CACHE PATH "Output directory for libraries")
21 > > + set (CMAKE_INSTALL_INFODIR "${EPREFIX}/usr/share/info" CACHE PATH "")
22 > > + set (CMAKE_INSTALL_MANDIR "${EPREFIX}/usr/share/man" CACHE PATH "")
23 > > _EOF_
24 > > [[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]] && echo 'SET (CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> "${common_config}"
25 > >
26 > >
27 >
28 > There was some discussion in the past about adding these (and some
29 > others), but at that time it was postponed until EAPI 7 due to concerns
30 > about breaking existing packages. What do you think about the risk?
31 >
32
33 I think any real-life breakage is unlikely. GNUInstallDirs are not that
34 popular, and when they are used we can rather expect upstream to be
35 sane-ish enough not to redefine them with an incompatible meaning.
36
37 Then, even if upstream did something crazy that could be affected
38 by this, it's just documentation, so we shouldn't expect any major
39 damage.
40
41 --
42 Best regards,
43 Michał Górny