From b2d28bb55a988cb2f8f5b1afbe919357c797a39d Mon Sep 17 00:00:00 2001 From: "Brett T. Warden" Date: Mon, 14 Oct 2024 15:23:40 -0700 Subject: [PATCH] Add path to Qt6 build tools in qmake build_pattern When using the qmake build pattern, add the path /usr/lib64/qt6/bin/ that contains qmake6 and other Qt6 build tools. --- autospec/specfiles.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autospec/specfiles.py b/autospec/specfiles.py index 0929f52..e55e32c 100644 --- a/autospec/specfiles.py +++ b/autospec/specfiles.py @@ -1825,6 +1825,9 @@ class Specfile(object): self._write_strip('export QMAKE_CFLAGS_RELEASE=') self._write_strip('export QMAKE_CXXFLAGS_RELEASE=') + # Add the qt6base tools to the path + self._write_strip('export PATH=/usr/lib64/qt6/bin:$PATH') + if self.config.make_command: qmake = self.config.make_command else: