From 75ccd1747c2d32e5715ae9f96d230f901e7b8014 Mon Sep 17 00:00:00 2001 From: Lukas Frey Date: Sat, 28 Nov 2026 20:30:22 +0100 Subject: [PATCH] fix(mysql): leave the FIDO and telemetry plugins out of the Linux package They link libudev and libcurl from the system, which fails the portability check. --- packages/mysql/mirror.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/mysql/mirror.sh b/packages/mysql/mirror.sh index dc0067b..f4dc687 100755 --- a/packages/mysql/mirror.sh +++ b/packages/mysql/mirror.sh @@ -1,8 +1,9 @@ #!/usr/bin/env bash # Mirrors Oracle's MySQL Community Server archive unchanged on macOS (tar.gz) and Windows (zip). # On Linux Oracle's generic build (glibc 2.28+, .tar.xz) is checked, then made fit for a desktop: -# without the debug server, debug symbols and test suite (1 GB → ~100 MB), and with libaio and -# libnuma bundled in lib/private (packages/mysql/linux/libs.sh), repacked as .tar.gz. +# without the debug server, debug symbols, test suite and the plugins that need more system +# libraries (FIDO/WebAuthn, telemetry), 1 GB → ~100 MB; with libaio and libnuma bundled in +# lib/private (packages/mysql/linux/libs.sh), repacked as .tar.gz. # Usage: packages/mysql/mirror.sh set -euo pipefail . "$(dirname "$0")/../../scripts/lib.sh" @@ -27,6 +28,10 @@ mysql_fetch "$V" "${names[0]}" "$tmp/mysql.tar.xz" mkdir "$tmp/pkg" && tar -C "$tmp/pkg" -xJf "$tmp/mysql.tar.xz" D="$(echo "$tmp"/pkg/*)" rm -rf "$D/bin/mysqld-debug" "$D/lib/plugin/debug" "$D/mysql-test" "$D/docs" "$D/man" "$D/include" +# The FIDO/WebAuthn and telemetry plugins need libudev and libcurl from the system: left out, so +# the package only links what it ships (scripts/verify-linux.sh). +rm -f "$D"/lib/plugin/authentication_fido*.so "$D"/lib/plugin/authentication_webauthn*.so \ + "$D"/lib/plugin/*telemetry*.so "$D"/lib/private/libfido2.so* find "$D" -name '*.a' -delete find "$D/bin" "$D/lib" -type f -exec sh -c 'file -b "$1" | grep -q ^ELF && strip --strip-debug "$1"' _ {} \; bash "$(dirname "$0")/linux/libs.sh" "$D/lib/private" "$D/LICENSES"