commit 49155fbf7fe93776379677d8553d5d971d6b68ec
Author: Jan Palus <[email protected]>
Date:   Wed Jul 5 11:58:56 2023 +0200

    fix build with gcc >= 13

 gcc13.patch  | 20 ++++++++++++++++++++
 snapper.spec |  2 ++
 2 files changed, 22 insertions(+)
---
diff --git a/snapper.spec b/snapper.spec
index 8a8a326..854433a 100644
--- a/snapper.spec
+++ b/snapper.spec
@@ -9,6 +9,7 @@ URL:            http://snapper.io
 Patch0:                remove-ext4-info-xml.patch
 Patch1:                json-c.patch
 Patch2:                systemd-install.patch
+Patch3:                gcc13.patch
 BuildRequires: acl-devel
 BuildRequires: autoconf
 BuildRequires: automake
@@ -68,6 +69,7 @@ A PAM module for calling snapper during user login and logout.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 # use libexecdir
 find -type f -exec sed -i -e "s|/usr/lib/snapper|%{_libexecdir}/%{name}|g" {} 
';'
diff --git a/gcc13.patch b/gcc13.patch
new file mode 100644
index 0000000..2417bd5
--- /dev/null
+++ b/gcc13.patch
@@ -0,0 +1,20 @@
+--- snapper-0.8.15/snapper/Snapper.h.orig      2023-07-05 11:48:11.280057383 
+0200
++++ snapper-0.8.15/snapper/Snapper.h   2023-07-05 11:49:21.270441224 +0200
+@@ -25,6 +25,7 @@
+ #define SNAPPER_SNAPPER_H
+ 
+ 
++#include <cstdint>
+ #include <vector>
+ #include <boost/noncopyable.hpp>
+ 
+--- snapper-0.8.15/snapper/Snapshot.h.orig     2023-07-05 11:48:11.233390460 
+0200
++++ snapper-0.8.15/snapper/Snapshot.h  2023-07-05 11:50:59.260978628 +0200
+@@ -25,6 +25,7 @@
+ #define SNAPPER_SNAPSHOT_H
+ 
+ 
++#include <cstdint>
+ #include <time.h>
+ #include <sys/types.h>
+ #include <string>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/snapper.git/commitdiff/37d525c32163670a712356bf0c679cb8ae453cf9

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to