1
0
Fork 0
mirror of git://slackware.nl/current.git synced 2025-01-30 08:38:10 +01:00
slackware-current/source/a/lvm2/fix-build-with-udev-183.patch
Patrick J Volkerding 9664bee729 Slackware 14.0
Wed Sep 26 01:10:42 UTC 2012
Slackware 14.0 x86_64 stable is released!

We're perfectionists here at Slackware, so this release has been a long
time a-brewing.  But we think you'll agree that it was worth the wait.
Slackware 14.0 combines modern components, ease of use, and flexible
configuration... our "KISS" philosophy demands it.

The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a
dual-sided
32-bit/64-bit x86/x86_64 DVD.  Please consider supporting the Slackware
project by picking up a copy from store.slackware.com.  We're taking
pre-orders now, and offer a discount if you sign up for a subscription.

Thanks to everyone who helped make this happen.  The Slackware team, the
upstream developers, and (of course) the awesome Slackware user
community.

Have fun!  :-)
2018-05-31 22:51:55 +02:00

44 lines
1.3 KiB
Diff

From 57f4ebb843195bdd29c0d58e1659eeb0e9700081 Mon Sep 17 00:00:00 2001
From: "Wulf C. Krueger" <philantrop@exherbo.org>
Date: Sun, 27 May 2012 00:34:55 +0200
Subject: [PATCH] lvm2: Fix build with systemd/udev-183.
---
lib/misc/lvm-wrappers.c | 2 +-
tools/dmsetup.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/misc/lvm-wrappers.c b/lib/misc/lvm-wrappers.c
index 84f61a6..d4fcea6 100644
--- a/lib/misc/lvm-wrappers.c
+++ b/lib/misc/lvm-wrappers.c
@@ -72,7 +72,7 @@ const char *udev_get_dev_dir(void)
return NULL;
}
- return udev_get_dev_path(_udev);
+ return "/dev";
}
struct udev* udev_get_library_context(void)
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 6934de8..e09b56c 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -1009,7 +1009,7 @@ static int _udevcookies(CMD_ARGS)
static int _set_up_udev_support(const char *dev_dir)
{
struct udev *udev;
- const char *udev_dev_dir;
+ const char *udev_dev_dir = "/dev";
size_t udev_dev_dir_len;
int dirs_diff;
const char *env;
@@ -1031,7 +1031,6 @@ static int _set_up_udev_support(const char *dev_dir)
_udev_cookie);
if (!(udev = udev_new()) ||
- !(udev_dev_dir = udev_get_dev_path(udev)) ||
!*udev_dev_dir) {
log_error("Could not get udev dev path.");
return 0;