Re: [lfs-dev] Util-linux uuidd.service file specifies a user and group

2021-01-28 Thread Bruce Dubbs via lfs-dev

On 1/28/21 2:18 PM, Brendan L via lfs-dev wrote:

On Thu, Jan 28, 2021 at 11:22 AM Bruce Dubbs via lfs-dev
 wrote:


On 1/28/21 10:04 AM, Brendan L via lfs-dev wrote:

I thought I'd also mention that for the instructions, it currently
explicitly sets runstatedir=/run.  You can have the same effect of
runstatedir=/run by just setting --localstatedir=/var.  I found arch
does this in their builds.


That puts files in /var/run which is a symlink to /run.  Better to just
go direct.



I think that's the normal outcome, but when I run configure on
util-linux with --localstatedir=/var, runstatedir is set the /run and
not /var/run when checking the config.log.  It also show /run in the
configure summary.


Interesting.  I checked configure.ac and see (with minor formatting):

# default for old versions without $runstatedir
AS_IF([test x"$runstatedir" = x], [runstatedir='${localstatedir}/run'])

# our default if $localstatedir unchanged
AS_CASE([$localstatedir:$runstatedir],
 [NONE:'${localstatedir}/run' |
  /var:'${localstatedir}/run' |
  NONE:'/run' ],
   [runstatedir=/run; AC_MSG_NOTICE([  --runstatedir defaults to /run])]
)

So it looks like a couple of ways to do what we want.  The default for 
$localstatedir if nothing is specified is /usr/var.  As far as I can 
tell though, nothing uses /usr/var although it does seem to be created.


The FHS does not mention /usr/var, so it looks like your suggestion 
would eliminate that as well as fixing the run problem.


What to others think?

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Re: [lfs-dev] Util-linux uuidd.service file specifies a user and group

2021-01-28 Thread Brendan L via lfs-dev
On Thu, Jan 28, 2021 at 11:22 AM Bruce Dubbs via lfs-dev
 wrote:
>
> On 1/28/21 10:04 AM, Brendan L via lfs-dev wrote:
> > I thought I'd also mention that for the instructions, it currently
> > explicitly sets runstatedir=/run.  You can have the same effect of
> > runstatedir=/run by just setting --localstatedir=/var.  I found arch
> > does this in their builds.
>
> That puts files in /var/run which is a symlink to /run.  Better to just
> go direct.
>

I think that's the normal outcome, but when I run configure on
util-linux with --localstatedir=/var, runstatedir is set the /run and
not /var/run when checking the config.log.  It also show /run in the
configure summary.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Re: [lfs-dev] Util-linux uuidd.service file specifies a user and group

2021-01-28 Thread Bruce Dubbs via lfs-dev

On 1/28/21 10:04 AM, Brendan L via lfs-dev wrote:

I thought I'd also mention that for the instructions, it currently
explicitly sets runstatedir=/run.  You can have the same effect of
runstatedir=/run by just setting --localstatedir=/var.  I found arch
does this in their builds.


That puts files in /var/run which is a symlink to /run.  Better to just 
go direct.


  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Re: [lfs-dev] Util-linux uuidd.service file specifies a user and group

2021-01-28 Thread Brendan L via lfs-dev
I thought I'd also mention that for the instructions, it currently
explicitly sets runstatedir=/run.  You can have the same effect of
runstatedir=/run by just setting --localstatedir=/var.  I found arch
does this in their builds.

On Wed, Jan 27, 2021 at 11:28 PM Xi Ruoyao via lfs-dev
 wrote:
>
> On 2021-01-27 15:22 -0600, Brendan L via lfs-dev wrote:
> > For the systemd book util-linux installs uuidd.service and
> > uuidd.socket.  The service file specifies a user and group of uuidd.
> > Should that user and group be added to the book?
>
> Added in r12103.  Thanks for report.
> --
> Xi Ruoyao 
> School of Aerospace Science and Technology, Xidian University
>
> --
> http://lists.linuxfromscratch.org/listinfo/lfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Re: [lfs-dev] Util-linux uuidd.service file specifies a user and group

2021-01-27 Thread Xi Ruoyao via lfs-dev
On 2021-01-27 15:22 -0600, Brendan L via lfs-dev wrote:
> For the systemd book util-linux installs uuidd.service and
> uuidd.socket.  The service file specifies a user and group of uuidd.
> Should that user and group be added to the book?

Added in r12103.  Thanks for report.
-- 
Xi Ruoyao 
School of Aerospace Science and Technology, Xidian University

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

[lfs-dev] Util-linux uuidd.service file specifies a user and group

2021-01-27 Thread Brendan L via lfs-dev
For the systemd book util-linux installs uuidd.service and
uuidd.socket.  The service file specifies a user and group of uuidd.
Should that user and group be added to the book?
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page