mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/efl: fix build error for gcc 15 and clang 19
patch from https://git.enlightenment.org/enlightenment/efl/issues/71 Closes: https://bugs.gentoo.org/938278 Signed-off-by: Z. Liu <zhixu.liu@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39692 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
@@ -132,6 +132,8 @@ BDEPEND="${PYTHON_DEPS}
|
||||
nls? ( sys-devel/gettext )
|
||||
wayland? ( dev-util/wayland-scanner )"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-1.27-eina_string_view.patch" )
|
||||
|
||||
pkg_setup() {
|
||||
# Deprecated, provided for backward-compatibility. Everything is moved to libefreet.so.
|
||||
QA_FLAGS_IGNORED="/usr/$(get_libdir)/libefreet_trash.so.${PV}
|
||||
|
||||
32
dev-libs/efl/files/efl-1.27-eina_string_view.patch
Normal file
32
dev-libs/efl/files/efl-1.27-eina_string_view.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
https://git.enlightenment.org/enlightenment/efl/issues/71
|
||||
|
||||
commit 6c3630ffda0884b86e6ffc9d00d7315ab67858e5
|
||||
Author: Ted Rodgers <ted.d.rodgers@gmail.com>
|
||||
Date: Wed Aug 21 10:56:13 2024 -0400
|
||||
|
||||
eina_string_view.hh change lenght to length
|
||||
|
||||
fixes #71
|
||||
|
||||
diff --git a/src/bindings/cxx/eina_cxx/eina_string_view.hh b/src/bindings/cxx/eina_cxx/eina_string_view.hh
|
||||
index 77798db70f..f0bbcb705d 100644
|
||||
--- a/src/bindings/cxx/eina_cxx/eina_string_view.hh
|
||||
+++ b/src/bindings/cxx/eina_cxx/eina_string_view.hh
|
||||
@@ -181,7 +181,7 @@ public:
|
||||
size_type rfind(basic_string_view<CharT, Traits> const& s) const
|
||||
{
|
||||
const_reverse_iterator iter = std::search(crbegin(), crend(), s.crbegin(), s.crend(), Traits::eq);
|
||||
- return iter == crend() ? npos : reverse_distance(crbegin(), iter) - s.lenght();
|
||||
+ return iter == crend() ? npos : reverse_distance(crbegin(), iter) - s.length();
|
||||
}
|
||||
|
||||
size_type rfind(basic_string_view<CharT, Traits> const& s, size_type pos) const
|
||||
@@ -189,7 +189,7 @@ public:
|
||||
if (pos >= _len)
|
||||
return npos;
|
||||
const_reverse_iterator iter = std::search(crbegin()+pos, crend(), s.crbegin(), s.crend(), Traits::eq);
|
||||
- return iter == crend() ? npos : reverse_distance(crbegin(), iter) - s.lenght();
|
||||
+ return iter == crend() ? npos : reverse_distance(crbegin(), iter) - s.length();
|
||||
}
|
||||
|
||||
size_type rfind(CharT c) const
|
||||
Reference in New Issue
Block a user