bug-make
[Top][All Lists]
Advanced

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

Re: Missing [/usr/local]/var/lib and [/usr/local]/tmp


From: Alejandro Colomar
Subject: Re: Missing [/usr/local]/var/lib and [/usr/local]/tmp
Date: Mon, 18 Jul 2022 14:19:01 +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:
    I'm improving a Makefile for a project which uses [/usr/local]/var/lib
    and [/usr/local]/tmp.  I see there's no standard in the GNU coding
    standards for directory variables.

    I used the following:

    tmpdir := $(prefix)/tmp
    libstatedir := $(localstatedir)/lib

    I developed the name $libstatedir for symmetry with $runstatedir, which
    is also a child of $localstatedir, with the first part of the name as
    the name of the child dir.

    Would you mind adding those to your directory variables?

I think the first question is to understand what a "library state
directory" is?  Whate are you storing under it?  Seems like something
architecture independent? Are the files shareable between
installations?

I'm talking about NGINX Unit, which stores the running configuration (kind of what /etc/nginx/nginx.conf was to NGINX, but Unit uses a runtime defined JSON file). It also stores a few other files, but that's the main one. If the process is restarted, it picks up that configuration, so it needs to be kept after reboot (so not /run)

It is arch independent.

And it doesn't make sense to share it, as it represents the state of the running instance of unitd. Sharing it would probably break other instances of the process when one of the instances modifies it.


For /tmp, the only thing that should realy be used is /tmp (or
/var/tmp).  /usr/tmp would be strange, and very non-standard.

Yup, I replied to Bruno's message, which was more or less like this.

Thanks,

Alex

--
Alejandro Colomar
<http://www.alejandro-colomar.es/>

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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