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 Paul. _______________________________________________ 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