public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-rpg/manaplus/files/, games-rpg/manaplus/
Date: Thu, 30 Jun 2022 21:32:40 +0000 (UTC)	[thread overview]
Message-ID: <1656624750.c4dc15f9ab3eeea684ffc0f4a322ae231bf730e1.sam@gentoo> (raw)

commit:     c4dc15f9ab3eeea684ffc0f4a322ae231bf730e1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 30 21:18:43 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 21:32:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4dc15f9

games-rpg/manaplus: fix build with GCC 12

Closes: https://bugs.gentoo.org/855212
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch | 13 +++++++++++++
 games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild              |  4 ++++
 2 files changed, 17 insertions(+)

diff --git a/games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch b/games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch
new file mode 100644
index 000000000000..5ded1f0fa9d5
--- /dev/null
+++ b/games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/855212
+--- a/src/resources/wallpaper.cpp
++++ b/src/resources/wallpaper.cpp
+@@ -38,9 +38,7 @@
+ #include <sys/time.h>
+ #endif  // WIN32
+ 
+-#ifdef __clang__
+ #include <ctime>
+-#endif  // __clang__
+ 
+ #include "debug.h"
+ 

diff --git a/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild b/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild
index 6c1d04cbb663..f481e1cd9b21 100644
--- a/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild
+++ b/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild
@@ -55,6 +55,10 @@ DEPEND="${RDEPEND}
 	virtual/pkgconfig
 	nls? ( sys-devel/gettext )"
 
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.9.3.23-gcc12-time.patch
+)
+
 src_prepare() {
 	default
 


             reply	other threads:[~2022-06-30 21:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-30 21:32 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-10-01 11:07 [gentoo-commits] repo/gentoo:master commit in: games-rpg/manaplus/files/, games-rpg/manaplus/ Lars Wendler

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=1656624750.c4dc15f9ab3eeea684ffc0f4a322ae231bf730e1.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