Commit Graph

350 Commits

Author SHA1 Message Date
David King
a69a094b1e Explicitly specify runstatedir (#2036943) 2022-01-04 13:57:24 +00:00
David King
35ba0cebc0 Update to 1.13.20 2021-12-17 16:28:28 +00:00
Kalev Lember
78984513f5 Avoid systemd_requires as per updated packaging guidelines
There is no need to have them as systemd correctly handles reloading
depending on the transaction ordering (even if systemd is installed
_after_ the package that installs the unit file).

Additionally, this also drops hard requires on /usr/bin/systemctl and
just makes the scriptlets that call systemctl conditional on systemctl
being present.

All of this helps avoid pulling in full systemd for container setups.
2021-10-01 12:33:22 +02:00
Fedora Release Engineering
ce63bf9240 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 20:25:40 +00:00
Fedora Release Engineering
7fee961c56 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 03:02:11 +00:00
Tom Stellard
50b52089d0 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2020-12-19 05:32:14 +00:00
Fedora Release Engineering
b48caa7af0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 15:03:16 +00:00
David King
a7a918f4b1 Update to 1.12.20 2020-07-02 20:54:28 +01:00
David King
b5d6ebb285 Update to 1.12.18 2020-06-02 21:36:26 +01:00
David King
91491679c5 Improve permissions on ghosted /run/dbus 2020-02-25 08:36:30 +00:00
David King
e75175d9b4 Verify GPG signature of sources
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_source_file_verification
2020-02-25 08:08:29 +00:00
David King
dafecf5b80 Update python2- to python3-gobject 2020-01-31 10:58:35 +00:00
Fedora Release Engineering
628c608e41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 15:24:29 +00:00
David King
48e0f0c159 Ensure that patches are applied 2019-08-01 07:24:35 +01:00
Fedora Release Engineering
23b406f320 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 21:35:25 +00:00
David King
83ae3fd808 Update to 1.12.16 2019-06-11 19:00:28 +01:00
David King
92826827bd Update to 1.12.14 2019-05-17 16:20:37 +01:00
David King
e614b5e96b Improve user and group creation (#1698001) 2019-04-09 16:07:41 +01:00
David King
99352d1e4a Own system.d and session.d directories (#1696385) 2019-04-04 22:12:53 +01:00
Leigh Scott
cb1110c026 Fix f30 FTBFS 2019-03-03 11:52:41 +00:00
Kalev Lember
39280f37dc Update requires for pygobject3 -> python2-gobject rename
This also makes it explicit that the BRs are still using a python2
package as it's not immediately obvious that pygobject3 is the python2
build.
2019-02-04 09:44:18 +01:00
Fedora Release Engineering
d6293444a6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 16:50:34 +00:00
Igor Gnatenko
f8751d6244 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:23:58 +01:00
David King
03307dd79d Change -devel subpackage to depend on -libs 2018-12-14 23:03:31 +00:00
David King
dbe2752d95 Update to 1.12.12 2018-12-04 21:38:38 +00:00
David Herrmann
6ca2d754db Switch to dbus-broker as default backend
Make the 'dbus' package pull in 'dbus-broker' over 'dbus-daemon' as the
default implementation. Note that dbus-broker-16-2 is needed, since
this has the required hooks to switch over the systemd units.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2018-11-22 10:46:14 +00:00
Stephen Gallagher
bca95f22ec
Fix requirement on system-release
The addition of `Requires: fedora-release` broke all installations
using the non-branded `generic-release` package. This should not be
a requirement, but a conflict against versions older than those
which added the preset.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2018-11-07 10:43:51 -05:00
Tom Gundersen
4873c189a2 Fix messagebus alias 2018-11-06 17:43:55 +01:00
David King
cc2d235361 Add further Requires to subpackages
Add fedora-release to daemon subpackage, as the systemctl preset calls
in the triggerpostun require it. Add systemd_requires macro to daemon
subpackage, as it (like the common subpackage) calls systemctl in
triggerpostun.
2018-11-05 15:13:18 +00:00
Tom Gundersen
09cb4f85bc Add missing requires to 'common' and 'daemon' subpackage
Both subpackages call various %systemd scriptlets, so they need
the %systmd_requires macro. Their %triggerpostun also call
systemctl directly, so add an explicit Requires on that.

Some of this may in practice prove redundant, but let's be explicit
and hopefully more robust.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2018-11-05 14:46:51 +01:00
David Herrmann
5a8f8e63cb Move 'useradd' dependency to daemon subpackage
The 'useradd' invocation is now on the 'daemon' subpackage, so move the
useradd dependency as well.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2018-10-24 08:08:44 +01:00
David King
f312051bb4 Remove unnecessary ldconfig calls
https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
2018-10-19 09:16:25 +01:00
David King
f087b7cb37 Move systemd to Requires of common subpackage (#1638910) 2018-10-19 09:16:03 +01:00
David King
dbd50d1961 Move user and group creation to daemon subpackage 2018-10-19 07:53:56 +01:00
Tom Gundersen
4372ca36ca dbus: apply presets on update
The systemd RPM macros only apply presets on first install, we need
to also apply them on the initial upgrade that starts depending on
them.

Signed-off-by: Tom Gundersen <teg@jklm.no>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2018-08-31 16:38:09 +02:00
David Herrmann
27eb7993d2 dbus: change 'system-release' dependency to 'fedora-release'
As it turns out, 'fedora-release' only has:

    'Provides: system-release'

rather than:

    'Provides: system-release = %{version}-%{release}'

This means, any explicit dependencies on 'system-release' ignore
versioning completely. This is unfortunate, and breaks our reliance on
'system-release'.

Fortunately, unlike recommended on the wiki, it is safe to depend on
'fedora-release' explicitly. Other fedora flavors have this package as
well, so there is no reason not to.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2018-08-31 16:37:38 +02:00
David Herrmann
235a81bfa5 dbus: move systemd-hooks for dbus.socket to 'dbus-common'
The systemd_{post,postun,preun,..} hooks should be called in the package
that actually provides the given files. There is no harm in calling
these in the dbus-daemon package, but preferably we don't. Move this to
'dbus-common' for dbus.socket, since dbus.socket is provided by it. This
makes sure the unit is properly enabled/disabled even without the
dbus-daemon package installed.

Note that it is safe to enable/disable dbus.socket even without a
dbus.service around. systemd can deal with this just fine, and only ever
actually pulls in the socket if an activatable service is around.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2018-08-30 12:03:25 +02:00
David Herrmann
b8679ce6a8 dbus: move generic units into 'dbus-common'
Make sure the generic unit files are provided by 'dbus-common', so
alternative dbus implementations can use them as well.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2018-08-29 11:44:38 +02:00
David Herrmann
896fb4a918 dbus: make use of [Install] unit sections
Rather than installing symlinks during the installation manually, put
in [Install] sections into the units. This has the same effect, but
allows changing the installation conditions via systemd-presets, which
are provided by the 'fedora-release' package.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2018-08-29 11:44:36 +02:00
David Herrmann
2fe9ed5df9 dbus: provide custom units
Rather than using the upstream units, use custom units tailored for
Fedora. For now, we mirror what upstream does, but rename the service
to 'dbus-daemon.service', with an alias on 'dbus.service'.

Follow-up patches will then introduce some changes to the units for
better integration of alternative D-Bus implementations.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2018-08-29 11:42:43 +02:00
David King
b4e92b3dec Update to 1.12.10 2018-08-03 07:05:51 +01:00
Colin Walters
9afcd0abee Add patch to port example to python3 2018-07-31 16:43:42 +00:00
Colin Walters
5f4342f1b7 Use python3-dbus to drop python2 deps 2018-07-31 16:19:09 +00:00
Colin Walters
180ea84df0 build: Use python3-dbus
As part of the super exciting and rewarding port to Python 3.
2018-07-31 16:08:54 +00:00
Fedora Release Engineering
2046326cce - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 22:36:54 +00:00
David Herrmann
a2190325da dbus: extract 'dbus-tools' from 'dbus-daemon'
Create a new sub-package called 'dbus-tools', which includes all the
independent command-line utilities provided by the reference
implementation. They are valid to be used with independent bus
implementations, so no reason to make them pull in dbus-daemon.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2018-05-23 10:06:52 +02:00
David Herrmann
b3696e58df dbus: extract 'dbus-common' sub-package
Create a new sub-package called 'dbus-common', extracting the XML
configuration and setup files from 'dbus-daemon'. These files might be
used by alternative D-Bus Messages Bus implementations, hence we want
them as a separate package.

This also pulls in the 'dbus' sysuser.d setup file, since this uid is
referenced from the xml-configuration of the system bus. Hence, it is
part of the configuration and required to be used by any compatible
implementation using the official XML configurations.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2018-05-23 10:06:18 +02:00
David Herrmann
1adc79b70a dbus: extract 'dbus' package into 'dbus-daemon'
This extracts all the contents of the 'dbus' package into a new
'dbus-daemon' package. All internal sub-package dependencies are
updated to point to the new sub-package. The original 'dbus' package is
kept around as empty meta-package that simply pulls in 'dbus-daemon'.
This is meant for compatibility so other packages continue working for
now. Dependencies on 'dbus' will be reviewed and updated before this
meta-package gets removed.

This package rename prepares Fedora to allow alternative
implementations of D-Bus System and Session buses. The 'dbus' package
name is freed from dependencies on any particular implementation.
Instead, the reference implementation is now called 'dbus-daemon' as a
package, with the intent to re-use the 'dbus' package name in the
future as a meta-name provided by 'dbus-daemon' as well alternative
implementations like 'dbus-broker'. It will serve as dependency of
dbus-only services to clearly tell rpm that a dbus system or user bus
implementation is required for a given package.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2018-05-23 10:05:28 +02:00
David King
8655952f6f Update to 1.12.8 (#1556590) 2018-04-30 18:51:27 +01:00
Adam Jackson
0493b27318 Don't Require: xorg-x11-xinit. We don't actually need it, and newer
filesystem packages own the directory for us.
2018-02-20 12:28:42 -05:00