1 |
commit: 910d65baea8f0f40b9ffbd1a6e07307ba2fd85bc |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 2 05:51:53 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 05:51:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=910d65ba |
7 |
|
8 |
app-backup/snapper: fix build w/ musl and gcc-12 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/862094 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../snapper/files/snapper-0.10.2-gcc12-time.patch | 27 ++++++++++++++++++++++ |
14 |
app-backup/snapper/snapper-0.10.2.ebuild | 1 + |
15 |
2 files changed, 28 insertions(+) |
16 |
|
17 |
diff --git a/app-backup/snapper/files/snapper-0.10.2-gcc12-time.patch b/app-backup/snapper/files/snapper-0.10.2-gcc12-time.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..672e6a1566a1 |
20 |
--- /dev/null |
21 |
+++ b/app-backup/snapper/files/snapper-0.10.2-gcc12-time.patch |
22 |
@@ -0,0 +1,27 @@ |
23 |
+https://github.com/openSUSE/snapper/pull/743 |
24 |
+ |
25 |
+From 3415229fd29fa3e5247e30ba1ac632e91e603c9f Mon Sep 17 00:00:00 2001 |
26 |
+From: Sam James <sam@g.o> |
27 |
+Date: Fri, 2 Sep 2022 06:48:56 +0100 |
28 |
+Subject: [PATCH] Fix build with GCC 12 (and musl) |
29 |
+ |
30 |
+``` |
31 |
+DBusMessage.h:239:34: error: 'time_t' has not been declared |
32 |
+ 239 | Hihi& operator>>(Hihi& hihi, time_t& data); |
33 |
+``` |
34 |
+ |
35 |
+Include <ctime> to grab time_t. |
36 |
+ |
37 |
+Bug: https://bugs.gentoo.org/862094 |
38 |
+Signed-off-by: Sam James <sam@g.o> |
39 |
+--- a/dbus/DBusMessage.h |
40 |
++++ b/dbus/DBusMessage.h |
41 |
+@@ -27,6 +27,7 @@ |
42 |
+ |
43 |
+ #include <dbus/dbus.h> |
44 |
+ |
45 |
++#include <ctime> |
46 |
+ #include <string> |
47 |
+ #include <vector> |
48 |
+ #include <list> |
49 |
+ |
50 |
|
51 |
diff --git a/app-backup/snapper/snapper-0.10.2.ebuild b/app-backup/snapper/snapper-0.10.2.ebuild |
52 |
index f8c9f634d9d5..d10d4e399808 100644 |
53 |
--- a/app-backup/snapper/snapper-0.10.2.ebuild |
54 |
+++ b/app-backup/snapper/snapper-0.10.2.ebuild |
55 |
@@ -38,6 +38,7 @@ DEPEND="${RDEPEND} |
56 |
PATCHES=( |
57 |
"${FILESDIR}"/cron-confd.patch |
58 |
"${FILESDIR}"/${PN}-0.10.1-testsuite.patch |
59 |
+ "${FILESDIR}"/${PN}-0.10.2-gcc12-time.patch |
60 |
) |
61 |
|
62 |
src_prepare() { |