lvm2: 2.03.23 -> 2.03.24

https://gitlab.com/lvmteam/lvm2/-/blob/v2_03_24/WHATS_NEW
This commit is contained in:
ajs124 2024-05-16 23:24:04 +02:00
parent 5b36ae93b0
commit 0a4fb98655
4 changed files with 32 additions and 61 deletions

View File

@ -1,4 +1,4 @@
import ./common.nix { import ./common.nix {
version = "2.03.23"; version = "2.03.24";
hash = "sha256-dOeUqene4bz4ogZfZbkZbET98yHiLWO5jtfejJqhel0="; hash = "sha256-WTxVA7oA+qscbgtKWXuWBex7WIGEXAS/QS6/nRu/oTw=";
} }

View File

@ -101,10 +101,7 @@ stdenv.mkDerivation rec {
multipath_tools = optionalTool enableMultipath multipath-tools; multipath_tools = optionalTool enableMultipath multipath-tools;
vdo = optionalTool enableVDO vdo; vdo = optionalTool enableVDO vdo;
})) }))
# Musl fix from Alpine
./fix-stdio-usage.patch ./fix-stdio-usage.patch
# https://gitlab.com/lvmteam/lvm2/-/merge_requests/8
./fix-static.patch
]; ];
doCheck = false; # requires root doCheck = false; # requires root

View File

@ -1,28 +0,0 @@
From 0cbe7f0adc86c92c61156c417b27b063f156b31b Mon Sep 17 00:00:00 2001
From: Alyssa Ross <hi@alyssa.is>
Date: Tue, 2 Jan 2024 18:15:20 +0100
Subject: [PATCH] makefiles: fix disabling shared link
LIB_SHARED still gets set when shared linking has been disabled, so
the previous version of this check still attempted to build the
shared library.
---
libdm/make.tmpl.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libdm/make.tmpl.in b/libdm/make.tmpl.in
index 2dd9625d4d..69ba2c35ab 100644
--- a/libdm/make.tmpl.in
+++ b/libdm/make.tmpl.in
@@ -436,7 +436,7 @@ DEFS+=-D_FILE_OFFSET_BITS=64
@echo " [CC] $(<F)"
$(Q) $(CC) -c $(CFLAGS) $(CLDFLAGS) $< $(LIBS) -o $@
-ifneq (,$(LIB_SHARED))
+ifeq ("@SHARED_LINK@", "yes")
TARGETS += $(LIB_SHARED).$(LIB_VERSION)
$(LIB_SHARED).$(LIB_VERSION): $(OBJECTS) $(LDDEPS)
--
GitLab

View File

@ -1,40 +1,45 @@
From 63b1c7332bee6080bffecf9ce9d75ff15d799166 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Wed, 16 Nov 2022 10:42:39 +0100
Subject: [PATCH] fix stdio usage
---
lib/commands/toolcontext.c | 4 ++--
tools/lvmcmdline.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index b630554a9..f20080d18 100644 index 56dc1f856..011ec2700 100644
--- a/lib/commands/toolcontext.c --- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c
@@ -1667,7 +1667,7 @@ struct cmd_context *create_toolcontext(unsigned is_clvmd, @@ -1660,6 +1660,7 @@ struct cmd_context *create_toolcontext(unsigned is_clvmd,
/* FIXME Make this configurable? */ /* FIXME Make this configurable? */
reset_lvm_errno(1); reset_lvm_errno(1);
-#ifndef VALGRIND_POOL +#ifdef __GLIBC__
+#if !defined(VALGRIND_POOL) && defined(__GLIBC__)
/* Set in/out stream buffering before glibc */ /* Set in/out stream buffering before glibc */
if (set_buffering if (set_buffering
#ifdef SYS_gettid && !cmd->running_on_valgrind /* Skipping within valgrind execution. */
@@ -2045,7 +2045,7 @@ void destroy_toolcontext(struct cmd_context *cmd) @@ -1704,7 +1705,7 @@ struct cmd_context *create_toolcontext(unsigned is_clvmd,
} else if (!set_buffering)
/* Without buffering, must not use stdin/stdout */
init_silent(1);
-
+#endif
/*
* Environment variable LVM_SYSTEM_DIR overrides this below.
*/
@@ -2038,6 +2039,7 @@ void destroy_toolcontext(struct cmd_context *cmd)
if (cmd->cft_def_hash)
dm_hash_destroy(cmd->cft_def_hash); dm_hash_destroy(cmd->cft_def_hash);
dm_device_list_destroy(&cmd->cache_dm_devs); +#ifdef __GLIBC__
-#ifndef VALGRIND_POOL if (!cmd->running_on_valgrind && cmd->linebuffer) {
+#if !defined(VALGRIND_POOL) && defined(__GLIBC__) int flags;
if (cmd->linebuffer) {
/* Reset stream buffering to defaults */ /* Reset stream buffering to defaults */
if (is_valid_fd(STDIN_FILENO) && @@ -2061,6 +2063,7 @@ void destroy_toolcontext(struct cmd_context *cmd)
free(cmd->linebuffer);
}
+#endif
destroy_config_context(cmd);
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index a5bb6a5c5..0ebfa375c 100644 index 1b2f7f47c..e0674d42d 100644
--- a/tools/lvmcmdline.c --- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c +++ b/tools/lvmcmdline.c
@@ -3422,7 +3422,7 @@ static int _check_standard_fds(void) @@ -3378,7 +3378,7 @@ static int _check_standard_fds(void)
int err = is_valid_fd(STDERR_FILENO); int err = is_valid_fd(STDERR_FILENO);
if (!is_valid_fd(STDIN_FILENO) && if (!is_valid_fd(STDIN_FILENO) &&
@ -43,7 +48,7 @@ index a5bb6a5c5..0ebfa375c 100644
if (err) if (err)
perror("stdin stream open"); perror("stdin stream open");
else else
@@ -3432,7 +3432,7 @@ static int _check_standard_fds(void) @@ -3388,7 +3388,7 @@ static int _check_standard_fds(void)
} }
if (!is_valid_fd(STDOUT_FILENO) && if (!is_valid_fd(STDOUT_FILENO) &&
@ -52,7 +57,7 @@ index a5bb6a5c5..0ebfa375c 100644
if (err) if (err)
perror("stdout stream open"); perror("stdout stream open");
/* else no stdout */ /* else no stdout */
@@ -3440,7 +3440,7 @@ static int _check_standard_fds(void) @@ -3396,7 +3396,7 @@ static int _check_standard_fds(void)
} }
if (!is_valid_fd(STDERR_FILENO) && if (!is_valid_fd(STDERR_FILENO) &&
@ -61,6 +66,3 @@ index a5bb6a5c5..0ebfa375c 100644
printf("stderr stream open: %s\n", printf("stderr stream open: %s\n",
strerror(errno)); strerror(errno));
return 0; return 0;
--
2.38.1