summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-12-22 03:11:56 +0000
committerSam James <sam@gentoo.org>2022-12-22 03:11:56 +0000
commitcbd2c8fc7512b60176979181780468d3de852e1a (patch)
treed2f3746f2dc433ae1685ae2ba9d32ae62e620f74 /sys-fs
parentdev-util/heaptrack: fix build w/ boost 1.81 (diff)
downloadgentoo-cbd2c8fc7512b60176979181780468d3de852e1a.tar.gz
gentoo-cbd2c8fc7512b60176979181780468d3de852e1a.tar.bz2
gentoo-cbd2c8fc7512b60176979181780468d3de852e1a.zip
sys-fs/lvm2: fix musl build
Closes: https://bugs.gentoo.org/887259 Thanks-to: Jory A. Pratt <anarchy@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/lvm2/files/lvm2-2.03.17-musl-LOCK_EX.patch20
-rw-r--r--sys-fs/lvm2/lvm2-2.03.17-r1.ebuild1
2 files changed, 21 insertions, 0 deletions
diff --git a/sys-fs/lvm2/files/lvm2-2.03.17-musl-LOCK_EX.patch b/sys-fs/lvm2/files/lvm2-2.03.17-musl-LOCK_EX.patch
new file mode 100644
index 000000000000..acb5e903b45a
--- /dev/null
+++ b/sys-fs/lvm2/files/lvm2-2.03.17-musl-LOCK_EX.patch
@@ -0,0 +1,20 @@
+https://bugs.gentoo.org/887259
+
+From ab715e56feec4bbb135cc97d2d1e8e7340a8ee44 Mon Sep 17 00:00:00 2001
+From: Jory Pratt <anarchy@gentoo.org>
+Date: Tue, 20 Dec 2022 08:12:49 -0600
+Subject: [PATCH] Add missing include for LOCK_EX
+
+Signed-off-by: Jory Pratt <anarchy@gentoo.org>
+--- a/tools/vgimportdevices.c
++++ b/tools/vgimportdevices.c
+@@ -15,6 +15,7 @@
+ #include "tools.h"
+ #include "lib/cache/lvmcache.h"
+ #include "lib/device/device_id.h"
++#include <sys/file.h>
+
+ struct vgimportdevices_params {
+ uint32_t added_devices;
+--
+2.38.2
diff --git a/sys-fs/lvm2/lvm2-2.03.17-r1.ebuild b/sys-fs/lvm2/lvm2-2.03.17-r1.ebuild
index bfffdec912d5..6fa0f49415ea 100644
--- a/sys-fs/lvm2/lvm2-2.03.17-r1.ebuild
+++ b/sys-fs/lvm2/lvm2-2.03.17-r1.ebuild
@@ -72,6 +72,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-2.03.14-freopen_n2.patch
"${FILESDIR}"/${PN}-2.03.16-musl-strerror_r.patch
"${FILESDIR}"/${PN}-2.03.17-readelf.patch
+ "${FILESDIR}"/${PN}-2.03.17-musl-LOCK_EX.patch #887259
)
QA_CONFIGURE_OPTIONS="--disable-static"