git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #72400 from worldofpeace/fix/accountsservice
021a5ccworldofpeace
pkgs/development/libraries/accountsservice/default.nix+2
@@ -60,6 +60,8 @@ stdenv.mkDerivation rec {
60 })
60 })
61 ./no-create-dirs.patch
61 ./no-create-dirs.patch
62 ./Disable-methods-that-change-files-in-etc.patch
62 ./Disable-methods-that-change-files-in-etc.patch
63+ # Fixes https://github.com/NixOS/nixpkgs/issues/72396
64+ ./drop-prefix-check-extensions.patch
63 # Systemd unit improvements. Notably using StateDirectory eliminating the
65 # Systemd unit improvements. Notably using StateDirectory eliminating the
64 # need of an ad-hoc script.
66 # need of an ad-hoc script.
65 (fetchpatch {
67 (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);