From 82fced15bc614606468ece31ea937755bc218bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 18 Nov 2025 16:16:19 +0000 Subject: [PATCH] Purge nodejs sqlite3 rpath instead of disabling rpath checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel P. Berrangé --- linux-sgx.spec | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/linux-sgx.spec b/linux-sgx.spec index 06a3850..4c34d76 100644 --- a/linux-sgx.spec +++ b/linux-sgx.spec @@ -13,16 +13,6 @@ # /usr/bin/ld: /tmp/ccWKJhwL.ltrans0.ltrans.o: relocation R_X86_64_PC32 against symbol `_Z16aesm_thread_procPv' can not be used when making a shared object; recompile with -fPIC %global _lto_cflags %nil -# The nodejs sqlite3 module will trigger a warning -# -# ERROR 0001: file '/usr/lib/node_modules_22/pccs/node_modules/sqlite3/build/Release/node_sqlite3.node' contains a standard runpath '/usr/lib64' in [/usr/lib64] -# ERROR 0001: file '/usr/lib/node_modules_22/pccs/node_modules/sqlite3/build/Release/obj.target/node_sqlite3.node' contains a standard runpath '/usr/lib64' in [/usr/lib64] -# -# since these are harmless just disable the check for now -# rather than trying to figure out how to remove them - -%global __brp_check_rpaths %{nil} - ############################################################ # # Note about the approach to bundling... @@ -950,6 +940,8 @@ LDFLAGS="%{build_ldflags}" \ # Keep brp-mangle-shebangs happy find node_modules -type f -exec chmod -x {} \; + patchelf --remove-rpath node_modules/sqlite3/build/Release/node_sqlite3.node + tar zxvf %{SOURCE55} ( cd node-ffi-rs-%{node_ffi_rs_version}