commit:     bb35511fb05bfb8445fef884f865393653049352
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 11 16:34:12 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Jan  3 15:36:32 2023 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=bb35511f

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

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

 .../kdenetwork-filesharing-22.12.0-gcc13.patch     | 24 ++++++++++++++++++++++
 .../kdenetwork-filesharing-22.12.1.ebuild          |  2 ++
 .../kdenetwork-filesharing-22.12.49.9999.ebuild    |  2 ++
 3 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 0000000000..309108854e
--- /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.1.ebuild 
b/kde-apps/kdenetwork-filesharing/kdenetwork-filesharing-22.12.1.ebuild
index 648bfec0fa..38f8638a56 100644
--- a/kde-apps/kdenetwork-filesharing/kdenetwork-filesharing-22.12.1.ebuild
+++ b/kde-apps/kdenetwork-filesharing/kdenetwork-filesharing-22.12.1.ebuild
@@ -31,6 +31,8 @@ RDEPEND="${DEPEND}
        net-fs/samba
 "
 
+PATCHES=( "${FILESDIR}"/${PN}-22.12.0-gcc13.patch ) # bug 885315, git master
+
 src_configure() {
        local mycmakeargs=(
                -DCMAKE_DISABLE_FIND_PACKAGE_PackageKitQt5=ON

diff --git 
a/kde-apps/kdenetwork-filesharing/kdenetwork-filesharing-22.12.49.9999.ebuild 
b/kde-apps/kdenetwork-filesharing/kdenetwork-filesharing-22.12.49.9999.ebuild
index 52c22345e6..ab345e0045 100644
--- 
a/kde-apps/kdenetwork-filesharing/kdenetwork-filesharing-22.12.49.9999.ebuild
+++ 
b/kde-apps/kdenetwork-filesharing/kdenetwork-filesharing-22.12.49.9999.ebuild
@@ -31,6 +31,8 @@ RDEPEND="${DEPEND}
        net-fs/samba
 "
 
+PATCHES=( "${FILESDIR}"/${PN}-22.12.0-gcc13.patch ) # bug 885315, git master
+
 src_configure() {
        local mycmakeargs=(
                -DCMAKE_DISABLE_FIND_PACKAGE_PackageKitQt5=ON

Reply via email to