From dd431eec4f56f3d9fa53cc219966a2b947088ac9 Mon Sep 17 00:00:00 2001 From: davidhan008 <619409713@qq.com> Date: Sun, 5 Mar 2023 17:26:11 +0800 Subject: [PATCH] fix chrpath --- ros_comm.spec | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ros_comm.spec b/ros_comm.spec index 1118f59..f9613a3 100644 --- a/ros_comm.spec +++ b/ros_comm.spec @@ -107,6 +107,23 @@ cp -r install_isolated/* %{buildroot}/opt/ros/noetic/ cp install_isolated/.rosinstall %{buildroot}/opt/ros/noetic/ cp install_isolated/.catkin %{buildroot}/opt/ros/noetic/ +#### +# 对chrpath修改 +# +#### +file `find %{buildroot}/opt/ros/noetic/lib/ -type f` | grep -w ELF | awk -F: '{print $1}' | xargs chrpath -d + + +#chrpath -d %{buildroot}/opt/ros/noetic/lib/librostime.so +#mkdir -p %{buildroot}/etc/ld.so.conf.d +#echo %{buildroot}/opt/ros/noetic/lib/:%{buildroot} > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf + +#%post +#/sbin/ldconfig + +#%postun +#/sbin/ldconfig + %files %defattr(-,root,root) /opt/ros/noetic/*