]> TLD Linux GIT Repositories - packages/lvm2.git/blob - udev-deprecated.patch
- drop tool checks, build environment is too restricted to allow that
[packages/lvm2.git] / udev-deprecated.patch
1 --- LVM2.2.02.95/lib/misc/lvm-wrappers.c~       2011-04-22 14:00:00.000000000 +0200
2 +++ LVM2.2.02.95/lib/misc/lvm-wrappers.c        2012-06-02 17:13:13.996363539 +0200
3 @@ -72,7 +72,7 @@
4                 return NULL;
5         }
6  
7 -       return udev_get_dev_path(_udev);
8 +       return "/dev";
9  }
10  
11  struct udev* udev_get_library_context(void)
12 --- LVM2.2.02.95/tools/dmsetup.c~       2012-06-02 17:11:33.999700397 +0200
13 +++ LVM2.2.02.95/tools/dmsetup.c        2012-06-02 17:18:14.323019614 +0200
14 @@ -1047,12 +1047,11 @@
15                           " defined by --udevcookie option.",
16                           _udev_cookie);
17  
18 -       if (!(udev = udev_new()) ||
19 -           !(udev_dev_dir = udev_get_dev_path(udev)) ||
20 -           !*udev_dev_dir) {
21 -               log_error("Could not get udev dev path.");
22 +       if (!(udev = udev_new())) {
23 +               log_error("Could not get udev.");
24                 return 0;
25         }
26 +       udev_dev_dir = "/dev";
27         udev_dev_dir_len = strlen(udev_dev_dir);
28  
29         /*