commit:     8a9dcaa64d991f4cdbd1a601750e904881e3868e
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  7 01:11:43 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Oct  7 01:11:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a9dcaa6

media-gfx/imv: adjust grapheme2 patch

Upon closer look, believe this is the right fix.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 media-gfx/imv/files/imv-4.3.1_p20211221-libgrapheme2.patch           | 5 ++---
 .../{imv-4.3.1_p20211221.ebuild => imv-4.3.1_p20211221-r1.ebuild}    | 0
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/media-gfx/imv/files/imv-4.3.1_p20211221-libgrapheme2.patch 
b/media-gfx/imv/files/imv-4.3.1_p20211221-libgrapheme2.patch
index ba02c27ef82e..cc467e9eb55d 100644
--- a/media-gfx/imv/files/imv-4.3.1_p20211221-libgrapheme2.patch
+++ b/media-gfx/imv/files/imv-4.3.1_p20211221-libgrapheme2.patch
@@ -1,13 +1,12 @@
-Changed with v2 and would become an error with clang16.
 --- a/src/console.c
 +++ b/src/console.c
 @@ -54,3 +54,3 @@
    if (buffer[position] != 0) {
 -    return position + grapheme_next_character_break(buffer + position, 
SIZE_MAX);
-+    return position + grapheme_next_character_break((uint_least32_t *)buffer 
+ position, SIZE_MAX);
++    return position + grapheme_next_character_break_utf8(buffer + position, 
SIZE_MAX);
    } else {
 @@ -87,3 +87,3 @@
    do {
 -    step = grapheme_next_character_break(buffer + result, SIZE_MAX);
-+    step = grapheme_next_character_break((uint_least32_t *)buffer + result, 
SIZE_MAX);
++    step = grapheme_next_character_break_utf8(buffer + result, SIZE_MAX);
      if (result + step >= position)

diff --git a/media-gfx/imv/imv-4.3.1_p20211221.ebuild 
b/media-gfx/imv/imv-4.3.1_p20211221-r1.ebuild
similarity index 100%
rename from media-gfx/imv/imv-4.3.1_p20211221.ebuild
rename to media-gfx/imv/imv-4.3.1_p20211221-r1.ebuild

Reply via email to