From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4CD34158020 for ; Mon, 19 Dec 2022 03:01:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4C08BE0B3B; Mon, 19 Dec 2022 03:01:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2A382E0828 for ; Mon, 19 Dec 2022 03:01:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0C9793416F9 for ; Mon, 19 Dec 2022 03:01:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 63AD2477 for ; Mon, 19 Dec 2022 03:01:40 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1671418796.ae18d0e0a580c608851e25cc1515d8bc13fb1e98.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/wesnoth/, games-strategy/wesnoth/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-strategy/wesnoth/files/wesnoth-1.16.6-fix-build-with-boost-1.81.patch games-strategy/wesnoth/wesnoth-1.16.6.ebuild X-VCS-Directories: games-strategy/wesnoth/files/ games-strategy/wesnoth/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ae18d0e0a580c608851e25cc1515d8bc13fb1e98 X-VCS-Branch: master Date: Mon, 19 Dec 2022 03:01:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6ebfc457-f15a-4cfc-a3c8-3583a2a6819e X-Archives-Hash: 460614728e50dab7b616116ff86bd84e commit: ae18d0e0a580c608851e25cc1515d8bc13fb1e98 Author: Christophe Lermytte lermytte be> AuthorDate: Sun Dec 18 21:58:31 2022 +0000 Commit: Sam James gentoo 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 lermytte.be> Closes: https://bugs.gentoo.org/886575 Closes: https://github.com/gentoo/gentoo/pull/28708 Signed-off-by: Sam James 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?= + +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 + #include + #include ++#include + + #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>(current_locale_)) { + res << "has bl::collator facet, "; + } ++#if BOOST_VERSION < 108100 + res << "generator categories='" << generator_.categories() << "'"; ++#else ++ res << "generator categories='" << ++ static_cast::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