commit:     6eb6abd03595e182f69888ed45b2537afbe144eb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 24 08:34:10 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 24 08:34:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6eb6abd0

dev-qt/qtserialport: substitute -ludev unconditionally

Apparently sometimes QMAKE_LIBS_LIBUDEV isn't populated and it's not
worth spending time to figure out why for Qt 5.

Bug: https://bugs.gentoo.org/673532
Closes: https://bugs.gentoo.org/930543
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-qt/qtserialport/qtserialport-5.15.16.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-qt/qtserialport/qtserialport-5.15.16.ebuild 
b/dev-qt/qtserialport/qtserialport-5.15.16.ebuild
index 560fa3473a30..b395750f920e 100644
--- a/dev-qt/qtserialport/qtserialport-5.15.16.ebuild
+++ b/dev-qt/qtserialport/qtserialport-5.15.16.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -22,6 +22,7 @@ RDEPEND="${DEPEND}"
 src_prepare() {
        # make sure we link against libudev
        sed -i -e 's/:qtConfig(libudev)//' \
+               -e "s/\$\$QMAKE_LIBS_LIBUDEV/-ludev/" \
                src/serialport/serialport-lib.pri || die
 
        qt5-build_src_prepare

Reply via email to