Compare commits

...

4 Commits

2 changed files with 75 additions and 6 deletions

View File

@ -0,0 +1,55 @@
From 5e3243b163aa5d50083b4036c21f84c1204f2023 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 26 Jan 2023 23:25:05 -0800
Subject: [PATCH] include missing <cstdint>
gcc 13 moved some includes around and as a result <cstdint> is no longer transitively included [1]. Explicitly include it for uint{32,64}_t.
[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
include/wayland-client.hpp | 1 +
scanner/scanner.cpp | 3 +++
2 files changed, 4 insertions(+)
diff --git a/include/wayland-client.hpp b/include/wayland-client.hpp
index a3f782b..4598a0e 100644
--- a/include/wayland-client.hpp
+++ b/include/wayland-client.hpp
@@ -29,6 +29,7 @@
/** \file */
#include <atomic>
+#include <cstdint>
#include <functional>
#include <memory>
#include <string>
diff --git a/scanner/scanner.cpp b/scanner/scanner.cpp
index bebd71e..c25746a 100644
--- a/scanner/scanner.cpp
+++ b/scanner/scanner.cpp
@@ -15,6 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <cstdint>
#include <fstream>
#include <iostream>
#include <list>
@@ -1106,6 +1107,7 @@ int main(int argc, char *argv[])
wayland_hpp << "#pragma once" << std::endl
<< std::endl
<< "#include <array>" << std::endl
+ << "#include <cstdint>" << std::endl
<< "#include <functional>" << std::endl
<< "#include <memory>" << std::endl
<< "#include <string>" << std::endl
@@ -1125,6 +1127,7 @@ int main(int argc, char *argv[])
wayland_server_hpp << "#pragma once" << std::endl
<< std::endl
<< "#include <array>" << std::endl
+ << "#include <cstdint>" << std::endl
<< "#include <functional>" << std::endl
<< "#include <memory>" << std::endl
<< "#include <string>" << std::endl

View File

@ -1,6 +1,6 @@
Name: waylandpp
Version: 0.2.8
Release: 1mamba
Version: 1.0.0
Release: 2mamba
Summary: C++ binding for Wayland
Group: System/Libraries
Vendor: openmamba
@ -8,6 +8,7 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/NilsBrause/waylandpp
Source: https://github.com/NilsBrause/waylandpp.git/%{version}/waylandpp-%{version}.tar.bz2
Patch0: waylandpp-1.0.0-gcc-13.2.0.patch
License: MIT, GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@ -45,6 +46,7 @@ This package contains libraries and header files for developing applications tha
%prep
%setup -q
%patch 0 -p1 -b .gcc-13.2.0
%build
%cmake -d build
@ -62,20 +64,20 @@ This package contains libraries and header files for developing applications tha
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libwayland-client++.so.*
%{_libdir}/libwayland-client-extra++.so.*
%{_libdir}/libwayland-client*.so.*
%{_libdir}/libwayland-cursor++.so.*
%{_libdir}/libwayland-egl++.so.*
%{_libdir}/libwayland-server*.so.*
%doc LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_bindir}/wayland-scanner++
%{_includedir}/wayland-*.hpp
%{_libdir}/libwayland-client++.so
%{_libdir}/libwayland-client-extra++.so
%{_libdir}/libwayland-client*.so
%{_libdir}/libwayland-cursor++.so
%{_libdir}/libwayland-egl++.so
%{_libdir}/libwayland-server*.so
%dir %{_datadir}/doc/waylandpp
%dir %{_datadir}/doc/waylandpp/html
%{_datadir}/doc/waylandpp/html/*
@ -91,5 +93,17 @@ This package contains libraries and header files for developing applications tha
%doc README.md
%changelog
* Sun Aug 20 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0-2mamba
- added a patch to fix a missing include with gcc 13.2
* Sat Apr 30 2022 Automatic Build System <autodist@mambasoft.it> 1.0.0-1mamba
- automatic version update by autodist
* Fri Apr 15 2022 Automatic Build System <autodist@mambasoft.it> 0.2.10-1mamba
- automatic version update by autodist
* Mon Jan 31 2022 Automatic Build System <autodist@mambasoft.it> 0.2.9-1mamba
- automatic version update by autodist
* Tue May 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.8-1mamba
- package created using the webbuild interface