Remove RPATH

Resolves: bz#2018421
This commit is contained in:
Jan Grulich 2021-11-15 09:10:09 +01:00
parent 81d2c76e0d
commit 56d4420af0
2 changed files with 19 additions and 1 deletions

13
exiv2-no-rpath.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/cmake/mainSetup.cmake b/cmake/mainSetup.cmake
index fcaa21f..f69fc46 100644
--- a/cmake/mainSetup.cmake
+++ b/cmake/mainSetup.cmake
@@ -23,8 +23,6 @@ if (UNIX)
if (APPLE)
set(CMAKE_MACOSX_RPATH ON)
set(CMAKE_INSTALL_RPATH "@loader_path")
- else()
- join_paths(CMAKE_INSTALL_RPATH "$ORIGIN" ".." "${CMAKE_INSTALL_LIBDIR}")
endif()
endif()

View File

@ -5,7 +5,7 @@ Summary: Exif and Iptc metadata manipulation library
Name: exiv2 Name: exiv2
Version: 0.27.5 Version: 0.27.5
%global internal_ver %{version} %global internal_ver %{version}
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
URL: http://www.exiv2.org/ URL: http://www.exiv2.org/
@ -20,6 +20,7 @@ Source0: http://exiv2.org/builds/%{name}-%{version}-Source.tar.gz
## security fixes ## security fixes
## upstreamable patches ## upstreamable patches
Patch0: exiv2-no-rpath.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: expat-devel BuildRequires: expat-devel
@ -124,6 +125,10 @@ test -x %{buildroot}%{_libdir}/libexiv2.so
%changelog %changelog
* Mon Nov 15 2021 Jan Grulich <jgrulich@redhat.com> - 0.27.5-2
- Remove RPATH
Resolves: bz#2018421
* Fri Nov 12 2021 Jan Grulich <jgrulich@redhat.com> - 0.27.5-1 * Fri Nov 12 2021 Jan Grulich <jgrulich@redhat.com> - 0.27.5-1
- Exiv2 0.27.5 - Exiv2 0.27.5
Resolves: bz#2018421 Resolves: bz#2018421