On Wed, 08 Jan 2020 03:41:33 +0000
Sérgio Basto <sergio(a)serjux.com> wrote:
> Hi,
>
> In apt.spec we have [1] and when I query apt rpm for scripts (rpm
> -q
> apt --scripts ) we have [2], i.e. %{_sharedstatedir} wasn't
> replaced
> by /var/lib . why ? and how I fix it ?
>
> Thanks ,
>
>
>
>
> [1]
> %pre
> getent group _apt >/dev/null || groupadd -r _apt
> getent passwd _apt >/dev/null || \
> useradd -r -g _apt -d %{_sharedstatedir}/apt -s /sbin/nologin \
> -c "APT account for owning persistent & cache data" _apt
> exit 0
>
>
>
> [2]
> preinstall scriptlet (using /bin/sh):
> getent group apt >/dev/null || groupadd -r apt
> getent passwd apt >/dev/null || \
> useradd -r -g apt -d apt -s /sbin/nologin \
> -c "APT account for owning persistent & cache data" apt
> exit 0
Where did that output come from? The existing build looks OK:
$ wget
https://kojipkgs.fedoraproject.org/packages/apt/1.9.4/1.fc32/x86_64/apt-1...
...
$ rpm -qp --scripts apt-1.9.4-1.fc32.x86_64.rpm
preinstall scriptlet (using /bin/sh):
getent group _apt >/dev/null || groupadd -r _apt
getent passwd _apt >/dev/null || \
useradd -r -g _apt -d /var/lib/apt -s /sbin/nologin \
-c "APT account for owning persistent & cache data" _apt
exit 0
I did a build in copr for F31 [1]
Now, I see that was my mistake [2] , excellent, is working now .
Thank you .
[1]
--
Sérgio M. B.