[packages/multipath-tools] Up to 0.15.1
arekm
arekm at pld-linux.org
Thu Oct 29 08:49:19 CET 2026
commit f9aa4dec87d000464fde5858c74cda90a816c62b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Oct 29 00:50:59 2026 +0100
Up to 0.15.1
Fixes CVE-2026-114038, CVE-2026-94660, CVE-2026-94659,
CVE-2026-89329, GHSA-hj7j-qr9h-5fv6, GHSA-gr7q-prfc-q636,
GHSA-p6rh-9x9j-3hvx.
multipath-tools-types.patch | 36 ++++++++++++++++++------------------
multipath-tools.spec | 18 +++++++++++++++---
2 files changed, 33 insertions(+), 21 deletions(-)
---
diff --git a/multipath-tools.spec b/multipath-tools.spec
index 1386a8a..3482be4 100644
--- a/multipath-tools.spec
+++ b/multipath-tools.spec
@@ -2,17 +2,18 @@
# Conditional build:
%bcond_with initrd # build initrd version (very broken)
%bcond_without systemd # systemd support
+%bcond_without tests # unit tests
Summary: Tools to manage multipathed devices with the device-mapper
Summary(pl.UTF-8): Implementacja wielotrasowego dostępu do zasobów przy użyciu device-mappera
Name: multipath-tools
-Version: 0.10.0
+Version: 0.15.1
Release: 1
License: GPL v2
Group: Base
#Source0Download: https://github.com/opensvc/multipath-tools/tags
Source0: https://github.com/opensvc/multipath-tools/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 025586178f9daedc857bc13a36963bb1
+# Source0-md5: c0c95b99342f40815ee62e46a4e2b471
Source100: branch.sh
Source1: multipathd.init
Source2: multipathd.sysconfig
@@ -25,13 +26,13 @@ Patch2: config.patch
Patch3: %{name}-prototype.patch
Patch4: %{name}-types.patch
URL: http://christophe.varoqui.free.fr/
+%{?with_tests:BuildRequires: cmocka-devel}
BuildRequires: device-mapper-devel >= 1.02.08
BuildRequires: json-c-devel
BuildRequires: libaio-devel
BuildRequires: libmount-devel
BuildRequires: linux-libc-headers >= 7:2.6.12.0-5
BuildRequires: pkgconfig
-BuildRequires: readline-devel
BuildRequires: rpmbuild(macros) >= 1.647
BuildRequires: sed >= 4.0
%{?with_systemd:BuildRequires: systemd-devel >= 1:209}
@@ -135,12 +136,22 @@ cp -p %{SOURCE4} .
%{__make} clean
%endif
+LDFLAGS="%{rpmldflags}" \
%{__make} -j1 \
CC="%{__cc}" \
LIB=%{_lib} \
OPTFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -Wunused -Wstrict-prototypes %{?debug:-DDEBUG=1}" \
V=1
+%if %{with tests}
+LDFLAGS="%{rpmldflags}" \
+%{__make} -j1 test \
+ CC="%{__cc}" \
+ LIB=%{_lib} \
+ OPTFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -Wunused -Wstrict-prototypes %{?debug:-DDEBUG=1}" \
+ V=1
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_sysconfdir}/multipath,/%{_lib}/multipath}
@@ -215,6 +226,7 @@ fi
#/usr/lib/modules-load.d/multipath.conf
%if %{with systemd}
%{systemdunitdir}/multipathd.service
+%{systemdunitdir}/multipathd-queueing.service
%{systemdunitdir}/multipathd.socket
%endif
%{systemdtmpfilesdir}/multipath.conf
diff --git a/multipath-tools-types.patch b/multipath-tools-types.patch
index f5a1b85..904a693 100644
--- a/multipath-tools-types.patch
+++ b/multipath-tools-types.patch
@@ -1,6 +1,6 @@
---- multipath-tools-0.8.8/libmultipath/devmapper.c.orig 2021-12-06 07:42:30.000000000 +0100
-+++ multipath-tools-0.8.8/libmultipath/devmapper.c 2022-02-19 20:40:40.825543851 +0100
-@@ -114,7 +114,7 @@ dm_write_log (int level, const char *fil
+--- multipath-tools-0.15.1/libmultipath/devmapper.c.orig
++++ multipath-tools-0.15.1/libmultipath/devmapper.c
+@@ -134,7 +134,7 @@ dm_write_log (int level, const char *fil
get_monotonic_time(&ts);
safe_sprintf(buff, "%ld.%06ld",
@@ -9,8 +9,8 @@
fprintf(stderr, "%s | ", buff);
}
fprintf(stderr, "libdevmapper: %s(%i): ", file, line);
---- multipath-tools-0.9.5/libmpathutil/debug.c.orig 2023-04-06 08:47:48.000000000 +0200
-+++ multipath-tools-0.9.5/libmpathutil/debug.c 2023-07-19 18:38:54.094115850 +0200
+--- multipath-tools-0.15.1/libmpathutil/debug.c.orig
++++ multipath-tools-0.15.1/libmpathutil/debug.c
@@ -33,7 +33,7 @@ void dlog(int prio, const char * fmt, ..
get_monotonic_time(&ts);
safe_sprintf(buff, "%ld.%06ld",
@@ -20,9 +20,9 @@
fprintf(stderr, "%s | ", buff);
}
vfprintf(stderr, fmt, ap);
---- multipath-tools-0.8.8/multipath/main.c.orig 2021-12-06 07:42:30.000000000 +0100
-+++ multipath-tools-0.8.8/multipath/main.c 2022-02-19 20:45:59.058702293 +0100
-@@ -414,7 +414,7 @@ static int print_cmd_valid(int k, const
+--- multipath-tools-0.15.1/multipath/main.c.orig
++++ multipath-tools-0.15.1/multipath/main.c
+@@ -409,7 +409,7 @@ static int print_cmd_valid(int k, const
wait = find_multipaths_check_timeout(pp, 0, &until);
if (wait == FIND_MULTIPATHS_WAITING)
printf("FIND_MULTIPATHS_WAIT_UNTIL=\"%ld.%06ld\"\n",
@@ -31,9 +31,9 @@
else if (wait == FIND_MULTIPATHS_WAIT_DONE)
printf("FIND_MULTIPATHS_WAIT_UNTIL=\"0\"\n");
printf("DM_MULTIPATH_DEVICE_PATH=\"%d\"\n",
---- multipath-tools-0.9.5/multipathd/main.c.orig 2023-04-06 08:47:48.000000000 +0200
-+++ multipath-tools-0.9.5/multipathd/main.c 2023-07-19 18:37:52.197784505 +0200
-@@ -2640,7 +2640,7 @@ checkerloop (void *ap)
+--- multipath-tools-0.15.1/multipathd/main.c.orig
++++ multipath-tools-0.15.1/multipathd/main.c
+@@ -3262,7 +3262,7 @@ checkerloop (void *ap)
get_monotonic_time(&start_time);
timespecsub(&start_time, &last_time, &diff_time);
condlog(4, "tick (%ld.%06lu secs)",
@@ -41,8 +41,8 @@
+ (long)diff_time.tv_sec, (unsigned long)(diff_time.tv_nsec / 1000));
last_time = start_time;
ticks = diff_time.tv_sec;
- #ifdef USE_SYSTEMD
-@@ -2740,7 +2740,7 @@ unlock:
+ watchdog_tick(&start_time);
+@@ -3324,7 +3324,7 @@ checkerloop (void *ap)
condlog(4, "checked %d path%s in %ld.%06lu secs",
num_paths, num_paths > 1 ? "s" : "",
(long)diff_time.tv_sec,
@@ -51,7 +51,7 @@
conf = get_multipath_config();
max_checkint = conf->max_checkint;
put_multipath_config(conf);
-@@ -2773,7 +2773,7 @@ unlock:
+@@ -3357,7 +3357,7 @@ checkerloop (void *ap)
condlog(3, "waiting for %ld.%06lu secs",
(long)diff_time.tv_sec,
@@ -60,9 +60,9 @@
if (nanosleep(&diff_time, NULL) != 0) {
condlog(3, "nanosleep failed with error %d",
errno);
---- multipath-tools-0.8.8/multipathd/uxlsnr.c.orig 2021-12-06 07:42:30.000000000 +0100
-+++ multipath-tools-0.8.8/multipathd/uxlsnr.c 2022-02-19 21:37:35.819193624 +0100
-@@ -318,7 +318,7 @@ static struct timespec *get_soonest_time
+--- multipath-tools-0.15.1/multipathd/uxlsnr.c.orig
++++ multipath-tools-0.15.1/multipathd/uxlsnr.c
+@@ -336,7 +336,7 @@ static struct timespec *get_soonest_time
*ts = ts_zero;
condlog(4, "%s: next client expires in %ld.%03lds", __func__,
@@ -71,7 +71,7 @@
return ts;
}
-@@ -575,7 +575,7 @@ static void check_timeout(struct client
+@@ -610,7 +610,7 @@ static void check_timeout(struct client
return;
condlog(2, "%s: cli[%d]: timed out at %ld.%03ld", __func__,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/multipath-tools.git/commitdiff/f9aa4dec87d000464fde5858c74cda90a816c62b
More information about the pld-cvs-commit
mailing list