From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/wesnoth/, games-strategy/wesnoth/files/
Date: Mon, 19 Dec 2022 03:01:40 +0000 (UTC) [thread overview]
Message-ID: <1671418796.ae18d0e0a580c608851e25cc1515d8bc13fb1e98.sam@gentoo> (raw)
commit: ae18d0e0a580c608851e25cc1515d8bc13fb1e98
Author: Christophe Lermytte <gentoo <AT> lermytte <DOT> be>
AuthorDate: Sun Dec 18 21:58:31 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec 19 02:59:56 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae18d0e0
games-strategy/wesnoth: fix build with boost-1.81
Signed-off-by: Christophe Lermytte <gentoo <AT> lermytte.be>
Closes: https://bugs.gentoo.org/886575
Closes: https://github.com/gentoo/gentoo/pull/28708
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../wesnoth-1.16.6-fix-build-with-boost-1.81.patch | 49 ++++++++++++++++++++++
games-strategy/wesnoth/wesnoth-1.16.6.ebuild | 2 +
2 files changed, 51 insertions(+)
diff --git a/games-strategy/wesnoth/files/wesnoth-1.16.6-fix-build-with-boost-1.81.patch b/games-strategy/wesnoth/files/wesnoth-1.16.6-fix-build-with-boost-1.81.patch
new file mode 100644
index 000000000000..785a5440cbbf
--- /dev/null
+++ b/games-strategy/wesnoth/files/wesnoth-1.16.6-fix-build-with-boost-1.81.patch
@@ -0,0 +1,49 @@
+https://bugs.gentoo.org/886575
+https://github.com/wesnoth/wesnoth/issues/7215
+
+From d71e90ee50a89673cf9b6748bcb2975071d15445 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
+ <congdanhqx@gmail.com>
+Date: Mon, 28 Nov 2022 23:21:38 +0700
+Subject: [PATCH] gettext: fix build with Boost.Locale 1.81
+
+See https://github.com/boostorg/locale/pull/128/
+
+(cherry picked from commit fd96415bdf0a2e3a05e1a587a1c3853847e2c2bc)
+--- a/src/gettext.cpp
++++ b/src/gettext.cpp
+@@ -26,6 +26,7 @@
+ #include <mutex>
+ #include <boost/locale.hpp>
+ #include <set>
++#include <type_traits>
+
+ #if defined(__GNUC__)
+ #pragma GCC diagnostic push
+@@ -224,8 +225,13 @@ namespace
+ }
+
+ generator_.use_ansi_encoding(false);
++#if BOOST_VERSION < 108100
+ generator_.categories(bl::message_facet | bl::information_facet | bl::collation_facet | bl::formatting_facet | bl::convert_facet);
+ generator_.characters(bl::char_facet);
++#else
++ generator_.categories(bl::category_t::message | bl::category_t::information | bl::category_t::collation | bl::category_t::formatting | bl::category_t::convert);
++ generator_.characters(bl::char_facet_t::char_f);
++#endif
+ // We cannot have current_locale_ be a non boost-generated locale since it might not supply
+ // the bl::info facet. As soon as we add message paths, update_locale_internal might fail,
+ // for example because of invalid .mo files. So make sure we call it at least once before adding paths/domains
+@@ -368,7 +374,12 @@ namespace
+ if(std::has_facet<bl::collator<char>>(current_locale_)) {
+ res << "has bl::collator<char> facet, ";
+ }
++#if BOOST_VERSION < 108100
+ res << "generator categories='" << generator_.categories() << "'";
++#else
++ res << "generator categories='" <<
++ static_cast<std::underlying_type<bl::category_t>::type>(generator_.categories()) << "'";
++#endif
+ return res.str();
+ }
+
diff --git a/games-strategy/wesnoth/wesnoth-1.16.6.ebuild b/games-strategy/wesnoth/wesnoth-1.16.6.ebuild
index 1ee6998e389d..ebb79a331120 100644
--- a/games-strategy/wesnoth/wesnoth-1.16.6.ebuild
+++ b/games-strategy/wesnoth/wesnoth-1.16.6.ebuild
@@ -43,6 +43,8 @@ BDEPEND="
virtual/pkgconfig
"
+PATCHES=( "${FILESDIR}/wesnoth-1.16.6-fix-build-with-boost-1.81.patch" )
+
src_prepare() {
cmake_src_prepare
next reply other threads:[~2022-12-19 3:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-19 3:01 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-28 1:45 [gentoo-commits] repo/gentoo:master commit in: games-strategy/wesnoth/, games-strategy/wesnoth/files/ Sam James
2023-08-24 14:35 Pacho Ramos
2023-03-09 20:13 Ionen Wolkens
2023-01-27 5:26 Sam James
2020-11-15 20:03 David Seifert
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=1671418796.ae18d0e0a580c608851e25cc1515d8bc13fb1e98.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