On Thu, 2021-04-22 at 08:31 -0500, Bruce Dubbs via blfs-dev wrote:
>
>
>
> Forwarded Message
> Subject: BLSF-10.1: polkit / shadow; nspr
> Date: Thu, 22 Apr 2021 12:23:51 +0200
> From: Rainer Fiebig
> To: Bruce Dubbs
>
> Hi!
>
> polkit / shadow
> ***
> The following command doesn't work, the directory /etc/polkit-1 is
> *not* being created:
>
> useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \
> -g polkitd -s /bin/false polkitd
>
> That's obviously due to a change in shadow, as its manpage (-4.8.1)
> now
> states that - if missing - the homedir will *not* be created. For
> version 4.6 it says the opposite.
It won't break anything. /etc/polkit-1 is installed by make install
then (though it now belongs to root, nothing bad is happening).
It seems polkit does not need a home directory for its user at all.
Arch Linux uses / as the "home directory" of polkitd user.
>
> Apart from that I suggest that
>
> --enable-libelogind=no
>
> be mentioned in the config-options for polkit because otherwise it
> won't
> build if elogind is not installed (as in my case).
>
>
> nspr
>
> The following line doesn't work, bash-5.1 complains about a missing
> ']':
>
> $([ $(uname -m) = x86_64 ] && echo --enable-64bit)
>
> This does work, however:
>
> $( if [[ $(uname -m) == x86_64 ]]; then echo "--enable-
> 64bit"; fi )
>
>
> The first line does work in bash-4.4.18, though.
I can't reproduce this. On my system and rivendell it works perfectly.
I believe the OP mistyped the command somehow (for example, missed the
space between x86_64 and ]).
--
Xi Ruoyao
School of Aerospace Science and Technology, Xidian University
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page