commit: ca68a18d07f91fcbbe2f57d762ef197c660f7be6 Author: Robert Holt <robert <AT> robertholt <DOT> net> AuthorDate: Wed Feb 12 02:54:13 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Feb 12 07:33:44 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca68a18d
kde-plasma/plasma-browser-integration: Add missing include to fix llvm build Signed-off-by: Robert Holt <robert <AT> robertholt.net> Closes: https://github.com/gentoo/gentoo/pull/40541 Signed-off-by: Sam James <sam <AT> gentoo.org> ...ser-integration-6.3.0-fix-missing-include.patch | 27 ++++++++++++++++++++++ .../plasma-browser-integration-6.3.0.ebuild | 4 ++++ 2 files changed, 31 insertions(+) diff --git a/kde-plasma/plasma-browser-integration/files/plasma-browser-integration-6.3.0-fix-missing-include.patch b/kde-plasma/plasma-browser-integration/files/plasma-browser-integration-6.3.0-fix-missing-include.patch new file mode 100644 index 000000000000..757d50ae9d66 --- /dev/null +++ b/kde-plasma/plasma-browser-integration/files/plasma-browser-integration-6.3.0-fix-missing-include.patch @@ -0,0 +1,27 @@ +From 11f5d91860d3f3392dd454298068b6757f5fb98a Mon Sep 17 00:00:00 2001 +From: Jami Kettunen <[email protected]> +Date: Tue, 11 Feb 2025 22:50:10 +0200 +Subject: [PATCH] Add missing include for flatpak-integrator plugin + +flatpak-integrator/plugin.cpp:160:13: error: use of undeclared identifier 'close' + 160 | close(dirfd); + | ^ +--- + flatpak-integrator/plugin.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/flatpak-integrator/plugin.cpp b/flatpak-integrator/plugin.cpp +index 27f064cc..e6d59033 100644 +--- a/flatpak-integrator/plugin.cpp ++++ b/flatpak-integrator/plugin.cpp +@@ -3,6 +3,7 @@ + + #include <fcntl.h> + #include <sys/stat.h> ++#include <unistd.h> + + #include <QDBusConnection> + #include <QDBusConnectionInterface> +-- +GitLab + diff --git a/kde-plasma/plasma-browser-integration/plasma-browser-integration-6.3.0.ebuild b/kde-plasma/plasma-browser-integration/plasma-browser-integration-6.3.0.ebuild index c5580af3782d..6b443215cd80 100644 --- a/kde-plasma/plasma-browser-integration/plasma-browser-integration-6.3.0.ebuild +++ b/kde-plasma/plasma-browser-integration/plasma-browser-integration-6.3.0.ebuild @@ -36,6 +36,10 @@ DEPEND="${RDEPEND} >=kde-frameworks/krunner-${KFMIN}:6 " +PATCHES=( + "${FILESDIR}/${PN}-6.3.0-fix-missing-include.patch" # https://invent.kde.org/plasma/plasma-browser-integration/-/merge_requests/142 +) + src_configure() { local mycmakeargs=( -DMOZILLA_DIR="${EPREFIX}/usr/$(get_libdir)/mozilla"
