Debian Codegraph @

debian/patches/abi-check-32bits.diff

raw
1 From 5038b2836057e3a512609f100cf0369bfb167541 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <[email protected]>
3 Date: Tue, 5 May 2026 19:22:32 +0000
4 Subject: [PATCH] Resolves #1117 abi-check: tolerate size_t mangling difference
5
6 ---
7 tests/abi-check.sh | 8 +++++++-
8 1 file changed, 7 insertions(+), 1 deletion(-)
9
10 diff --git a/tests/abi-check.sh b/tests/abi-check.sh
11 index 2933ad01..04c1d893 100755
12 --- a/tests/abi-check.sh
13 +++ b/tests/abi-check.sh
14 @@ -69,7 +69,13 @@ if [ "$MODE" = "update" ]; then
15 exit 0
16 fi
17
18 -MISSING="$(LC_ALL=C comm -23 "$BASELINE" "$CURRENT")"
19 +# size_t at the end of a parameter list mangles as 'm' on LP64 and 'j'
20 +# on ILP32; retry with the trailing letter swapped before declaring a
21 +# baseline symbol gone, so the check passes on 32-bit Linux too.
22 +MISSING="$(LC_ALL=C comm -23 "$BASELINE" "$CURRENT" | while IFS= read -r sym; do
23 + alt=$(printf '%s' "$sym" | sed 's/m$/j/; t; s/j$/m/')
24 + grep -qxF -- "$alt" "$CURRENT" || printf '%s\n' "$sym"
25 +done)"
26 if [ -n "$MISSING" ]; then
27 echo "abi-check: FAIL - symbols missing from current build:"
28 echo "$MISSING" | sed 's/^/ /'