On Mon, Jul 2, 2018 at 6:57 AM Thorsten Kukuk
Hi,
we have a %tmpfiles_create() macro, but we have no macro and no rules in our packaging policy, to remove the tmpfiles at de-installation.
That's why I would like to propose a %tmpfiles_remove() macro for the RPM %preun section:
%tmpfiles_remove() \ test -n "$FIRST_ARG" || FIRST_ARG="$1" \ if [ "$FIRST_ARG" -eq 0 ]; then \ [ -z "${TRANSACTIONAL_UPDATE}" -a -x /usr/bin/systemd-tmpfiles ] && \ /usr/bin/systemd-tmpfiles --remove %{?*} || : \ fi \ %{nil}
Any comments or objections?
This is literally pointless, since tmpfiles are supposed to only be installed in /tmp for tmpfs. When the tmpfiles file is removed, then it won't regenerate the tempfiles on reboot. And if you're going to propose a macro like this, do it upstream and get upstream feedback. -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org