On Wed, 2020-01-08 at 15:56 +0000, Paul Howarth wrote: > On Wed, 08 Jan 2020 03:41:33 +0000 > Sérgio Basto <sergio@xxxxxxxxxx> 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.9.4-1.fc32.x86_64.rpm > ... > $ 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] https://copr.fedorainfracloud.org/coprs/sergiomb/debs/package/apt/ [2] https://copr-dist-git.fedorainfracloud.org/cgit/sergiomb/debs/apt.git/commit/?id=40f2ea10c62e50edd6ae89886afb7f3f7698f220 -- Sérgio M. B. _______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx