Backport RHEL9 patch for RPATH

Resolves: RHEL-45267
This commit is contained in:
Jan Grulich 2024-08-06 13:35:19 +02:00
parent e8f7d94b04
commit 4b3a83bc7f
2 changed files with 20 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 1ea9deb..36253d1 100644
--- a/cmake/mainSetup.cmake
+++ b/cmake/mainSetup.cmake
@@ -26,8 +26,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

@ -1,6 +1,6 @@
Name: exiv2
Version: 0.28.3
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Exif and Iptc metadata manipulation library
# GPL-2.0-or-later: main library
@ -20,6 +20,8 @@ Source: %{vcs}/archive/v%{version}-%{beta}/%{name}-%{version}-%{beta}.ta
Source: %{vcs}/archive/v%{version}/%{name}-%{version}.tar.gz
%endif
Patch0: exiv2-no-rpath.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gettext
@ -143,6 +145,10 @@ test -x %{buildroot}%{_libdir}/libexiv2.so
%changelog
* Tue Aug 06 2024 Jan Grulich <jgrulich@redhat.com> - 0.28.3-2
- Backport RHEL9 patch for RPATH
Resolves: RHEL-45267
* Tue Aug 06 2024 Jan Grulich <jgrulich@redhat.com> - 0.28.3-1
- 0.28.3
Resolves: RHEL-45267