git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #72400 from worldofpeace/fix/accountsservice

accountsservice: fix vendor extensions

commit021a5cc6ab13fc87dff57b46b90beee400cc6e34 authorworldofpeace <worldofpeace@protonmail.ch> dateFri 1 Nov 2019, 13:05 (7 years ago) parenta0b037bfeda399
2 files changed+24
pkgs/development/libraries/accountsservice/default.nix+2 pkgs/development/libraries/accountsservice/drop-prefix-check-extensions.patch+22
pkgs/development/libraries/accountsservice/default.nix+2
@@ -60,6 +60,8 @@ stdenv.mkDerivation rec {
6060 })
6161 ./no-create-dirs.patch
6262 ./Disable-methods-that-change-files-in-etc.patch
63+ # Fixes https://github.com/NixOS/nixpkgs/issues/72396
64+ ./drop-prefix-check-extensions.patch
6365 # Systemd unit improvements. Notably using StateDirectory eliminating the
6466 # need of an ad-hoc script.
6567 (fetchpatch {
pkgs/development/libraries/accountsservice/drop-prefix-check-extensions.patchnew file+22
@@ -0,0 +1,22 @@
1+diff --git a/src/extensions.c b/src/extensions.c
2+index 038dcb2..830465d 100644
3+--- a/src/extensions.c
4++++ b/src/extensions.c
5+@@ -121,16 +121,7 @@ daemon_read_extension_directory (GHashTable *ifaces,
6+ continue;
7+ }
8+
9+- /* Ensure it looks like "../../dbus-1/interfaces/${name}" */
10+- const gchar * const prefix = "../../dbus-1/interfaces/";
11+- if (g_str_has_prefix (symlink, prefix) && g_str_equal (symlink + strlen (prefix), name)) {
12+- daemon_read_extension_file (ifaces, filename);
13+- }
14+- else {
15+- g_warning ("Found accounts service vendor extension symlink %s, but it must be exactly "
16+- "equal to '../../dbus-1/interfaces/%s' for forwards-compatibility reasons.",
17+- filename, name);
18+- }
19++ daemon_read_extension_file (ifaces, filename);
20+ }
21+
22+ g_dir_close (dir);