Optional update for systemd-rpm-macros

Announcement ID: SUSE-OU-2020:3835-1
Rating: low
References:
Affected Products:
  • SUSE Linux Enterprise High Performance Computing 12 SP5
  • SUSE Linux Enterprise Server 12 SP5
  • SUSE Linux Enterprise Server for SAP Applications 12 SP5

An update that contains one feature and has three fixes can now be installed.

Description:

This update for systemd-rpm-macros fixes the following issues:

Many changes have been applied with this update. The ones outlined below are the most important ones. Please refer to the systemd-rpm-macros.rpm changelog for a full list of all changes.

  • Move macros.systemd from /etc to /usr macros.systemd has never meant to be modified and treated like a configuration file. Hence let's move it to /usr and don't tag it with %config. In the very unlikely case it's been modified, it will be backed up with .rpmsave extension but no more read by rpmbuild.
  • Added missing macro %_userpresetdir Escape "--user" and "--global" arguments with "\" since rpm treats arguments starting with "-" as macro options which causes "Unknown option" rpm error. Use %{expand:...} to force expansion of the inner macro. Otherwise %{?} is recursively defined as "--user --global {%?}" which causes "Too many levels of recursion in macro expansion" rpm error.
  • Deprecate '-f'/'-n' options When used with %service_del_preun, support for these options will be dropped as DISABLE_STOP_ON_REMOVAL support will be removed on the next version of SLE (jsc#SLE-8968) When used with %service_del_postun, they should be replaced with their counterpart %service_del_postun_with_restart/%service_del_postun_without_restart
  • Backport %service_del_postun_with_restart() It's the counterpart of %service_del_postun_without_restart() and replaces the '-f' option of %service_del_postun().
  • Backport %systemd_ordering This macro is already available in later distros and should ease backports of packages, which rely on it.
  • Dont apply presets when migrating from a disabled initscript (bsc#1178481)

Patch Instructions:

To install this SUSE update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
Alternatively you can run the command listed for your product:

  • SUSE Linux Enterprise High Performance Computing 12 SP5
    zypper in -t patch SUSE-SLE-SERVER-12-SP5-2020-3835=1
  • SUSE Linux Enterprise Server 12 SP5
    zypper in -t patch SUSE-SLE-SERVER-12-SP5-2020-3835=1
  • SUSE Linux Enterprise Server for SAP Applications 12 SP5
    zypper in -t patch SUSE-SLE-SERVER-12-SP5-2020-3835=1

Package List:

  • SUSE Linux Enterprise High Performance Computing 12 SP5 (noarch)
    • systemd-rpm-macros-5-10.19.1
  • SUSE Linux Enterprise Server 12 SP5 (noarch)
    • systemd-rpm-macros-5-10.19.1
  • SUSE Linux Enterprise Server for SAP Applications 12 SP5 (noarch)
    • systemd-rpm-macros-5-10.19.1

References: