From 6faddadc32fa4958b8e183857219f29229837343 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sun, 25 Jun 2023 15:46:19 +0200 Subject: [PATCH] Fix self tests when building for flatpak Avoid throwing away the contents of the PKG_CONFIG_PATH env variable that the build system sets up, and only append to it. This fixes self tests for flatpak builds where the build system sets PKG_CONFIG_PATH in order to find libraries in both /usr and /app. --- qt5-qttools.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qt5-qttools.spec b/qt5-qttools.spec index 020483b..aeda9aa 100644 --- a/qt5-qttools.spec +++ b/qt5-qttools.spec @@ -13,7 +13,7 @@ Summary: Qt5 - QtTool components Name: qt5-qttools Version: 5.15.10 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://www.qt.io @@ -245,7 +245,7 @@ sed -i -e 's| Qt5UiPlugin||g' %{buildroot}%{_qt5_libdir}/pkgconfig/Qt5Designer.p %if 0%{?fedora} || 0%{?rhel} > 6 %check # verify validity of Qt5Designer.pc -export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig +export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig:$PKG_CONFIG_PATH pkg-config --print-requires --print-requires-private Qt5Designer export CMAKE_PREFIX_PATH=%{buildroot}%{_qt5_prefix}:%{buildroot}%{_prefix} export PATH=%{buildroot}%{_qt5_bindir}:%{_qt5_bindir}:$PATH @@ -482,6 +482,9 @@ fi %changelog +* Sun Jun 25 2023 Kalev Lember - 5.15.10-2 +- Fix self tests when building for flatpak + * Mon Jun 12 2023 Jan Grulich - 5.15.10-1 - 5.15.10