[gentoo-commits] repo/gentoo:master commit in: games-strategy/wesnoth/, games-strategy/wesnoth/files/

2024-05-27 Thread Sam James
commit: 768f7595d58ed27e21fea815a52c5ca20c21410a
Author: Sam James  gentoo  org>
AuthorDate: Tue May 28 01:41:33 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue May 28 01:41:33 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=768f7595

games-strategy/wesnoth: fix build w/ boost-1.85

Closes: https://bugs.gentoo.org/932255
Thanks-to: Marcin Deranek  slonko.net>
Signed-off-by: Sam James  gentoo.org>

 games-strategy/wesnoth/files/wesnoth-1.18.0-boost-1.85.patch | 12 
 games-strategy/wesnoth/wesnoth-1.18.0.ebuild |  4 
 2 files changed, 16 insertions(+)

diff --git a/games-strategy/wesnoth/files/wesnoth-1.18.0-boost-1.85.patch 
b/games-strategy/wesnoth/files/wesnoth-1.18.0-boost-1.85.patch
new file mode 100644
index ..412a4cf8e39d
--- /dev/null
+++ b/games-strategy/wesnoth/files/wesnoth-1.18.0-boost-1.85.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/932255
+--- a/src/filesystem.cpp
 b/src/filesystem.cpp
+@@ -30,6 +30,7 @@
+ #include "serialization/unicode.hpp"
+ #include "utils/general.hpp"
+ 
++#include 
+ #include 
+ #include 
+ #include 
+

diff --git a/games-strategy/wesnoth/wesnoth-1.18.0.ebuild 
b/games-strategy/wesnoth/wesnoth-1.18.0.ebuild
index ba33c9b827a8..1843a5985958 100644
--- a/games-strategy/wesnoth/wesnoth-1.18.0.ebuild
+++ b/games-strategy/wesnoth/wesnoth-1.18.0.ebuild
@@ -43,6 +43,10 @@ BDEPEND="
virtual/pkgconfig
 "
 
+PATCHES=(
+   "${FILESDIR}"/wesnoth-1.18.0-boost-1.85.patch
+)
+
 src_prepare() {
cmake_src_prepare
 



[gentoo-commits] repo/gentoo:master commit in: games-strategy/wesnoth/, games-strategy/wesnoth/files/

2023-08-24 Thread Pacho Ramos
commit: 71e03c5df298be999546115390312bb25314bef0
Author: Pacho Ramos  gentoo  org>
AuthorDate: Thu Aug 24 14:32:23 2023 +
Commit: Pacho Ramos  gentoo  org>
CommitDate: Thu Aug 24 14:35:07 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71e03c5d

games-strategy/wesnoth: Apply patch fixing boost-1.83 compat

Thanks-to: solpeth
Closes: https://github.com/gentoo/gentoo/pull/32415
Closes: https://bugs.gentoo.org/912385
Closes: https://bugs.gentoo.org/912968
Signed-off-by: Pacho Ramos  gentoo.org>

 .../wesnoth/files/wesnoth-1.16.10-boost-1.83.patch | 26 ++
 games-strategy/wesnoth/wesnoth-1.16.10.ebuild  |  4 
 2 files changed, 30 insertions(+)

diff --git a/games-strategy/wesnoth/files/wesnoth-1.16.10-boost-1.83.patch 
b/games-strategy/wesnoth/files/wesnoth-1.16.10-boost-1.83.patch
new file mode 100644
index ..2c9e55db0472
--- /dev/null
+++ b/games-strategy/wesnoth/files/wesnoth-1.16.10-boost-1.83.patch
@@ -0,0 +1,26 @@
+From 136e651d69fc91fa7a4154f8a4a7e977cc46eca4 Mon Sep 17 00:00:00 2001
+From: Pentarctagon 
+Date: Thu, 17 Aug 2023 23:19:21 -0500
+Subject: [PATCH] Compile fix for boost 1.83.
+
+Fixes #7849
+---
+ src/gettext.cpp | 4 
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/gettext.cpp b/src/gettext.cpp
+index 9888dede35ad..fa9b17ba85b2 100644
+--- a/src/gettext.cpp
 b/src/gettext.cpp
+@@ -169,7 +169,11 @@ namespace
+   return msg;
+   }
+ 
++#if BOOST_VERSION < 108300
+   const char* get(int domain_id, const char* ctx, const char* 
sid, int n) const override
++#else
++  const char* get(int domain_id, const char* ctx, const char* 
sid, bl::count_type n) const override
++#endif
+   {
+   auto& base = get_base();
+   const char* msg = base.get(domain_id, ctx, sid, n);

diff --git a/games-strategy/wesnoth/wesnoth-1.16.10.ebuild 
b/games-strategy/wesnoth/wesnoth-1.16.10.ebuild
index d3d826ea899c..cb9bc76bf65d 100644
--- a/games-strategy/wesnoth/wesnoth-1.16.10.ebuild
+++ b/games-strategy/wesnoth/wesnoth-1.16.10.ebuild
@@ -43,6 +43,10 @@ BDEPEND="
virtual/pkgconfig
 "
 
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.16.10-boost-1.83.patch #912385
+)
+
 src_prepare() {
cmake_src_prepare
 



[gentoo-commits] repo/gentoo:master commit in: games-strategy/wesnoth/, games-strategy/wesnoth/files/

2023-03-09 Thread Ionen Wolkens
commit: 1529adff6983c98bc94b04f74c0cc0edbe8535ca
Author: Ionen Wolkens  gentoo  org>
AuthorDate: Thu Mar  9 17:52:55 2023 +
Commit: Ionen Wolkens  gentoo  org>
CommitDate: Thu Mar  9 20:12:42 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1529adff

games-strategy/wesnoth: drop 1.16.6

Signed-off-by: Ionen Wolkens  gentoo.org>

 games-strategy/wesnoth/Manifest|   1 -
 .../wesnoth-1.16.6-fix-build-with-boost-1.81.patch |  49 --
 games-strategy/wesnoth/wesnoth-1.16.6.ebuild   | 104 -
 3 files changed, 154 deletions(-)

diff --git a/games-strategy/wesnoth/Manifest b/games-strategy/wesnoth/Manifest
index 9cf9ac6ad743..899e199d0e98 100644
--- a/games-strategy/wesnoth/Manifest
+++ b/games-strategy/wesnoth/Manifest
@@ -1,3 +1,2 @@
-DIST wesnoth-1.16.6.tar.gz 518250360 BLAKE2B 
3fc5f5827beacc309a42d1d135eadefbace57866397eed4e3c5618ba6372ae31fc0350b2180c1323872ae59789ca67cd1b4a973c2257c7fac59508af93e0b758
 SHA512 
fcf9e50ce065f7c8d2b940eec88de27f18c3adbb9c7ae238bf6821eef233a45c2bdc7a58d5cd2abc4f37bcab6e503aa72d46f623c882c711d9f06b2826340bf5
 DIST wesnoth-1.16.8.tar.gz 518468407 BLAKE2B 
9c224757e0d1727acc66a5421266fa6e050bb3727040b457379dd164097c88850f9b2d8b81422ff277548cb8cd51da70f5da63254c2c4ccedc3a45d1789c6037
 SHA512 
9e41e1c574c9744ba9818298d77df1503d7fc70ee24e4bf9d1f59ef17c2bc123f38f0aa21eddccce88cc28b62f2a2d12133ab25dd111655abf5b620f18457bf7
 DIST wesnoth-1.17.11.tar.bz2 421068195 BLAKE2B 
43106bb72c6b4a39b4995fb9804733e5420b636db08254e75e7698c58740b84a33c387194bf048247bddf1808f73d0d07b3816f18687390760fb5fab7c2d8449
 SHA512 
8208ae1c02d5e6a9fe50a2cf533d3b0b207151e5b877c98b003117641ae3c46ad31dbbe4bc46481f4f30382ae65b0183d7636452de5f6d42c8bd48d040f3dd5a

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
deleted file mode 100644
index 785a5440cbbf..
--- 
a/games-strategy/wesnoth/files/wesnoth-1.16.6-fix-build-with-boost-1.81.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-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
deleted file mode 100644
index f8edac88d9d7..
--- a/games-strategy/wesnoth/wesnoth-1.16.6.ebuild
+++ /dev/null
@@ -1,104 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake flag-o-matic xdg
-
-DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game"
-HOMEPAGE="http://www.wesnoth.org
-   https://github.com/wesnoth/wesnoth";
-SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-# uneven minor versions are development versions
-if [[

[gentoo-commits] repo/gentoo:master commit in: games-strategy/wesnoth/, games-strategy/wesnoth/files/

2023-01-26 Thread Sam James
commit: ad08b108753d55f6075c0a5cf6bd506f7b34ab4c
Author: Sam James  gentoo  org>
AuthorDate: Fri Jan 27 04:55:27 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan 27 05:23:34 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad08b108

games-strategy/wesnoth: add 1.16.8

Signed-off-by: Sam James  gentoo.org>

 games-strategy/wesnoth/Manifest|   1 +
 .../wesnoth/files/wesnoth-1.16.8-gcc-13.patch  |  32 +++
 games-strategy/wesnoth/wesnoth-1.16.8.ebuild   | 106 +
 3 files changed, 139 insertions(+)

diff --git a/games-strategy/wesnoth/Manifest b/games-strategy/wesnoth/Manifest
index a621190038af..9cf9ac6ad743 100644
--- a/games-strategy/wesnoth/Manifest
+++ b/games-strategy/wesnoth/Manifest
@@ -1,2 +1,3 @@
 DIST wesnoth-1.16.6.tar.gz 518250360 BLAKE2B 
3fc5f5827beacc309a42d1d135eadefbace57866397eed4e3c5618ba6372ae31fc0350b2180c1323872ae59789ca67cd1b4a973c2257c7fac59508af93e0b758
 SHA512 
fcf9e50ce065f7c8d2b940eec88de27f18c3adbb9c7ae238bf6821eef233a45c2bdc7a58d5cd2abc4f37bcab6e503aa72d46f623c882c711d9f06b2826340bf5
+DIST wesnoth-1.16.8.tar.gz 518468407 BLAKE2B 
9c224757e0d1727acc66a5421266fa6e050bb3727040b457379dd164097c88850f9b2d8b81422ff277548cb8cd51da70f5da63254c2c4ccedc3a45d1789c6037
 SHA512 
9e41e1c574c9744ba9818298d77df1503d7fc70ee24e4bf9d1f59ef17c2bc123f38f0aa21eddccce88cc28b62f2a2d12133ab25dd111655abf5b620f18457bf7
 DIST wesnoth-1.17.11.tar.bz2 421068195 BLAKE2B 
43106bb72c6b4a39b4995fb9804733e5420b636db08254e75e7698c58740b84a33c387194bf048247bddf1808f73d0d07b3816f18687390760fb5fab7c2d8449
 SHA512 
8208ae1c02d5e6a9fe50a2cf533d3b0b207151e5b877c98b003117641ae3c46ad31dbbe4bc46481f4f30382ae65b0183d7636452de5f6d42c8bd48d040f3dd5a

diff --git a/games-strategy/wesnoth/files/wesnoth-1.16.8-gcc-13.patch 
b/games-strategy/wesnoth/files/wesnoth-1.16.8-gcc-13.patch
new file mode 100644
index ..f2d79ba6ad06
--- /dev/null
+++ b/games-strategy/wesnoth/files/wesnoth-1.16.8-gcc-13.patch
@@ -0,0 +1,32 @@
+https://github.com/wesnoth/wesnoth/commit/5fa07ea15c1736f74d89786d5ae449ed0f91c8a8
+
+From 5fa07ea15c1736f74d89786d5ae449ed0f91c8a8 Mon Sep 17 00:00:00 2001
+From: Martin Liska 
+Date: Mon, 23 May 2022 13:44:39 +0200
+Subject: [PATCH] Fix building with GCC 13.
+
+Fixes the following issue:
+base64.hpp:23:49: error: 'uint8_t' was not declared in this scope
+
+and:
+deprecation.hpp:20:22: error: found ':' in nested-name-specifier, expected '::'
+--- a/src/deprecation.hpp
 b/src/deprecation.hpp
+@@ -14,6 +14,7 @@
+ 
+ #pragma once
+ 
++#include 
+ #include 
+ 
+ /** See https://wiki.wesnoth.org/CompatibilityStandards for more info. */
+--- a/src/serialization/base64.hpp
 b/src/serialization/base64.hpp
+@@ -15,6 +15,7 @@
+ 
+ #pragma once
+ 
++#include 
+ #include 
+ #include 
+ 

diff --git a/games-strategy/wesnoth/wesnoth-1.16.8.ebuild 
b/games-strategy/wesnoth/wesnoth-1.16.8.ebuild
new file mode 100644
index ..7a0223c3d681
--- /dev/null
+++ b/games-strategy/wesnoth/wesnoth-1.16.8.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic xdg
+
+DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game"
+HOMEPAGE="http://www.wesnoth.org
+   https://github.com/wesnoth/wesnoth";
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+# uneven minor versions are development versions
+if [[ $(( $(ver_cut 2) % 2 )) == 0 ]] ; then
+   KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+fi
+IUSE="dbus dedicated doc nls server"
+
+RDEPEND="
+   acct-group/wesnoth
+   acct-user/wesnoth
+   dev-libs/boost:=[bzip2,context,icu,nls]
+   >=media-libs/libsdl2-2.0.4:0[joystick,video,X]
+   !dedicated? (
+   dev-libs/glib:2
+   dev-libs/openssl:0=
+   >=media-libs/fontconfig-2.4.1
+   >=media-libs/sdl2-image-2.0.0[jpeg,png]
+   >=media-libs/sdl2-mixer-2.0.0[vorbis]
+   media-libs/libvorbis
+   >=x11-libs/pango-1.22.0
+   >=x11-libs/cairo-1.10.0
+   sys-libs/readline:0=
+   dbus? ( sys-apps/dbus )
+   )"
+DEPEND="${RDEPEND}
+   x11-libs/libX11
+"
+BDEPEND="
+   sys-devel/gettext
+   virtual/pkgconfig
+"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.16.8-gcc-13.patch
+)
+
+src_prepare() {
+   cmake_src_prepare
+
+   if ! use doc ; then
+   sed -i \
+   -e '/manual/d' \
+   doc/CMakeLists.txt || die
+   fi
+
+   # respect LINGUAS (bug #483316)
+   if [[ ${LINGUAS+set} ]] ; then
+   local lang langs=()
+   for lang in $(cat po/LINGUAS) ; do
+   has ${lang} ${LINGUAS} && langs+=( ${lang} )
+   done
+   echo "${langs[@]}" > po/LINGUAS || die
+   fi
+}
+
+sr

[gentoo-commits] repo/gentoo:master commit in: games-strategy/wesnoth/, games-strategy/wesnoth/files/

2022-12-18 Thread Sam James
commit: ae18d0e0a580c608851e25cc1515d8bc13fb1e98
Author: Christophe Lermytte  lermytte  be>
AuthorDate: Sun Dec 18 21:58:31 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Dec 19 02:59:56 2022 +
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 ..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
 



[gentoo-commits] repo/gentoo:master commit in: games-strategy/wesnoth/, games-strategy/wesnoth/files/

2020-11-15 Thread David Seifert
commit: 79d173ed34da3b7669cbc945767a57df1f7d50e2
Author: Alexey Sokolov  google  com>
AuthorDate: Sun Nov 15 20:02:56 2020 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Nov 15 20:02:56 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79d173ed

games-strategy/wesnoth: fix build without native-symlinks

Closes: https://bugs.gentoo.org/732096
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Alexey Sokolov  asokolov.org>
Signed-off-by: David Seifert  gentoo.org>

 games-strategy/wesnoth/files/wesnoth-1.14.14-ar.patch | 14 ++
 games-strategy/wesnoth/wesnoth-1.14.14.ebuild |  4 
 games-strategy/wesnoth/wesnoth-1.15.4.ebuild  |  4 
 3 files changed, 22 insertions(+)

diff --git a/games-strategy/wesnoth/files/wesnoth-1.14.14-ar.patch 
b/games-strategy/wesnoth/files/wesnoth-1.14.14-ar.patch
new file mode 100644
index 000..4a7c8cf41e7
--- /dev/null
+++ b/games-strategy/wesnoth/files/wesnoth-1.14.14-ar.patch
@@ -0,0 +1,14 @@
+Leave default AR as is, https://bugs.gentoo.org/732096
+
+diff -r 419bf3de54e5 CMakeLists.txt
+--- a/CMakeLists.txt   Sat Oct 24 19:50:25 2020 +
 b/CMakeLists.txt   Sat Oct 24 19:50:53 2020 +
+@@ -390,8 +390,6 @@
+   MESSAGE("Using ar, ranlib, and default linker")
+   find_program(NON_LTO_AR NAMES ar)
+   find_program(NON_LTO_RANLIB NAMES ranlib)
+-  set(CMAKE_AR "${NON_LTO_AR}" CACHE STRING "Does not support LTO" FORCE)
+-  set(CMAKE_RANLIB "${NON_LTO_RANLIB}" CACHE STRING "Does not support 
LTO" FORCE)
+ endif()
+ MARK_AS_ADVANCED(LTO_AR LTO_RANLIB NON_LTO_AR NON_LTO_RANLIB)
+ 

diff --git a/games-strategy/wesnoth/wesnoth-1.14.14.ebuild 
b/games-strategy/wesnoth/wesnoth-1.14.14.ebuild
index 407e3840468..e259a887936 100644
--- a/games-strategy/wesnoth/wesnoth-1.14.14.ebuild
+++ b/games-strategy/wesnoth/wesnoth-1.14.14.ebuild
@@ -46,6 +46,10 @@ BDEPEND="
virtual/pkgconfig
 "
 
+PATCHES=(
+   "${FILESDIR}/wesnoth-1.14.14-ar.patch"
+)
+
 src_prepare() {
cmake_src_prepare
 

diff --git a/games-strategy/wesnoth/wesnoth-1.15.4.ebuild 
b/games-strategy/wesnoth/wesnoth-1.15.4.ebuild
index 407e3840468..e259a887936 100644
--- a/games-strategy/wesnoth/wesnoth-1.15.4.ebuild
+++ b/games-strategy/wesnoth/wesnoth-1.15.4.ebuild
@@ -46,6 +46,10 @@ BDEPEND="
virtual/pkgconfig
 "
 
+PATCHES=(
+   "${FILESDIR}/wesnoth-1.14.14-ar.patch"
+)
+
 src_prepare() {
cmake_src_prepare