commit:     6005fccc74402b5e8020849c6de99f044be6c671
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 11 16:34:12 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 11 16:34:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6005fccc

kde-apps/kdenetwork-filesharing: fix build w/ gcc 13

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

 .../kdenetwork-filesharing-22.12.0-gcc13.patch     | 24 ++++++++++++++++++++++
 .../kdenetwork-filesharing-22.12.0.ebuild          |  4 ++++
 2 files changed, 28 insertions(+)

diff --git 
a/kde-apps/kdenetwork-filesharing/files/kdenetwork-filesharing-22.12.0-gcc13.patch
 
b/kde-apps/kdenetwork-filesharing/files/kdenetwork-filesharing-22.12.0-gcc13.patch
new file mode 100644
index 000000000000..309108854e24
--- /dev/null
+++ 
b/kde-apps/kdenetwork-filesharing/files/kdenetwork-filesharing-22.12.0-gcc13.patch
@@ -0,0 +1,24 @@
+https://invent.kde.org/network/kdenetwork-filesharing/-/commit/5c2d4ff3092155d24164c24a2a9a610325ff7174
+
+From: Sam James <[email protected]>
+Date: Sun, 11 Dec 2022 13:23:56 +0000
+Subject: [PATCH] samba: Fix build with GCC 13 (add missing <cstdint> include)
+
+GCC 13 (as usual for new compiler releases) shuffles around some
+internal includes and so <cstdint> is no longer transitively included.
+
+Explicitly include <cstdint> for uint32_t.
+
+Bug: https://bugs.gentoo.org/885315
+--- a/samba/aclproperties/debug.h
++++ b/samba/aclproperties/debug.h
+@@ -3,6 +3,7 @@
+ 
+ #pragma once
+ 
++#include <cstdint>
+ #include <string>
+ 
+ struct ACE;
+-- 
+GitLab

diff --git 
a/kde-apps/kdenetwork-filesharing/kdenetwork-filesharing-22.12.0.ebuild 
b/kde-apps/kdenetwork-filesharing/kdenetwork-filesharing-22.12.0.ebuild
index 4ef9907b39d7..64e0b56b8172 100644
--- a/kde-apps/kdenetwork-filesharing/kdenetwork-filesharing-22.12.0.ebuild
+++ b/kde-apps/kdenetwork-filesharing/kdenetwork-filesharing-22.12.0.ebuild
@@ -31,6 +31,10 @@ RDEPEND="${DEPEND}
        net-fs/samba
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-22.12.0-gcc13.patch
+)
+
 src_configure() {
        local mycmakeargs=(
                -DCMAKE_DISABLE_FIND_PACKAGE_PackageKitQt5=ON

Reply via email to