From 77f1694a93a25287e970c69bf8a28b8b15e9d17f Mon Sep 17 00:00:00 2001 From: Evgeniy Patlan Date: Wed, 19 Aug 2026 12:55:10 +0300 Subject: [PATCH] Do not rewrite RPATH of bundled libexec binaries mysqlbinlog and mysql_config_editor are bundled into libexec and link only system libraries, so they never need an $ORIGIN-relative RPATH. Rewriting it anyway leaves them corrupted once installed from an RPM: mysqlbinlog reports "no version information available (required by )" and mysql_config_editor segfaults, while the same binaries run correctly in the build tree. util.dumpBinlogs() and login-path credential storage are both broken as a result. This is the same failure already worked around for libfido2 in src/CMakeLists.txt, applied to the other two bundled binaries. --- modules/CMakeLists.txt | 3 +++ mysql-secret-store/login-path/CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index 967cd8bbd..98e162f70 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -187,6 +187,9 @@ IF(BUNDLED_MYSQLBINLOG) BINARIES "${BUNDLED_MYSQLBINLOG}" DESTINATION "${INSTALL_LIBEXECDIR}" TARGET api_modules + # This binary links only system libraries; rewriting its RPATH is both + # unnecessary and, as with libfido2, corrupts it during RPM packaging + WRITE_RPATH FALSE EXTRA_COPY_COMMANDS ${EXTRA_COPY_COMMANDS} ) ENDIF() diff --git a/mysql-secret-store/login-path/CMakeLists.txt b/mysql-secret-store/login-path/CMakeLists.txt index 03706288e..98625389c 100644 --- a/mysql-secret-store/login-path/CMakeLists.txt +++ b/mysql-secret-store/login-path/CMakeLists.txt @@ -53,5 +53,8 @@ IF(BUNDLED_MYSQL_CONFIG_EDITOR) BINARIES "${BUNDLED_MYSQL_CONFIG_EDITOR}" DESTINATION "${INSTALL_LIBEXECDIR}" TARGET mysql-secret-store-login-path + # This binary links only system libraries; rewriting its RPATH is both + # unnecessary and, as with libfido2, corrupts it during RPM packaging + WRITE_RPATH FALSE ) ENDIF()