Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
systemd-rpm-macros
systemd-rpm-macros.changes
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File systemd-rpm-macros.changes of Package systemd-rpm-macros
------------------------------------------------------------------- Wed May 10 12:59:26 UTC 2023 - Franck Bui <fbui@suse.com> - Bump version to 12 ------------------------------------------------------------------- Wed May 10 12:57:44 UTC 2023 - Franck Bui <fbui@suse.com> - Fix %sysctl_apply() and %binfmt_apply() so they are disabled when called from a chroot (bsc#1211272) ------------------------------------------------------------------- Thu Feb 24 08:14:56 UTC 2022 - Franck Bui <fbui@suse.com> - Bump version to 11 ------------------------------------------------------------------- Thu Feb 24 07:20:42 UTC 2022 - Franck Bui <fbui@suse.com> - /usr/lib/modprobe.d is not supported by kmod shipped by SLE12-SP*, /lib/modprobe.d is the only supported path for configuration files shipped by downstream (bsc#1196405). ------------------------------------------------------------------- Wed Jan 19 20:14:36 UTC 2022 - Franck Bui <fbui@suse.com> - Bump version to 10 ------------------------------------------------------------------- Wed Jan 19 20:13:18 UTC 2022 - Franck Bui <fbui@suse.com> - %sysusers_create_inline was wrongly marked as deprecated - %sysusers_create can be useful in certain cases and won't go away until we'll move to file triggers. So don't mark it as deprecated too ------------------------------------------------------------------- Wed Nov 17 12:43:36 UTC 2021 - Franck Bui <fbui@suse.com> - Bump version to 9 ------------------------------------------------------------------- Wed Nov 17 12:40:29 UTC 2021 - Franck Bui <fbui@suse.com> - Introduce %_systemd_util_dir It's a backport of upstream commit 3bc66bfa0136e370a8f7b06c3b69a52f5636ef82. ------------------------------------------------------------------- Wed Jul 21 14:41:35 UTC 2021 - Franck Bui <fbui@suse.com> - Bump to version 8 ------------------------------------------------------------------- Wed Jul 21 14:39:45 UTC 2021 - Franck Bui <fbui@suse.com> - Make use of "Suggests:" in %systemd_ordering Until libzypp supports "OrderWithRequires:", we need to specify a similar ordering constraint that can be understood by the dep solver as well. Hence the use of "Suggests:" in %systemd_ordering (workaround for bsc#1187332). ------------------------------------------------------------------- Wed Jul 21 14:34:40 UTC 2021 - Franck Bui <fbui@suse.com> - Introduce %sysusers_create_package %sysusers_create and %sysusers_create_inline are now deprecated and the new macro should be used instead. Upstream commit 07a7d4a0040d221ff09e527e91c112b4ffab1dba. ------------------------------------------------------------------- Tue May 25 19:10:30 UTC 2021 - Franck Bui <fbui@suse.com> - %sysusers_create_inline: use here-docs instead of echo (bsc#1186282) Upstream commit dd2490ae12ad1e1795ecbf8f8944b950da9c8d06. ------------------------------------------------------------------- Fri Mar 5 17:09:30 UTC 2021 - Franck Bui <fbui@suse.com> - Bump to version 7 ------------------------------------------------------------------- Fri Mar 5 17:07:11 UTC 2021 - Franck Bui <fbui@suse.com> - Remove confusing --user before --global in %systemd_user_preun It's actually a backport of upstream commit 28d36da64a7a23a55e8d0a139f2620384fd058b3 - Update a few comments ------------------------------------------------------------------- Fri Mar 5 17:06:11 UTC 2021 - Franck Bui <fbui@suse.com> - Don't pass -f to rm to make sure that rm failures will be logged But also make sure to not abort the scriptlet prematurely if rm fails. ------------------------------------------------------------------- Fri Mar 5 16:58:32 UTC 2021 - Antonio Larrosa <alarrosa@suse.com> - Add a %systemd_user_pre macro (boo#1183051, boo#1183012) It creates a /run/systemd/rpm/needs-user-preset/$service file for each new service being installed so %systemd_user_post can call `systemctl --global preset $service` properly for newly installed user services (even when it's introduced via a package update). ------------------------------------------------------------------- Fri Mar 5 16:47:09 UTC 2021 - Franck Bui <fbui@suse.com> - Fix %systemd_user_post (boo#1183051, boo#1182661) The --global parameter was handled as if it was another service name so %systemd_user_post wasn't working properly. Replace %systemd_user_post with the code from %service_add_post it was being expanded to but correctly passing --global to systemctl. ------------------------------------------------------------------- Mon Feb 15 19:23:11 UTC 2021 - Franck Bui <fbui@suse.com> - Tabify %service_del_postun_without_restart So it's consistent with the other macros. No functional change. ------------------------------------------------------------------- Mon Feb 15 18:05:06 UTC 2021 - Franck Bui <fbui@suse.com> - Bump to version 6 ------------------------------------------------------------------- Mon Feb 15 17:27:35 UTC 2021 - Franck Bui <fbui@suse.com> - Make upstream %systemd_{pre,post,preun,postun} aliases to their SUSE counterparts Packagers can now choose to use the upstream or the SUSE variants indifferently. For consistency the SUSE variants should be preferred since almost all SUSE packages already use them but the upstream versions might be usefull in certain cases where packages need to support multiple distros based on RPM. ------------------------------------------------------------------- Mon Feb 15 17:24:22 UTC 2021 - Franck Bui <fbui@suse.com> - Improve the logic used to apply the presets (bsc#1177039) Before presests were applied at a) package installation b) new units introduced via a package update (but after making sure that it was not a SysV initscript being converted). The problem is that a) didn't handle package a renaming or split properly since the package with the new name is installed rather being updated and therefore the presets were applied even if they were already with the old name. We now cover this case (and the other ones) by applying presets only if the units are new and the services are not being migrated. This regardless of whether this happens during an install or an update. ------------------------------------------------------------------- Tue Nov 24 16:35:50 UTC 2020 - Franck Bui <fbui@suse.com> - Bump to version 5 (bsc#1179020) Backport changes from SLE15 so SLE12-SP2 and SLE15 versions are mostly identical. ------------------------------------------------------------------- Tue Nov 24 16:01:42 UTC 2020 - Franck Bui <fbui@suse.com> - Drop reference to FIRST_ARG in new introduced macro %service_del_postun_without_restart Influencing the behavior of the macro with 'FIRST_ARG' variable was a hack. We should not add that to newly introduced interfaces. ------------------------------------------------------------------- Tue Nov 24 15:55:10 UTC 2020 - Franck Bui <fbui@suse.com> - Rename the tag file used to detect when presets need to be applied Rather than placing these tags directly under /run, let's place them under /run/systemd/rpm. This also has the benefit to make the workaround for bsc#1059627 no more needed. ------------------------------------------------------------------- Tue Nov 24 15:18:39 UTC 2020 - Franck Bui <fbui@suse.com> - Move macros.systemd from /etc to /usr (backport from SLE15) 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. ------------------------------------------------------------------- Tue Nov 24 14:51:14 UTC 2020 - Franck Bui <fbui@suse.com> - Add missing macro %_userpresetdir ------------------------------------------------------------------- Tue Nov 24 14:47:41 UTC 2020 - Franck Bui <fbui@suse.com> - rpm: fix %systemd_user_post() macro. 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. Upstream commit: e67ba783696f21782ad5c2ba00515d387016e785 ------------------------------------------------------------------- Tue Nov 24 14:43:22 UTC 2020 - Franck Bui <fbui@suse.com> - Deprecate '-f'/'-n' options (backported from SLE15) 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 ------------------------------------------------------------------- Tue Nov 24 14:39:21 UTC 2020 - Franck Bui <fbui@suse.com> - 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(). ------------------------------------------------------------------- Tue Nov 24 14:32:08 UTC 2020 - Franck Bui <fbui@suse.com> - Backport %systemd_ordering This macro is already available in later distros and should ease backports of packages, which rely on it. - Update some comments ------------------------------------------------------------------- Tue Nov 24 14:07:14 UTC 2020 - Franck Bui <fbui@suse.com> - Really test the presence of systemctl once No functional changes. ------------------------------------------------------------------- Tue Nov 24 09:47:06 UTC 2020 - Franck Bui <fbui@suse.com> - Split private macros related to presets off as these macros have never been intended to be used by any package but systemd-presets-branding. In fact these have been completely removed since SLE15. So let's move them into a "private" file. - Dont apply presets when migrating from a disabled initscript (bsc#1178481) - Test for the presence of systemctl only once in %service_add_{post,pre} ------------------------------------------------------------------- Wed Sep 30 14:28:50 UTC 2020 - Franck Bui <fbui@suse.com> - Passing %{?*} when calling a macro is broken (bsc#1177034) Apparently it won't be fixed (!?) so let's workaround it. ------------------------------------------------------------------- Fri Sep 25 09:36:45 UTC 2020 - Franck Bui <fbui@suse.com> - Bump to version 4.1 ------------------------------------------------------------------- Fri Sep 25 09:30:44 UTC 2020 - Franck Bui <fbui@suse.com> - Backport missing macros of directory paths from upstream + %_modulesloaddir + %_modprobedir + %_systemdgeneratordir + %_systemdusergeneratordir ------------------------------------------------------------------- Fri Sep 25 09:29:46 UTC 2020 - Franck Bui <fbui@suse.com> - Make sure %_restart_on_update_never and %_stop_on_removal_never don't expand to the empty string (bsc#1176932) Otherwise sequences like the following code: if [ ... ]; then %_restart_on_update_never fi would result in the following incorrect shell syntax: if [ ... ]; then fi ------------------------------------------------------------------- Fri Sep 11 12:43:28 UTC 2020 - Franck Bui <fbui@suse.com> - Introduce %service_del_postun_without_restart (bsc#1173034) This new interface is preferred over the use of %service_del_postun with '-f' and '-n' options. It's been in Factory since a year and a half. ------------------------------------------------------------------- Wed Aug 8 10:47:24 UTC 2018 - fbui@suse.com - Fix %systemd_post(): it's never called during package removal (bsc#1104176) Also make it useful by restoring its original implementation. ------------------------------------------------------------------- Thu Jan 18 17:19:15 UTC 2018 - fbui@suse.com - Backport from Factory: - Make sure to apply presets if packages start shipping units during upgrades (bsc#1071543 bsc#1073715) If a package started shipping units during upgrade only sysv migration was done. However if the package didn't ship any sysv scripts before no presets were applied. Now during upgrades, preset are always applied (still only during the first time the units are installed) then followed by the sysv migration machinery. The downside of this is that migrated services can have symlinks in both runlevel.target.wants/ (created by the sysv migration) and in the directory specified by the [Install] sections (created by "systemctl preset")... The whole thing should be rewritten. ------------------------------------------------------------------- Thu Jan 18 17:16:06 UTC 2018 - fbui@suse.com - Backport from Factory: - Remove a useless test in %service_add_pre() The test was placed where the condition '[ "$FIRST_ARG" -gt 1 ]' was always true. ------------------------------------------------------------------- Fri Dec 1 10:47:29 UTC 2017 - fbui@suse.com - Make sure to clean up "new-in-upgrade" tag file (bsc#1059627) The tag file might have been incorrectly left by a preceding update. ------------------------------------------------------------------- Wed Jun 1 11:54:44 UTC 2016 - Thomas.Blume@suse.com - %service_add_post() suppress daemon-reload when in installation system (bsc#982343) ------------------------------------------------------------------- Fri Apr 15 07:41:29 UTC 2016 - idonmez@suse.com - Sync with Factory for Gnome 3.20 fate#318572 - Version bumped to 3 ------------------------------------------------------------------- Thu Mar 10 13:05:19 UTC 2016 - werner@suse.de - Add %tmpfiles_create macro (bsc#956849) - Allow the packagers to specify the options -f and -n on the macros %service_del_preun(), %service_del_postun(), %systemd_post(), and %systemd_preun() (boo#968405) ------------------------------------------------------------------- Fri Nov 20 16:53:23 UTC 2015 - werner@suse.de - Support of DISABLE_STOP_ON_REMOVAL and DISABLE_RESTART_ON_UPDATE from /etc/sysconfig/service (bsc#955996) ------------------------------------------------------------------- Fri Sep 18 15:27:04 CEST 2015 - sbrabec@suse.com - Skip %systemd_preset_* during the clean installation to prevent presetting of all services (boo#946216). ------------------------------------------------------------------- Thu Aug 27 15:27:04 CEST 2015 - sbrabec@suse.com - Add %systemd_preset_pre and %systemd_preset_posttrans that will do one shot presetting of all services with changed system preset. It makes possible to to fix bad default service state (bnc#900935#c46, FATE#318949, FATE#317727, bnc#921075). - Increment version to 2.1. ------------------------------------------------------------------- Mon Jun 15 11:33:28 UTC 2015 - jengelh@inai.de - Check for presence/executability of systemd programs before executing them, and do not suppress warnings/errors resulting from them. ------------------------------------------------------------------- Fri Jan 9 13:38:16 UTC 2015 - jengelh@inai.de - Update with new macros from systemd 218 - Remove empty sections from specfile ------------------------------------------------------------------- Tue Nov 18 15:16:13 UTC 2014 - werner@suse.de - Mark /etc/rpm/macros.systemd as configuration file ------------------------------------------------------------------- Tue Nov 18 13:30:37 UTC 2014 - werner@suse.de - Apply then delete patch systemd-daemon-reload-before-service-restart.patch - Add orignal systemd macros as well (boo#807164) ------------------------------------------------------------------- Wed Oct 15 09:28:36 UTC 2014 - thomas.blume@suse.com - make systemd aware of changed unit file content after update add systemd-daemon-reload-before-service-restart.patch ------------------------------------------------------------------- Thu Mar 27 14:44:53 UTC 2014 - werner@suse.de - Add a %_ntpunitsdir macro ------------------------------------------------------------------- Thu Mar 27 12:22:11 UTC 2014 - fcrozat@suse.com - Add support to not restart services if running in YaST2 or if DISABLE_RESTART_ON_UPDATE is set to yes [bnc#858429] ------------------------------------------------------------------- Fri Feb 28 10:10:24 UTC 2014 - werner@suse.de - Require coreutils as rm and touch are used ------------------------------------------------------------------- Fri Feb 7 12:43:13 UTC 2014 - werner@suse.de - Make systemd rpm macros package a separate to avoid rebuild of the full package tree if systemd package change ------------------------------------------------------------------- Thu Jul 4 13:59:43 CEST 2013 - fcrozat@suse.com - Resync with systemd v205 macros ------------------------------------------------------------------- Mon Jun 17 10:49:50 UTC 2013 - mhrusecky@suse.com - New package with systemd rpm macros to avoid unnecessary build time dependencies
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor