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

2022-07-19 Thread Alejandro Colomar
Hi Alfred, On 7/19/22 09:26, Alfred M. Szmidt wrote: > 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

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

2022-07-19 Thread Alfred M. Szmidt
> 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

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

2022-07-18 Thread Jeffrey Walton
On Mon, Jul 18, 2022 at 10:22 AM Bruno Haible wrote: > > Jeffrey Walton wrote: > > I believe MacOS maps /etc and /tmp to a private area for the user. > > They are not world readable/writable. I believe Apple did it for > > hardening. > > > > Here's from a MacOS X 10.5 machine I have: > > > >

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

2022-07-18 Thread Bruno Haible
Jeffrey Walton wrote: > I believe MacOS maps /etc and /tmp to a private area for the user. > They are not world readable/writable. I believe Apple did it for > hardening. > > Here's from a MacOS X 10.5 machine I have: > > $ ls -l /etc /tmp > lrwxr-xr-x@ 1 root wheel 11 Feb 10 2015

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

2022-07-18 Thread Jeffrey Walton
On Mon, Jul 18, 2022 at 8:18 AM Edward Welbourne wrote: > > Alejandro Colomar (Monday, July 18, 2022 14:07) > > MacOS seems to be setting TMPDIR (or at least some script run at > > startup seems to be setting it in my system), and it's set to something > > really weird that I don't trust will

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

2022-07-18 Thread Alejandro Colomar
Hi Eddy, On 7/18/22 14:17, Edward Welbourne wrote: Alejandro Colomar (Monday, July 18, 2022 14:07) MacOS seems to be setting TMPDIR (or at least some script run at startup seems to be setting it in my system), and it's set to something really weird that I don't trust will exist after reboot.

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

2022-07-18 Thread Alejandro Colomar
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

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

2022-07-18 Thread Edward Welbourne
Alejandro Colomar (Monday, July 18, 2022 14:07) > MacOS seems to be setting TMPDIR (or at least some script run at > startup seems to be setting it in my system), and it's set to something > really weird that I don't trust will exist after reboot. Then I think the way you're using tmpdir

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

2022-07-18 Thread Alejandro Colomar
On 7/18/22 13:41, Bruno Haible wrote: Alejandro Colomar wrote: I used the following: tmpdir := $(prefix)/tmp Writing it like this has two drawbacks: 1) The user cannot force a specific temporary directory by setting the TMPDIR environment variable. This may be blocking if the

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

2022-07-18 Thread Alfred M. Szmidt
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

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

2022-07-18 Thread Bruno Haible
Alejandro Colomar wrote: > I used the following: > > tmpdir := $(prefix)/tmp Writing it like this has two drawbacks: 1) The user cannot force a specific temporary directory by setting the TMPDIR environment variable. This may be blocking if the default temporary directory has not

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

2022-07-18 Thread Alejandro Colomar
Hi, 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