Purge nodejs sqlite3 rpath instead of disabling rpath checks

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2025-11-18 16:16:19 +00:00
commit 82fced15bc

View file

@ -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}