From bac0acc0b1517ca1ed08281fee7c3542d482def4 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 11 Feb 2024 20:50:56 -0500 Subject: [PATCH] Fix RHEL build after RPATH removal The tools/lou_* binaries are run during the build to generate help2man output. On Fedora, where -Wl,--enable-new-dtags is the default, the DT_RUNPATH entries point to the built liblouis. However, on RHEL where it is not, the binaries cannot find the built liblouis without DT_RPATH entries. Therefore, like in %check, define LD_LIBRARY_PATH during make. --- liblouis.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/liblouis.spec b/liblouis.spec index 9750a70..9567379 100644 --- a/liblouis.spec +++ b/liblouis.spec @@ -1,6 +1,6 @@ Name: liblouis Version: 3.28.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Braille translation and back-translation library # LGPL-2.1-or-later: the project as a whole @@ -130,6 +130,9 @@ sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ -i libtool # parallel builds fail +%if 0%{?rhel} +LD_LIBRARY_PATH=$PWD/liblouis/.libs \ +%endif make cd doc; xetex %{name}.texi cd ../python @@ -186,6 +189,9 @@ cd - %changelog +* Mon Feb 12 2024 Yaakov Selkowitz - 3.28.0-4 +- Fix RHEL build after RPATH removal + * Thu Jan 25 2024 Fedora Release Engineering - 3.28.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild