package/util-linux: fix LSMT_ROOT fallback definition
PATCH 1/1 package/util-linux: fix LSMT_ROOT fallback definition
The fallback definition for LSMT_ROOT was incorrectly guarded with #ifdef instead of #ifndef, making it ineffective on systems with older kernel headers that don't define this constant.
This caused build failures with "LSMT_ROOT undeclared" errors on autobuilders using older kernel headers.
Fixes:
- http://autobuild.buildroot.net/results/ac2/ac2bc633db0c605564c79bfdfa0e257a9b4f1b28/
--- ...api-utils.h-fix-LSMT_ROOT-definition.patch | 26 +++++++++++++++++++ ...api-utils.h-fix-LSMT_ROOT-definition.patch | 26 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 package/util-linux/0001-include-mount-api-utils.h-fix-LSMT_ROOT-definition.patch create mode 100644 package/util-linux/util-linux-libs/0001-include-mount-api-utils.h-fix-LSMT_ROOT-definition.patch
package/util-linux/0001-include-mount-api-utils.h-fix-LSMT_ROOT-definition.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 72ff3b8998a675900fcb7c18c0e03f1552b13a8b Mon Sep 17 00:00:00 2001 +From: Shubham Chakraborty <[email protected]> +Date: Tue, 14 Apr 2026 11:04:08 +0530 +Subject: [PATCH] include/mount-api-utils.h: fix LSMT_ROOT definition + +Signed-off-by: Shubham Chakraborty <[email protected]> +--- + include/mount-api-utils.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/mount-api-utils.h b/include/mount-api-utils.h +index a916f99..87e173e 100644 +--- a/include/mount-api-utils.h ++++ b/include/mount-api-utils.h +@@ -339,7 +339,7 @@ struct ul_statmount { + /* + * Special @mnt_id values that can be passed to listmount + */ +-#ifdef LSMT_ROOT ++#ifndef LSMT_ROOT + # define LSMT_ROOT 0xffffffffffffffff /* root mount */ + #endif + +-- +2.53.0 +
package/util-linux/util-linux-libs/0001-include-mount-api-utils.h-fix-LSMT_ROOT-definition.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 72ff3b8998a675900fcb7c18c0e03f1552b13a8b Mon Sep 17 00:00:00 2001 +From: Shubham Chakraborty <[email protected]> +Date: Tue, 14 Apr 2026 11:04:08 +0530 +Subject: [PATCH] include/mount-api-utils.h: fix LSMT_ROOT definition + +Signed-off-by: Shubham Chakraborty <[email protected]> +--- + include/mount-api-utils.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/mount-api-utils.h b/include/mount-api-utils.h +index a916f99..87e173e 100644 +--- a/include/mount-api-utils.h ++++ b/include/mount-api-utils.h +@@ -339,7 +339,7 @@ struct ul_statmount { + /* + * Special @mnt_id values that can be passed to listmount + */ +-#ifdef LSMT_ROOT ++#ifndef LSMT_ROOT + # define LSMT_ROOT 0xffffffffffffffff /* root mount */ + #endif + +-- +2.53.0 +
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 1/1 package/util-linux: fix LSMT_ROOT fallback definition
The fallback definition for LSMT_ROOT was incorrectly guarded with #ifdef instead of #ifndef, making it ineffective on systems with older kernel headers that don't define this constant.
This caused build failures with "LSMT_ROOT undeclared" errors on autobuilders using older kernel headers.
Fixes:
- http://autobuild.buildroot.net/results/ac2/ac2bc633db0c605564c79bfdfa0e257a9b4f1b28/
---
Changes v2 -> v3:
- Replace symlink with full patch file to fix Patchwork/mailing list compatibility
Changes v1 -> v2:
- Add missing 'Upstream:' tag to patches (fixes check-package failure)
- Use symlink for util-linux-libs patch to avoid duplication
--- ...api-utils.h-fix-LSMT_ROOT-definition.patch | 27 +++++++++++++++++++ ...api-utils.h-fix-LSMT_ROOT-definition.patch | 27 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 package/util-linux/0001-include-mount-api-utils.h-fix-LSMT_ROOT-definition.patch create mode 100644 package/util-linux/util-linux-libs/0001-include-mount-api-utils.h-fix-LSMT_ROOT-definition.patch
package/util-linux/0001-include-mount-api-utils.h-fix-LSMT_ROOT-definition.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 72ff3b8998a675900fcb7c18c0e03f1552b13a8b Mon Sep 17 00:00:00 2001 +From: Shubham Chakraborty <[email protected]> +Date: Tue, 14 Apr 2026 11:04:08 +0530 +Subject: [PATCH] include/mount-api-utils.h: fix LSMT_ROOT definition + +Upstream: Pending +Signed-off-by: Shubham Chakraborty <[email protected]> +--- + include/mount-api-utils.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/mount-api-utils.h b/include/mount-api-utils.h +index a916f99..87e173e 100644 +--- a/include/mount-api-utils.h ++++ b/include/mount-api-utils.h +@@ -339,7 +339,7 @@ struct ul_statmount { + /* + * Special @mnt_id values that can be passed to listmount + */ +-#ifdef LSMT_ROOT ++#ifndef LSMT_ROOT + # define LSMT_ROOT 0xffffffffffffffff /* root mount */ + #endif + +-- +2.53.0 +
package/util-linux/util-linux-libs/0001-include-mount-api-utils.h-fix-LSMT_ROOT-definition.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 72ff3b8998a675900fcb7c18c0e03f1552b13a8b Mon Sep 17 00:00:00 2001 +From: Shubham Chakraborty <[email protected]> +Date: Tue, 14 Apr 2026 11:04:08 +0530 +Subject: [PATCH] include/mount-api-utils.h: fix LSMT_ROOT definition + +Upstream: Pending +Signed-off-by: Shubham Chakraborty <[email protected]> +--- + include/mount-api-utils.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/mount-api-utils.h b/include/mount-api-utils.h +index a916f99..87e173e 100644 +--- a/include/mount-api-utils.h ++++ b/include/mount-api-utils.h +@@ -339,7 +339,7 @@ struct ul_statmount { + /* + * Special @mnt_id values that can be passed to listmount + */ +-#ifdef LSMT_ROOT ++#ifndef LSMT_ROOT + # define LSMT_ROOT 0xffffffffffffffff /* root mount */ + #endif + +-- +2.53.0 +
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot