games-emulation/openmsx: fix build w/ newer GCC

GCC backported a change which exposed broken templates in openmsx. It's
fixed properly upstream already but add a minimal fix from Debian for now.

Closes: https://bugs.gentoo.org/958161
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-06-22 16:59:42 +01:00
parent 69071f10bb
commit 239af76bbb
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,15 @@
https://bugs.gentoo.org/958161
https://sources.debian.org/patches/openmsx/20.0%2Bdfsg-1.2/c%2B%2B20-iterator.diff/
This is fixed properly upstream in >20.0 but this is a quick, minimal fix for now.
--- a/src/utils/view.hh
+++ b/src/utils/view.hh
@@ -206,6 +206,7 @@ public:
}
[[nodiscard]] constexpr friend difference_type operator-(const TransformIterator& x, const TransformIterator& y)
+ requires std::sized_sentinel_for<Iterator, Iterator>
{
return x.it - y.it;
}

View File

@ -33,6 +33,11 @@ BDEPEND="${PYTHON_DEPS}"
DOC_CONTENTS="If you want to if you want to emulate real MSX systems and not only the free C-BIOS machines, put the system ROMs in one of the following directories: ${EPREFIX}/usr/share/${PN}/systemroms or ~/.openMSX/share/systemroms"
PATCHES=(
# Drop this after 20.0
"${FILESDIR}"/${P}-template.patch
)
src_prepare() {
default
sed -i -e 's/-fsanitize=address//' build/flavour-unittest.mk || die