aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/eudev-rules-directory.patch
blob: c4b1cfae39ffaac1e172df342a00d0bf5bb9a657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Add $EUDEV_RULES_DIRECTORY to the list of rules directories.

The old udev 182 supported $UDEV_CONFIG_FILE, which in turn allowed
the search path to be customized, but eudev no longer has this, hence
this hack.

--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -48,16 +48,11 @@ struct uid_gid {
         };
 };
 
-static const char* const rules_dirs[] = {
+static const char* rules_dirs[] = {
         UDEV_CONF_DIR "/rules.d",
         UDEV_RULES_DIR,
-        UDEV_ROOT_RUN "/udev/rules.d",
         UDEV_LIBEXEC_DIR "/rules.d",
-#ifdef HAVE_SPLIT_USR
-        "/lib/udev/rules.d",
-        "/usr/lib/udev/rules.d",
-#endif
-        "/usr/local/lib/udev/rules.d",
+        NULL,			/* placeholder for $EUDEV_RULES_DIRECTORY */
         NULL};
 
 struct udev_rules {
@@ -1718,6 +1713,9 @@ struct udev_rules *udev_rules_new(struct udev *udev, int resolve_names) {
 
         udev_rules_check_timestamp(rules);
 
+        /* Allow the user to specify an additional rules directory.  */
+        rules_dirs[3] = getenv("EUDEV_RULES_DIRECTORY");
+
         r = conf_files_list_strv(&files, ".rules", NULL, rules_dirs);
         if (r < 0) {
                 log_error_errno(r, "failed to enumerate rules files: %m");
00'>2021-12-17gnu: telepathy-glib: Update to 0.24.2.Liliana Marie Prikler 2021-12-13gnu: Further simplify package inputs.Ludovic Courtès 2021-12-13gnu: Simplify package inputs.Ludovic Courtès 2021-11-12gnu: appstream-glib: Fix build.Vivien Kraus 2021-11-11gnu: glib: Update to 2.70, specify a bindir prefix and hide package.Maxim Cournoyer 2021-11-11gnu: dbus-c++: Fix build.Maxim Cournoyer 2021-11-11Revert commits made to resolve a gdk-pixbuf+svg propagation issue.Maxim Cournoyer 2021-11-11gnu: python-pygobject: Update to 3.40.1.Raghav Gururajan 2021-11-11gnu: appstream-glib: Propagate gdk-pixbuf+svg rather than gdk-pixbuf.Maxim Cournoyer 2021-09-22gnu: glib: Actually skip tests that fail on i686.Ludovic Courtès 2021-09-20gobject-introspection: Correct library name when cross-compiling.Maxime Devos 2021-09-20gobject-introspection: Fix inputs when cross-compiling.Maxime Devos 2021-09-20gnu: gobject-introspection: Don't build introspection data when cross-compiling.Maxime Devos 2021-09-20gnu: dbus-glib: Support cross-compilation.Maxime Devos 2021-09-15gnu: glib: Avoid timer.c test failure on i686-linux.Ludovic Courtès 2021-08-29gnu: python-pygobject: Extend test timeout.Efraim Flashner 2021-07-27gnu: appstream-glib: Fix failing tests.Maxime Devos 2021-08-19gnu: glib: Update to 2.68.3.Mathieu Othacehe 2021-07-24gnu: Use 'search-input-file' when looking for executables.Ludovic Courtès 2021-07-24gnu: Use 'search-input-directory' when looking for tzdata.Ludovic Courtès 2021-07-23gnu: glib: Remove unused input.Marius Bakke 2021-07-18Merge branch 'master' into core-updatesLudovic Courtès 2021-07-14glib: Look up "tzdata" in 'native-inputs', not 'inputs'.Maxime Devos 2021-07-14glib: Verify the cross-compiled python is used in installed scripts.Maxime Devos 2021-07-14glib: Use a correct python in scripts when cross-compiling.Maxime Devos