Fix build with GCC 13

This commit is contained in:
Yaakov Selkowitz 2023-01-24 15:01:59 -05:00
parent a7b34bb53f
commit 6763ed0496
2 changed files with 15 additions and 0 deletions

12
usbguard-gcc13.patch Normal file
View File

@ -0,0 +1,12 @@
diff --git a/src/Library/Base64.hpp b/src/Library/Base64.hpp
index 0947f21..aa76311 100644
--- a/src/Library/Base64.hpp
+++ b/src/Library/Base64.hpp
@@ -24,6 +24,7 @@
#include <string>
#include <cstddef>
+#include <cstdint>
namespace usbguard
{

View File

@ -43,6 +43,8 @@ BuildRequires: systemd
Patch1: usbguard-revert-catch.patch
Patch2: policykit-dbus-chat-selinux.patch
Patch3: usbguard-restore-support-access-control-names.patch
# https://github.com/USBGuard/usbguard/pull/582
Patch4: usbguard-gcc13.patch
%description
The USBGuard software framework helps to protect your computer against rogue USB
@ -108,6 +110,7 @@ daemon.
%patch1 -p1 -b .catch
%patch2 -p1 -b .policykit
%patch3 -p1 -b .access-contol-names
%patch4 -p1 -b .gcc13
# Remove bundled library sources before build
rm -rf src/ThirdParty/{Catch,PEGTL}