1 |
I'm curious abotu why econf uses |
2 |
|
3 |
"${EPREFIX}"/var/lib |
4 |
|
5 |
for the default value of localstatedir, when the GNU coding standards |
6 |
[1] and autoconf site default examples [2] both suggest |
7 |
|
8 |
$(prefix)/var |
9 |
|
10 |
Not that it's a big deal to add |
11 |
|
12 |
src_configure() |
13 |
{ |
14 |
econf --localstatedir="${EPREFIX}"/var |
15 |
} |
16 |
|
17 |
to an ebuild, but the missmatch is odd. I did some digging through |
18 |
the history of both Portage and PMS, but didn't find anything clear. |
19 |
PMS has had that value as the default since |
20 |
|
21 |
commit a686e410fd4d20f1d67b1c991936de78379d00c1 |
22 |
Author: Stephen Bennett <spb@g.o> |
23 |
Date: Tue Mar 6 18:44:21 2007 +0000 |
24 |
|
25 |
Add build commands section based on pioto's patch. Add a TODO |
26 |
command using the fixme package, and change todiscuss to use this |
27 |
too. Possibly other misc changes. |
28 |
|
29 |
which is not very informative on it's own. Portage has had the value |
30 |
since |
31 |
|
32 |
commit d9fc4acc572c6647a4f27b838d35d27d805d190e |
33 |
Author: Jason Stubbs <jstubbs@g.o> |
34 |
Date: Sun Aug 28 08:37:44 2005 +0000 |
35 |
|
36 |
Migration (without history) of the current stable line to subversion. |
37 |
|
38 |
Also not very helpful. |
39 |
|
40 |
Anyhow, there is obviously a good deal of history here. Looking |
41 |
through the ebuilds of packages on my system that do have something in |
42 |
`/var/lib`, it looks like they either don't use autoconf |
43 |
(e.g. sys-apps/portage), hardcode the path (i.e. avoid using |
44 |
localstatedir, e.g. app-admin/eselect and app-crypt/mit-krb5) or |
45 |
override the value in their own ebuilds (e.g. x11-base/xorg-server) |
46 |
|
47 |
$ equery belongs -n /var/lib | while read LINE; do \ |
48 |
ATOM="${LINE%% *}"; \ |
49 |
grep -c localstatedir "/usr/portage/$ATOM/"*.ebuild; done |
50 |
|
51 |
Is this one of those things that's too baked in to be worth changing, |
52 |
or is this just too peripheral to have bothered anyone else? |
53 |
|
54 |
Thanks, |
55 |
Trevor |
56 |
|
57 |
[1]: http://www.gnu.org/prep/standards/html_node/Directory-Variables.html |
58 |
[2]: http://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Site-Defaults.html |
59 |
|
60 |
-- |
61 |
This email may be signed or encrypted with GnuPG (http://www.gnupg.org). |
62 |
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy |