From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/snapper/, app-backup/snapper/files/
Date: Fri, 2 Sep 2022 05:52:09 +0000 (UTC) [thread overview]
Message-ID: <1662097913.910d65baea8f0f40b9ffbd1a6e07307ba2fd85bc.sam@gentoo> (raw)
commit: 910d65baea8f0f40b9ffbd1a6e07307ba2fd85bc
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 2 05:51:53 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep 2 05:51:53 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=910d65ba
app-backup/snapper: fix build w/ musl and gcc-12
Closes: https://bugs.gentoo.org/862094
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../snapper/files/snapper-0.10.2-gcc12-time.patch | 27 ++++++++++++++++++++++
app-backup/snapper/snapper-0.10.2.ebuild | 1 +
2 files changed, 28 insertions(+)
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
new file mode 100644
index 000000000000..672e6a1566a1
--- /dev/null
+++ b/app-backup/snapper/files/snapper-0.10.2-gcc12-time.patch
@@ -0,0 +1,27 @@
+https://github.com/openSUSE/snapper/pull/743
+
+From 3415229fd29fa3e5247e30ba1ac632e91e603c9f Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Fri, 2 Sep 2022 06:48:56 +0100
+Subject: [PATCH] Fix build with GCC 12 (and musl)
+
+```
+DBusMessage.h:239:34: error: 'time_t' has not been declared
+ 239 | Hihi& operator>>(Hihi& hihi, time_t& data);
+```
+
+Include <ctime> to grab time_t.
+
+Bug: https://bugs.gentoo.org/862094
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/dbus/DBusMessage.h
++++ b/dbus/DBusMessage.h
+@@ -27,6 +27,7 @@
+
+ #include <dbus/dbus.h>
+
++#include <ctime>
+ #include <string>
+ #include <vector>
+ #include <list>
+
diff --git a/app-backup/snapper/snapper-0.10.2.ebuild b/app-backup/snapper/snapper-0.10.2.ebuild
index f8c9f634d9d5..d10d4e399808 100644
--- a/app-backup/snapper/snapper-0.10.2.ebuild
+++ b/app-backup/snapper/snapper-0.10.2.ebuild
@@ -38,6 +38,7 @@ DEPEND="${RDEPEND}
PATCHES=(
"${FILESDIR}"/cron-confd.patch
"${FILESDIR}"/${PN}-0.10.1-testsuite.patch
+ "${FILESDIR}"/${PN}-0.10.2-gcc12-time.patch
)
src_prepare() {
next reply other threads:[~2022-09-02 5:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-02 5:52 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-28 8:24 [gentoo-commits] repo/gentoo:master commit in: app-backup/snapper/, app-backup/snapper/files/ Yixun Lan
2023-12-05 12:11 Yixun Lan
2022-12-18 5:27 Sam James
2022-04-26 8:46 Yixun Lan
2022-04-26 8:46 Yixun Lan
2022-04-21 3:29 Yixun Lan
2021-12-07 8:37 Yixun Lan
2021-06-07 0:58 Yixun Lan
2021-06-06 6:35 Yixun Lan
2021-01-14 8:20 Yixun Lan
2019-10-16 3:42 Yixun Lan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1662097913.910d65baea8f0f40b9ffbd1a6e07307ba2fd85bc.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox