Re: Update: rpm package for utmps, skalibs.

From: <ericwq057_at_qq.com>
Date: Tue, 2 Apr 2024 12:06:08 +0800

After check the installed package of execline on alpine. I choose to install main part of execline to /usr/bin.
Create /usr/sbin directory, create relative symbol link for cd, umask and wait to /usr/bin/execline.

# rebuild the conflicted files (filesystem, bash package) in /usr/sbin
mkdir -p %{buildroot}%{_sbindir}
rm %{buildroot}%{_bindir}/{cd,umask,wait}
cd %{buildroot}%{_sbindir}
ln -s ../bin/execline cd
ln -s ../bin/execline umask
ln -s ../bin/execline wait

Any suggestion?

> On Apr 2, 2024, at 09:05, ericwq057_at_qq.com wrote:
>
> Two options:
> 1. Move the conflicted files: cd, umask and wait to /usr/sbin, while keep the others in /bin directory.
> 2. Install all of them to /usr/sbin directory.
>
> Which one is better?
>
> Wang qi.
>> On Apr 2, 2024, at 06:25, Laurent Bercot <ska-skaware_at_skarnet.org> wrote:
>>
>> If the default PATH has /usr/sbin before /usr/bin for all users, then the
>> best thing is probably to install cd, umask and wait into /usr/sbin. It's
>> not exactly clean, but at this point we're not trying to be clean, we're
>> trying to make things work. And it wouldn't be the first time a binary that's
>> available to all users gets installed in /usr/sbin.
>
Received on Tue Apr 02 2024 - 06:06:08 CEST

This archive was generated by hypermail 2.4.0 : Tue Apr 02 2024 - 06:06:59 CEST