!414 remove rpath by cmake
From: @taotao-sauce Reviewed-by: @duguhaotian, @zh_xiaoyu Signed-off-by: @duguhaotian
This commit is contained in:
commit
511873f25c
22
iSulad.spec
22
iSulad.spec
@ -1,5 +1,5 @@
|
|||||||
%global _version 2.0.15
|
%global _version 2.0.15
|
||||||
%global _release 5
|
%global _release 6
|
||||||
%global is_systemd 1
|
%global is_systemd 1
|
||||||
%global enable_shimv2 1
|
%global enable_shimv2 1
|
||||||
%global is_embedded 1
|
%global is_embedded 1
|
||||||
@ -68,7 +68,7 @@ BuildRequires: grpc grpc-plugins grpc-devel protobuf-devel
|
|||||||
BuildRequires: libcurl libcurl-devel libarchive-devel device-mapper-devel
|
BuildRequires: libcurl libcurl-devel libarchive-devel device-mapper-devel
|
||||||
BuildRequires: http-parser-devel
|
BuildRequires: http-parser-devel
|
||||||
BuildRequires: libseccomp-devel libcap-devel libselinux-devel libwebsockets libwebsockets-devel
|
BuildRequires: libseccomp-devel libcap-devel libselinux-devel libwebsockets libwebsockets-devel
|
||||||
BuildRequires: systemd-devel git chrpath
|
BuildRequires: systemd-devel git
|
||||||
%if 0%{?enable_shimv2}
|
%if 0%{?enable_shimv2}
|
||||||
BuildRequires: lib-shim-v2 lib-shim-v2-devel
|
BuildRequires: lib-shim-v2 lib-shim-v2-devel
|
||||||
%endif
|
%endif
|
||||||
@ -95,9 +95,9 @@ Runtime Daemon, written by C.
|
|||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
%if 0%{?enable_shimv2}
|
%if 0%{?enable_shimv2}
|
||||||
%cmake -DDEBUG=ON -DLIB_INSTALL_DIR=%{_libdir} -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_SHIM_V2=ON ../
|
%cmake -DDEBUG=ON -DCMAKE_SKIP_RPATH=TRUE -DLIB_INSTALL_DIR=%{_libdir} -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_SHIM_V2=ON ../
|
||||||
%else
|
%else
|
||||||
%cmake -DDEBUG=ON -DLIB_INSTALL_DIR=%{_libdir} -DCMAKE_INSTALL_PREFIX=/usr ../
|
%cmake -DDEBUG=ON -DCMAKE_SKIP_RPATH=TRUE -DLIB_INSTALL_DIR=%{_libdir} -DCMAKE_INSTALL_PREFIX=/usr ../
|
||||||
%endif
|
%endif
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
@ -107,9 +107,9 @@ cd build
|
|||||||
install -d $RPM_BUILD_ROOT/%{_libdir}
|
install -d $RPM_BUILD_ROOT/%{_libdir}
|
||||||
install -m 0644 ./src/libisula.so %{buildroot}/%{_libdir}/libisula.so
|
install -m 0644 ./src/libisula.so %{buildroot}/%{_libdir}/libisula.so
|
||||||
install -m 0644 ./src/utils/http/libhttpclient.so %{buildroot}/%{_libdir}/libhttpclient.so
|
install -m 0644 ./src/utils/http/libhttpclient.so %{buildroot}/%{_libdir}/libhttpclient.so
|
||||||
chrpath -d ./src/libisulad_tools.so
|
|
||||||
install -m 0644 ./src/libisulad_tools.so %{buildroot}/%{_libdir}/libisulad_tools.so
|
install -m 0644 ./src/libisulad_tools.so %{buildroot}/%{_libdir}/libisulad_tools.so
|
||||||
chrpath -d ./src/daemon/modules/image/libisulad_img.so
|
|
||||||
install -m 0644 ./src/daemon/modules/image/libisulad_img.so %{buildroot}/%{_libdir}/libisulad_img.so
|
install -m 0644 ./src/daemon/modules/image/libisulad_img.so %{buildroot}/%{_libdir}/libisulad_img.so
|
||||||
chmod +x %{buildroot}/%{_libdir}/libisula.so
|
chmod +x %{buildroot}/%{_libdir}/libisula.so
|
||||||
chmod +x %{buildroot}/%{_libdir}/libhttpclient.so
|
chmod +x %{buildroot}/%{_libdir}/libhttpclient.so
|
||||||
@ -119,10 +119,10 @@ install -d $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
|
|||||||
install -m 0640 ./conf/isulad.pc %{buildroot}/%{_libdir}/pkgconfig/isulad.pc
|
install -m 0640 ./conf/isulad.pc %{buildroot}/%{_libdir}/pkgconfig/isulad.pc
|
||||||
|
|
||||||
install -d $RPM_BUILD_ROOT/%{_bindir}
|
install -d $RPM_BUILD_ROOT/%{_bindir}
|
||||||
chrpath -d ./src/isula
|
|
||||||
install -m 0755 ./src/isula %{buildroot}/%{_bindir}/isula
|
install -m 0755 ./src/isula %{buildroot}/%{_bindir}/isula
|
||||||
install -m 0755 ./src/isulad-shim %{buildroot}/%{_bindir}/isulad-shim
|
install -m 0755 ./src/isulad-shim %{buildroot}/%{_bindir}/isulad-shim
|
||||||
chrpath -d ./src/isulad
|
|
||||||
install -m 0755 ./src/isulad %{buildroot}/%{_bindir}/isulad
|
install -m 0755 ./src/isulad %{buildroot}/%{_bindir}/isulad
|
||||||
|
|
||||||
install -d $RPM_BUILD_ROOT/%{_includedir}/isulad
|
install -d $RPM_BUILD_ROOT/%{_includedir}/isulad
|
||||||
@ -261,6 +261,12 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 22 2022 zhongtao <zhongtao17@huawei.com> - 2.0.15-6
|
||||||
|
- Type: enhancement
|
||||||
|
- ID: NA
|
||||||
|
- SUG: NA
|
||||||
|
- DESC: remove rpath by cmake
|
||||||
|
|
||||||
* Wed Aug 17 2022 haozi007 <liuhao27@huawei.com> - 2.0.15-5
|
* Wed Aug 17 2022 haozi007 <liuhao27@huawei.com> - 2.0.15-5
|
||||||
- Type: enhancement
|
- Type: enhancement
|
||||||
- ID: NA
|
- ID: NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user