diff --git a/games-emulation/openmsx/files/openmsx-20.0-template.patch b/games-emulation/openmsx/files/openmsx-20.0-template.patch new file mode 100644 index 0000000000000..f22787080c01b --- /dev/null +++ b/games-emulation/openmsx/files/openmsx-20.0-template.patch @@ -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 + { + return x.it - y.it; + } + diff --git a/games-emulation/openmsx/openmsx-20.0-r2.ebuild b/games-emulation/openmsx/openmsx-20.0-r2.ebuild index f254bb8574f93..80a9d1cc4f530 100644 --- a/games-emulation/openmsx/openmsx-20.0-r2.ebuild +++ b/games-emulation/openmsx/openmsx-20.0-r2.ebuild @@ -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