Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 35 lines 1.4 kB view raw
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2From: Andreas Rammhold <andreas@rammhold.de> 3Date: Thu, 9 May 2019 11:15:22 +0200 4Subject: [PATCH] add rootprefix to lookup dir paths 5 6systemd does not longer use the UDEVLIBEXEC directory as root for 7discovery default udev rules. By adding `$out/lib` to the lookup paths 8we should again be able to discover the udev rules amongst other default 9files that I might have missed. 10--- 11 src/basic/constants.h | 6 ++++-- 12 1 file changed, 4 insertions(+), 2 deletions(-) 13 14diff --git a/src/basic/constants.h b/src/basic/constants.h 15index 5aaf8f535c..934175fb51 100644 16--- a/src/basic/constants.h 17+++ b/src/basic/constants.h 18@@ -62,13 +62,15 @@ 19 "/etc/" n "\0" \ 20 "/run/" n "\0" \ 21 "/usr/local/lib/" n "\0" \ 22- "/usr/lib/" n "\0" 23+ "/usr/lib/" n "\0" \ 24+ PREFIX "/lib/" n "\0" 25 26 #define CONF_PATHS(n) \ 27 "/etc/" n, \ 28 "/run/" n, \ 29 "/usr/local/lib/" n, \ 30- "/usr/lib/" n 31+ "/usr/lib/" n, \ 32+ PREFIX "/lib/" n 33 34 #define CONF_PATHS_STRV(n) \ 35 STRV_MAKE(CONF_PATHS(n))