Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] econf's localstatedir default doesn't match GNU suggestions
Date: Sat, 28 Jan 2012 06:08:29
Message-Id: 20259.37023.36248.611661@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-dev] econf's localstatedir default doesn't match GNU suggestions by "W. Trevor King"
1 >>>>> On Fri, 27 Jan 2012, W. Trevor King wrote:
2
3 > I'm curious abotu why econf uses
4
5 > "${EPREFIX}"/var/lib
6
7 > for the default value of localstatedir, when the GNU coding
8 > standards [1] and autoconf site default examples [2] both suggest
9
10 > $(prefix)/var
11
12 Right, and their $(prefix) defaults to /usr/local whereas ours
13 defaults to /usr. So the default localstatedir would be /usr/local/var
14 or /usr/var, respectively. While the former may make some sense, the
15 latter doesn't (and it violates the FHS).
16
17 > Not that it's a big deal to add
18
19 > src_configure()
20 > {
21 > econf --localstatedir="${EPREFIX}"/var
22 > }
23
24 > to an ebuild, but the missmatch is odd. [...]
25
26 That's not the same, the equivalent of $(prefix)/var is not
27 "${EPREFIX}"/var but "${EPREFIX}"/usr/var.
28
29 > [1]: http://www.gnu.org/prep/standards/html_node/Directory-Variables.html
30 > [2]: http://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Site-Defaults.html