[packages/kf5-kwayland] - don't redefine system types
qboosh
qboosh at pld-linux.org
Sun Oct 11 12:05:58 CEST 2026
commit 4f1cafcc4abfe94daddc0dde2527f716bb86cdf0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Oct 11 12:06:32 2026 +0200
- don't redefine system types
kf5-kwayland.spec | 2 ++
kwayland-types.patch | 15 +++++++++++++++
2 files changed, 17 insertions(+)
---
diff --git a/kf5-kwayland.spec b/kf5-kwayland.spec
index 905dd25..f0d977b 100644
--- a/kf5-kwayland.spec
+++ b/kf5-kwayland.spec
@@ -15,6 +15,7 @@ License: LGPL v2.1 or KDE-accepted LGPL v3+
Group: X11/Libraries
Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
# Source0-md5: 8d49e27dcc49f85023633d4d221415a4
+Patch0: kwayland-types.patch
URL: https://kde.org/
BuildRequires: EGL-devel
BuildRequires: Qt5Concurrent-devel >= %{qt_ver}
@@ -63,6 +64,7 @@ Pliki nagłówkowe dla programistów używających %{kfname}.
%prep
%setup -q -n %{kfname}-%{version}
+%patch -P0 -p1
%build
%cmake -B build \
diff --git a/kwayland-types.patch b/kwayland-types.patch
new file mode 100644
index 0000000..9e41369
--- /dev/null
+++ b/kwayland-types.patch
@@ -0,0 +1,15 @@
+--- kwayland-5.116.0/src/server/drm_fourcc.h.orig 2024-05-04 13:42:41.000000000 +0200
++++ kwayland-5.116.0/src/server/drm_fourcc.h 2026-10-11 11:50:22.972609468 +0200
+@@ -12,8 +12,12 @@
+ //#include "drm.h"
+
+ // These typedefs are copied from drm.h
++#if defined(__linux__)
++#include <linux/types.h>
++#else
+ typedef uint32_t __u32;
+ typedef uint64_t __u64;
++#endif
+
+ #if defined(__cplusplus)
+ extern "C" {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kf5-kwayland.git/commitdiff/4f1cafcc4abfe94daddc0dde2527f716bb86cdf0
More information about the pld-cvs-commit
mailing list