File systemd-rpm-macros.changes of Package systemd-rpm-macros
549
1
-------------------------------------------------------------------
2
Wed Feb 21 10:17:47 UTC 2024 - Franck Bui <fbui@suse.com>
3
4
- Bump version to 15
5
6
-------------------------------------------------------------------
7
Wed Feb 21 10:01:13 UTC 2024 - Franck Bui <fbui@suse.com>
8
9
- Order packages that requires systemd after systemd-sysvcompat when this part
10
of the transaction (bsc#1217964)
11
12
systemd-sysvcompat has been introduced recently and contains the compatibility
13
scripts used to support SysV init scripts. Make sure that the packages ordered
14
after systemd are also ordered after systemd-sysvcompat so theirs rpm
15
scriptlets can still rely on the compat scripts.
16
17
On distributions where systemd-sysvcompat doesn't exist, the new ordering
18
constraint should be a nop.
19
20
-------------------------------------------------------------------
21
Fri Sep 29 08:20:00 UTC 2023 - Franck Bui <fbui@suse.com>
22
23
- Bump version to 14
24
25
-------------------------------------------------------------------
26
Fri Sep 29 08:14:56 UTC 2023 - Franck Bui <fbui@suse.com>
27
28
- Switch to `systemd-hwdb` tool when updating the HW database. It's been
29
introduced in systemd v219 and replaces the deprecated command `udevadm hwdb`.
30
31
-------------------------------------------------------------------
32
Wed May 10 12:54:03 UTC 2023 - Franck Bui <fbui@suse.com>
33
34
- Bump version to 13
35
36
-------------------------------------------------------------------
37
Wed May 10 12:49:32 UTC 2023 - Franck Bui <fbui@suse.com>
38
39
- Fix %sysctl_apply() and %binfmt_apply() so they are disabled when called from
40
a chroot (bsc#1211272)
41
42
-------------------------------------------------------------------
43
Thu Feb 16 15:23:53 UTC 2023 - Franck Bui <fbui@suse.com>
44
45
- Bump version to 12
46
47
-------------------------------------------------------------------
48
Thu Feb 16 15:20:17 UTC 2023 - Franck Bui <fbui@suse.com>
49
50
- Don't emit a warning when the flag file in /var/lib/systemd/migrated/ is not
51
present as it's expected (bsc#1208079).
52
53
-------------------------------------------------------------------
54
Thu Mar 3 15:30:26 UTC 2022 - Franck Bui <fbui@suse.com>
55
56
- Bump version to 11
57
58
-------------------------------------------------------------------
59
Thu Mar 3 15:20:41 UTC 2022 - Franck Bui <fbui@suse.com>
60
61
- Make %_modprobedir point to /lib/modprobe.d (bsc#1196275 bsc#1196406)
62
63
Until SLE15-SP3:QU2, /usr/lib/modprobe.d path was not supported by kmod and
64
since SLE15-SP4 /etc/modprobe.d/README has references to /lib/modprobe.d...
65
66
-------------------------------------------------------------------
67
Wed Jan 19 20:11:57 UTC 2022 - Franck Bui <fbui@suse.com>
68
69
- Bump version to 10
70
71
-------------------------------------------------------------------
72
Wed Jan 19 20:10:14 UTC 2022 - Franck Bui <fbui@suse.com>
73
74
- %sysusers_create_inline was wrongly marked as deprecated
75
76
- %sysusers_create can be useful in certain cases and won't go away until we'll
77
move to file triggers. So don't mark it as deprecated too
78
79
-------------------------------------------------------------------
80
Wed Nov 17 12:38:26 UTC 2021 - Franck Bui <fbui@suse.com>
81
82
- Bump version to 9
83
84
-------------------------------------------------------------------
85
Wed Nov 17 12:36:26 UTC 2021 - Franck Bui <fbui@suse.com>
86
87
- Introduce %_systemd_util_dir
88
89
It's a backport of upstream commit 3bc66bfa0136e370a8f7b06c3b69a52f5636ef82.
90
91
-------------------------------------------------------------------
92
Fri Jul 16 15:46:47 UTC 2021 - Franck Bui <fbui@suse.com>
93
94
- Bump to version 8
95
96
-------------------------------------------------------------------
97
Fri Jul 16 15:45:37 UTC 2021 - Franck Bui <fbui@suse.com>
98
99
- Make use of "Suggests:" in %systemd_ordering
100
101
Until libzypp supports "OrderWithRequires:", we need to specify a
102
similar ordering constraint that can be understood by the dep solver
103
as well. Hence the use of "Suggests:" in %systemd_ordering
104
(workaround for bsc#1187332).
105
106
-------------------------------------------------------------------
107
Fri Jul 16 15:23:46 UTC 2021 - Franck Bui <fbui@suse.com>
108
109
- Introduce %sysusers_create_package
110
111
%sysusers_create and %sysusers_create_inline are now deprecated and
112
the new macro should be used instead.
113
114
Upstream commit 07a7d4a0040d221ff09e527e91c112b4ffab1dba.
115
116
-------------------------------------------------------------------
117
Tue May 25 18:55:03 UTC 2021 - Franck Bui <fbui@suse.com>
118
119
- %sysusers_create_inline: use here-docs instead of echo (bsc#1186282)
120
121
Upstream commit dd2490ae12ad1e1795ecbf8f8944b950da9c8d06.
122
123
-------------------------------------------------------------------
124
Fri Mar 5 16:41:44 UTC 2021 - Franck Bui <fbui@suse.com>
125
126
- Bump to version 7
127
128
-------------------------------------------------------------------
129
Fri Mar 5 16:37:15 UTC 2021 - Franck Bui <fbui@suse.com>
130
131
- Remove confusing --user before --global in %systemd_user_preun
132
133
It's actually a backport of upstream commit
134
28d36da64a7a23a55e8d0a139f2620384fd058b3
135
136
- Update a few comments
137
138
-------------------------------------------------------------------
139
Fri Mar 5 16:31:01 UTC 2021 - Franck Bui <fbui@suse.com>
140
141
- Don't pass -f to rm to make sure that rm failures will be logged
142
143
But also make sure to not abort the scriptlet prematurely if rm
144
fails.
145
146
-------------------------------------------------------------------
147
Fri Mar 5 16:25:40 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
148
149
- Add a %systemd_user_pre macro (boo#1183051, boo#1183012)
150
151
It creates a /run/systemd/rpm/needs-user-preset/$service file for
152
each new service being installed so %systemd_user_post can call
153
`systemctl --global preset $service` properly for newly installed
154
user services (even when it's introduced via a package update).
155
156
-------------------------------------------------------------------
157
Fri Mar 5 16:24:25 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
158
159
- Fix %systemd_user_post (boo#1183051, boo#1182661)
160
161
The --global parameter was handled as if it was another service name
162
so %systemd_user_post wasn't working properly. Replace
163
%systemd_user_post with the code from %service_add_post it was being
164
expanded to but correctly passing --global to systemctl.
165
166
-------------------------------------------------------------------
167
Fri Mar 5 16:19:24 UTC 2021 - Franck Bui <fbui@suse.com>
168
169
- Tabify %service_del_postun_without_restart
170
171
To make it consistent with the other macros.
172
No functional change.
173
174
-------------------------------------------------------------------
175
Fri Feb 12 15:43:06 UTC 2021 - Franck Bui <fbui@suse.com>
176
177
- Bump to version 6
178
179
-------------------------------------------------------------------
180
Fri Feb 12 15:36:52 UTC 2021 - Franck Bui <fbui@suse.com>
181
182
- Make upstream %systemd_{pre,post,preun,postun} aliases to their SUSE
183
counterparts
184
185
Packagers can now choose to use the upstream or the SUSE variants
186
indifferently. For consistency the SUSE variants should be preferred
187
since almost all SUSE packages already use them but the upstream
188
versions might be usefull in certain cases where packages need to
189
support multiple distros based on RPM.
190
191
-------------------------------------------------------------------
192
Fri Feb 12 15:29:28 UTC 2021 - Franck Bui <fbui@suse.com>
193
194
- Improve the logic used to apply the presets (bsc#1177039)
195
196
Before presests were applied at a) package installation b) new units
197
introduced via a package update (but after making sure that it was
198
not a SysV initscript being converted).
199
200
The problem is that a) didn't handle package a renaming or split
201
properly since the package with the new name is installed rather
202
being updated and therefore the presets were applied even if they
203
were already with the old name.
204
205
We now cover this case (and the other ones) by applying presets only
206
if the units are new and the services are not being migrated. This
207
regardless of whether this happens during an install or an update.
208
209
-------------------------------------------------------------------
210
Tue Nov 24 16:46:47 UTC 2020 - Franck Bui <fbui@suse.com>
211
212
- Bump to version 5 (bsc#1179020)
213
214
This milestone makes systemd rpm macros mostly identical between
215
SLE12-SP2 and SLE15.
216
217
-------------------------------------------------------------------
218
Tue Nov 24 15:58:12 UTC 2020 - Franck Bui <fbui@suse.com>
219
220
- Rename the tag file used to detect when presets need to be applied
221
222
Rather than placing these tags directly under /run, let's place them
223
under /run/systemd/rpm. This also has the benefit to make the
224
workaround for bsc#1059627 no more needed.
225
226
-------------------------------------------------------------------
227
Fri Nov 13 14:06:18 UTC 2020 - Franck Bui <fbui@suse.com>
228
229
- Bump version to 4.2
230
231
-------------------------------------------------------------------
232
Fri Nov 13 13:59:39 UTC 2020 - Franck Bui <fbui@suse.com>
233
234
- Deprecate '-f'/'-n' options
235
236
When used with %service_del_preun, support for these options will be
237
dropped as DISABLE_STOP_ON_REMOVAL support will be removed on the
238
next version of SLE (jsc#SLE-8968)
239
240
When used with %service_del_postun, they should be replaced with
241
their counterpart
242
%service_del_postun_with_restart/%service_del_postun_without_restart
243
244
-------------------------------------------------------------------
245
Fri Nov 13 13:31:29 UTC 2020 - Franck Bui <fbui@suse.com>
246
247
- Introduce %service_del_postun_with_restart()
248
249
It's the counterpart of %service_del_postun_without_restart() and
250
replaces the '-f' option of %service_del_postun().
251
252
-------------------------------------------------------------------
253
Fri Nov 13 13:14:01 UTC 2020 - Franck Bui <fbui@suse.com>
254
255
- Dont apply presets when migrating from a disabled initscript (bsc#1178481)
256
257
-------------------------------------------------------------------
258
Fri Nov 13 13:01:48 UTC 2020 - Franck Bui <fbui@suse.com>
259
260
- Test for the presence of systemctl only once in %service_add_{post,pre}
261
262
No functional changes.
263
264
-------------------------------------------------------------------
265
Fri Nov 13 12:42:33 UTC 2020 - Franck Bui <fbui@suse.com>
266
267
- Make rpmbuild load our own macros.systemd to import %{%_unitdir} properly
268
269
Ideally we should also own other %{_*dir} paths...
270
271
- Stop owning /usr/lib/systemd directory as no package other than
272
systemd is supposed to put files there.
273
274
-------------------------------------------------------------------
275
Fri Sep 25 09:19:43 UTC 2020 - Franck Bui <fbui@suse.com>
276
277
- Bump version to 4.1
278
279
-------------------------------------------------------------------
280
Fri Sep 25 09:14:01 UTC 2020 - Franck Bui <fbui@suse.com>
281
282
- Backport missing macros of directory paths from upstream
283
+ %_environmentdir
284
+ %_modulesloaddir
285
+ %_modprobedir
286
287
-------------------------------------------------------------------
288
Fri Sep 25 08:54:14 UTC 2020 - Franck Bui <fbui@suse.com>
289
290
- Make sure %_restart_on_update_never and %_stop_on_removal_never
291
don't expand to the empty string (bsc#1176932)
292
293
Otherwise sequences like the following code:
294
295
if [ ... ]; then
296
%_restart_on_update_never
297
fi
298
299
would result in the following incorrect shell syntax:
300
301
if [ ... ]; then
302
fi
303
304
-------------------------------------------------------------------
305
Fri Sep 11 12:12:37 UTC 2020 - Franck Bui <fbui@suse.com>
306
307
- Introduce %service_del_postun_without_restart (bsc#1173034)
308
309
This new interface is preferred over the use of %service_del_postun
310
with '-f' and '-n' options. It's been in Factory since a year and a
311
half.
312
313
-------------------------------------------------------------------
314
Wed Feb 14 14:04:19 UTC 2018 - fbui@suse.com
315
316
- Fix %systemd_post(): it's never called during package removal
317
318
Also make it useful by restoring its original implementation.
319
320
-------------------------------------------------------------------
321
Mon Feb 12 16:56:37 UTC 2018 - fbui@suse.com
322
323
- Import more definitions from upstream (v237)
324
325
-------------------------------------------------------------------
326
Mon Jan 22 11:33:28 UTC 2018 - dimstar@opensuse.org
327
328
- Fix system_user_post macro for usage with RPM 4.14, backport from
329
https://github.com/systemd/systemd/commit/e67ba783.
330
331
-------------------------------------------------------------------
332
Thu Dec 14 08:39:15 UTC 2017 - fbui@suse.com
333
334
- Move macros.systemd in /usr/lib/rpm
335
336
The file is not supposed to be customized by the user.
337
338
-------------------------------------------------------------------
339
Wed Dec 13 17:14:25 UTC 2017 - fbui@suse.com
340
341
- Make %systemd_add_pre() more similar to %systemd_add_post()
342
343
The main advantage is that we pass only one argument to
344
systemd-sysv-convert script. The later can now be improved/rewritten
345
to handle only one argument and return a useful exit status.
346
347
-------------------------------------------------------------------
348
Wed Dec 13 16:42:56 UTC 2017 - fbui@suse.com
349
350
- Make sure to apply presets if packages start shipping units during upgrades (bsc#1071543)
351
352
If a package started shipping units during upgrade only sysv
353
migration was done. However if the package didn't ship any sysv
354
scripts before no presets were applied.
355
356
Now during upgrades, preset are always applied (still only during
357
the first time the units are installed) then followed by the sysv
358
migration machinery.
359
360
The downside of this is that migrated services can have symlinks in
361
both runlevel.target.wants/ (created by the sysv migration) and in
362
the directory specified by the [Install] sections (created by
363
"systemctl preset")...
364
365
The whole thing should be rewritten.
366
367
-------------------------------------------------------------------
368
Fri Dec 1 10:47:29 UTC 2017 - fbui@suse.com
369
370
- Make sure to clean up "new-in-upgrade" tag file (bsc#1059627)
371
372
The tag file might have been incorrectly left by a preceding update.
373
374
-------------------------------------------------------------------
375
Wed Nov 22 14:41:00 UTC 2017 - fbui@suse.com
376
377
- Restore previous changes
378
379
-------------------------------------------------------------------
380
Fri Nov 17 09:23:14 UTC 2017 - fbui@suse.com
381
382
- Revert previous changes
383
384
Also added reasons why the previous changes would be needed.
385
386
-------------------------------------------------------------------
387
Fri Nov 17 07:44:55 CET 2017 - kukuk@suse.de
388
389
- Don't execute systemd-tmpfiles if we run in transactional update
390
mode
391
392
If you do transactional updates, it doesn't make any sense to
393
execute the tmpfiles. They will only create a lot of directories,
394
files or symlinks in empty directories without any use and later
395
hidden under the real mount points. With transactional updates, you
396
should do such things always during the boot phase, as designed by
397
systemd (and like Fedora and RHEL doing, but in their use case it's
398
in my opinion a bug).
399
400
-------------------------------------------------------------------
401
Thu Nov 2 16:09:29 UTC 2017 - fbui@suse.com
402
403
- Remove a useless test in %service_add_pre()
404
405
The test was placed where the condition '[ "$FIRST_ARG" -gt 1 ]' was
406
always true.
407
408
-------------------------------------------------------------------
409
Fri Jun 2 09:59:37 UTC 2017 - dimstar@opensuse.org
410
411
- BuildIgnore systemd-rpm-macros: a small cycle that can be
412
avoided. system-rpm-macros is being pulled in by rpm-build as
413
conveniance to the packagers.
414
415
-------------------------------------------------------------------
416
Fri Jun 2 09:31:50 UTC 2017 - fbui@suse.com
417
418
- Reference bsc#956849 to please the new OBS 'sanity' check (bsc#1041386)
419
420
%tmpfiles_create is already part of the version shipped by Factory
421
so there's nothing to do here execpt mentioning (bsc#956849).
422
423
-------------------------------------------------------------------
424
Fri Mar 10 11:54:11 UTC 2017 - fbui@suse.com
425
426
- Kill preset macros
427
428
The last users have been fixed so these macros are no more used by
429
any package.
430
431
The introduction of them was a bad idea and only the branding preset
432
package is still using a similar mechanism but at least it's now
433
self contained in this package. Also the package calls now a shell
434
script instead of rpm macros.
435
436
Upstream is working on making this completely obsolete so the preset
437
branding package could be cleaned up for good.
438
439
-------------------------------------------------------------------
440
Wed Jan 11 11:16:11 UTC 2017 - jengelh@inai.de
441
442
- RPM group fix
443
444
-------------------------------------------------------------------
445
Fri Jun 3 14:47:01 UTC 2016 - Thomas.Blume@suse.com
446
447
- %service_add_post() suppress daemon-reload when in installation
448
system (bsc#982343)
449
450
-------------------------------------------------------------------
451
Thu Mar 3 10:01:52 UTC 2016 - werner@suse.de
452
453
- Allow the packagers to specify the options -f and -n on the
454
macros %service_del_preun(), %service_del_postun(), %systemd_post(),
455
and %systemd_preun() (boo#968405)
456
457
-------------------------------------------------------------------
458
Sat Feb 27 10:18:55 UTC 2016 - dimstar@opensuse.org
459
460
- Also honor DISABLE_STOP_ON_REMOVAL and DISABLE_RESTART_ON_UPDATE
461
when specified by a package directly in the .spec file. Some
462
package know that a restart of their service is fatal
463
(boo#968405).
464
465
-------------------------------------------------------------------
466
Fri Nov 20 16:53:23 UTC 2015 - werner@suse.de
467
468
- Support of DISABLE_STOP_ON_REMOVAL and DISABLE_RESTART_ON_UPDATE
469
from /etc/sysconfig/service (bsc#955996)
470
471
-------------------------------------------------------------------
472
Fri Sep 18 15:27:04 CEST 2015 - sbrabec@suse.com
473
474
- Skip %systemd_preset_* during the clean installation to prevent
475
presetting of all services (boo#946216).
476
477
-------------------------------------------------------------------
478
Tue Aug 4 17:59:54 CEST 2015 - sbrabec@suse.com
479
480
- Add %systemd_preset_pre and %systemd_preset_posttrans that will
481
do one shot presetting of all services with changed system
482
preset. It makes possible to to fix bad default service state
483
(bnc#900935#c46, FATE#318949, FATE#317727, bnc#921075).
484
- Increment version to 3.
485
486
-------------------------------------------------------------------
487
Mon Jun 15 11:33:28 UTC 2015 - jengelh@inai.de
488
489
- Check for presence/executability of systemd programs before
490
executing them, and do not suppress warnings/errors resulting
491
from them.
492
493
-------------------------------------------------------------------
494
Fri Jan 9 13:38:16 UTC 2015 - jengelh@inai.de
495
496
- Update with new macros from systemd 218
497
- Remove empty sections from specfile
498
499
-------------------------------------------------------------------
500
Tue Nov 18 15:16:13 UTC 2014 - werner@suse.de
501
502
- Mark /etc/rpm/macros.systemd as configuration file
503
504
-------------------------------------------------------------------
505
Tue Nov 18 13:30:37 UTC 2014 - werner@suse.de
506
507
- Apply then delete patch systemd-daemon-reload-before-service-restart.patch
508
- Add orignal systemd macros as well (boo#807164)
509
510
-------------------------------------------------------------------
511
Wed Oct 15 09:28:36 UTC 2014 - thomas.blume@suse.com
512
513
- make systemd aware of changed unit file content after update
514
add systemd-daemon-reload-before-service-restart.patch
515
516
-------------------------------------------------------------------
517
Thu Mar 27 14:44:53 UTC 2014 - werner@suse.de
518
519
- Add a %_ntpunitsdir macro
520
521
-------------------------------------------------------------------
522
Thu Mar 27 12:22:11 UTC 2014 - fcrozat@suse.com
523
524
- Add support to not restart services if running in YaST2 or
525
if DISABLE_RESTART_ON_UPDATE is set to yes [bnc#858429]
526
527
-------------------------------------------------------------------
528
Fri Feb 28 10:10:24 UTC 2014 - werner@suse.de
529
530
- Require coreutils as rm and touch are used
531
532
-------------------------------------------------------------------
533
Fri Feb 7 12:43:13 UTC 2014 - werner@suse.de
534
535
- Make systemd rpm macros package a separate to avoid rebuild of
536
the full package tree if systemd package change
537
538
-------------------------------------------------------------------
539
Thu Jul 4 13:59:43 CEST 2013 - fcrozat@suse.com
540
541
- Resync with systemd v205 macros
542
543
-------------------------------------------------------------------
544
Mon Jun 17 10:49:50 UTC 2013 - mhrusecky@suse.com
545
546
- New package with systemd rpm macros to avoid unnecessary build time
547
dependencies
548
549