|
@@ -1,6 +1,6 @@
|
|
|
-From f55b1a37e2c43b67e7fd7f6a39afe2b2316b7cf9 Mon Sep 17 00:00:00 2001
|
|
|
+From 922855e245c8bdadc0d24b5b706549b18fb5f079 Mon Sep 17 00:00:00 2001
|
|
|
From: Alexander Egorenkov <egorenar-dev@posteo.net>
|
|
|
-Date: Mon, 31 Aug 2020 19:05:46 +0200
|
|
|
+Date: Sat, 21 Nov 2020 11:08:56 +0100
|
|
|
Subject: [PATCH] kpartx, libmultipath: use pkg-config to get path to
|
|
|
headers
|
|
|
|
|
@@ -9,9 +9,9 @@ to enable cross-compilation.
|
|
|
|
|
|
Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
|
|
|
---
|
|
|
- kpartx/Makefile | 2 +-
|
|
|
- libmultipath/Makefile | 8 ++++----
|
|
|
- 2 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
+ kpartx/Makefile | 2 +-
|
|
|
+ libmultipath/Makefile | 12 ++++++------
|
|
|
+ 2 files changed, 7 insertions(+), 7 deletions(-)
|
|
|
|
|
|
diff --git a/kpartx/Makefile b/kpartx/Makefile
|
|
|
index 2906a984..29573890 100644
|
|
@@ -27,10 +27,10 @@ index 2906a984..29573890 100644
|
|
|
endif
|
|
|
|
|
|
diff --git a/libmultipath/Makefile b/libmultipath/Makefile
|
|
|
-index e5651e49..51ad0193 100644
|
|
|
+index 62ba16e8..3ad9130c 100644
|
|
|
--- a/libmultipath/Makefile
|
|
|
+++ b/libmultipath/Makefile
|
|
|
-@@ -20,19 +20,19 @@ ifdef SYSTEMD
|
|
|
+@@ -20,27 +20,27 @@ ifdef SYSTEMD
|
|
|
endif
|
|
|
endif
|
|
|
|
|
@@ -39,6 +39,11 @@ index e5651e49..51ad0193 100644
|
|
|
CFLAGS += -DLIBDM_API_FLUSH -D_GNU_SOURCE
|
|
|
endif
|
|
|
|
|
|
+-ifneq ($(call check_func,dm_task_get_errno,/usr/include/libdevmapper.h),0)
|
|
|
++ifneq ($(call check_func,dm_task_get_errno,$(shell $(PKG_CONFIG) --variable=includedir devmapper)/libdevmapper.h),0)
|
|
|
+ CFLAGS += -DLIBDM_API_GET_ERRNO
|
|
|
+ endif
|
|
|
+
|
|
|
-ifneq ($(call check_func,dm_task_set_cookie,/usr/include/libdevmapper.h),0)
|
|
|
+ifneq ($(call check_func,dm_task_set_cookie,$(shell $(PKG_CONFIG) --variable=includedir devmapper)/libdevmapper.h),0)
|
|
|
CFLAGS += -DLIBDM_API_COOKIE
|
|
@@ -54,6 +59,11 @@ index e5651e49..51ad0193 100644
|
|
|
CFLAGS += -DLIBDM_API_DEFERRED
|
|
|
endif
|
|
|
|
|
|
+-ifneq ($(call check_func,dm_hold_control_dev,/usr/include/libdevmapper.h),0)
|
|
|
++ifneq ($(call check_func,dm_hold_control_dev,$(shell $(PKG_CONFIG) --variable=includedir devmapper)/libdevmapper.h),0)
|
|
|
+ CFLAGS += -DLIBDM_API_HOLD_CONTROL
|
|
|
+ endif
|
|
|
+
|
|
|
--
|
|
|
-2.28.0
|
|
|
+2.29.2
|
|
|
|