about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-10-31 20:39:02 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2019-10-31 20:46:03 -0400
commitfeda3999095869684900ea82078036e6c3c7fd49 (patch)
tree0d470be200008bab49c0c976df632532c993da0f /pkgs
parent3328244936b48d0d79d8d76a457781330f10f922 (diff)
downloadnixlib-feda3999095869684900ea82078036e6c3c7fd49.tar
nixlib-feda3999095869684900ea82078036e6c3c7fd49.tar.gz
nixlib-feda3999095869684900ea82078036e6c3c7fd49.tar.bz2
nixlib-feda3999095869684900ea82078036e6c3c7fd49.tar.lz
nixlib-feda3999095869684900ea82078036e6c3c7fd49.tar.xz
nixlib-feda3999095869684900ea82078036e6c3c7fd49.tar.zst
nixlib-feda3999095869684900ea82078036e6c3c7fd49.zip
accountsservice: fix vendor extensions
Fixes #72396.

The interface org.freedesktop.DisplayManager.AccountsService
should now exist. This also actually fixes #45059.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/accountsservice/default.nix2
-rw-r--r--pkgs/development/libraries/accountsservice/drop-prefix-check-extensions.patch22
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/libraries/accountsservice/default.nix b/pkgs/development/libraries/accountsservice/default.nix
index 11ac842342b5..eb48aca80ee6 100644
--- a/pkgs/development/libraries/accountsservice/default.nix
+++ b/pkgs/development/libraries/accountsservice/default.nix
@@ -60,6 +60,8 @@ stdenv.mkDerivation rec {
     })
     ./no-create-dirs.patch
     ./Disable-methods-that-change-files-in-etc.patch
+    # Fixes https://github.com/NixOS/nixpkgs/issues/72396
+    ./drop-prefix-check-extensions.patch
     # Systemd unit improvements. Notably using StateDirectory eliminating the
     # need of an ad-hoc script.
     (fetchpatch {
diff --git a/pkgs/development/libraries/accountsservice/drop-prefix-check-extensions.patch b/pkgs/development/libraries/accountsservice/drop-prefix-check-extensions.patch
new file mode 100644
index 000000000000..4b5222c9552d
--- /dev/null
+++ b/pkgs/development/libraries/accountsservice/drop-prefix-check-extensions.patch
@@ -0,0 +1,22 @@
+diff --git a/src/extensions.c b/src/extensions.c
+index 038dcb2..830465d 100644
+--- a/src/extensions.c
++++ b/src/extensions.c
+@@ -121,16 +121,7 @@ daemon_read_extension_directory (GHashTable  *ifaces,
+                         continue;
+                 }
+ 
+-                /* Ensure it looks like "../../dbus-1/interfaces/${name}" */
+-                const gchar * const prefix = "../../dbus-1/interfaces/";
+-                if (g_str_has_prefix (symlink, prefix) && g_str_equal (symlink + strlen (prefix), name)) {
+-                        daemon_read_extension_file (ifaces, filename);
+-                }
+-                else {
+-                        g_warning ("Found accounts service vendor extension symlink %s, but it must be exactly "
+-                                   "equal to '../../dbus-1/interfaces/%s' for forwards-compatibility reasons.",
+-                                   filename, name);
+-                }
++                daemon_read_extension_file (ifaces, filename);
+         }
+ 
+         g_dir_close (dir);