diff options
author | Sam James <sam@gentoo.org> | 2022-09-02 06:51:53 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-09-02 06:51:53 +0100 |
commit | 910d65baea8f0f40b9ffbd1a6e07307ba2fd85bc (patch) | |
tree | 1afbd1f146d220c286a62babaf01b158901f0f34 /app-backup | |
parent | app-crypt/mit-krb5: fix build w/ musl and gcc-12 (diff) | |
download | gentoo-910d65baea8f0f40b9ffbd1a6e07307ba2fd85bc.tar.gz gentoo-910d65baea8f0f40b9ffbd1a6e07307ba2fd85bc.tar.bz2 gentoo-910d65baea8f0f40b9ffbd1a6e07307ba2fd85bc.zip |
app-backup/snapper: fix build w/ musl and gcc-12
Closes: https://bugs.gentoo.org/862094
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-backup')
-rw-r--r-- | app-backup/snapper/files/snapper-0.10.2-gcc12-time.patch | 27 | ||||
-rw-r--r-- | app-backup/snapper/snapper-0.10.2.ebuild | 1 |
2 files changed, 28 insertions, 0 deletions
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() { |