[Top][All Lists]

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

Re: [BUG] inconsistency in $localstatedir and $runstatedir

From: Alejandro Colomar
Subject: Re: [BUG] inconsistency in $localstatedir and $runstatedir
Date: Mon, 18 Jul 2022 14:11:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

Hi Alfred,

On 7/18/22 13:51, Alfred M. Szmidt wrote:
    So you're saying that "should normally be" doesn't mean the "the
    default value should normally be", but rather that "commonly,
    people use".

Right, the _default_ value depends on _your_ system.  On some systems,
it is one thing, and on other it is something else.

Which is why "you" (you in the sense, you or your distribution) should
have a config.site that specifies the correct thing for your system.

    So maybe you would like to change it to something like:

    This should normally be /var/run, but the default value should be
    /usr/local/var/run, but write it as $(localstatedir)/run

    Or even omit any reference to /var/run, which is just misleading, and say:

    This should normally be /usr/local/var/run, but write it as

    Makes sense?

Not at all, since we really want it to be /var/run not something else,
but the default is different.  So we want it to be /var/run, but it is
set to localstatedir/run for "special" reasons.

    I don't see why we would like to mention /var/run here if we don't
    mention for example /etc (we mention /usr/local/etc).

Because for "locally" installed software, the location is
/usr/local/etc -- not /etc.  /var/run is special.

Okay, so it's kind of "the default $runstatedir is $localstatedir/run but never use it; always set it to runstatedir=/var/run (or /run) at compile time".

If so, I think it needs some more words about it.



Alejandro Colomar

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]