Commit a05141b
committed
lvm2: Bump to 2.03.25 with C23 compatibility patch
Upgrade from 2.03.23 (Nov 2023) to 2.03.25 (Jul 2024). The newer version
removes the libgen.h issue that required a GCC 15.1.0 workaround patch.
However, GCC 15.1.0's C23 mode enforces const qualifiers on stdin/stdout/stderr,
which breaks lvm2's reopen_standard_stream() calls. Port the working patch from
lvm2-2.03.23 in osresearch/heads master branch (commit 63290d6) to 2.03.25.
The patch wraps problematic memory allocation and log10() calls in #if 0 blocks
to disable them at compile-time, maintaining compatibility with musl-libc and
C23 standard enforcement.
Changes:
- Bump lvm2 from 2.03.23 to 2.03.25
- Update hash to 4bea6fd2e5af9cdb3e27b48b4efa8d89210d9bfa13df900e092e404720a59b1d
- Replace -Os with -Oz for space optimization
- Port lvm2-2.03.23.patch to lvm2-2.03.25.patch for C23 compatibility
- Remove obsolete lvm2-gcc-15.1-libgen.patch
Tested: EOL_x220-hotp-maximized board builds successfully with 182 KiB free CBFS
Ref: GCC 15.1.0 upgrade (PR #1991)
Signed-off-by: Thierry Laurion <insurgo@riseup.net>1 parent b66ca63 commit a05141b
2 files changed
Lines changed: 9 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
4 | 10 | | |
5 | 11 | | |
6 | 12 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
Lines changed: 1 addition & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 150 | | |
0 commit comments