commit:     472fd64b5f966e862c8b97add0330753b3668703
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 24 13:29:35 2022 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sat Sep 24 13:31:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=472fd64b

app-i18n/uim: fix build with Clang 16+

Closes: https://bugs.gentoo.org/870520
Closes: https://bugs.gentoo.org/870637
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 app-i18n/uim/files/uim-gentoo.patch | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/app-i18n/uim/files/uim-gentoo.patch 
b/app-i18n/uim/files/uim-gentoo.patch
index 9b7f1111b17a..649288932259 100644
--- a/app-i18n/uim/files/uim-gentoo.patch
+++ b/app-i18n/uim/files/uim-gentoo.patch
@@ -1,6 +1,6 @@
 --- a/configure.ac
 +++ b/configure.ac
-@@ -38,6 +38,7 @@
+@@ -56,6 +56,7 @@
  AC_PATH_PROGS(SED, sed gsed)
  AX_PATH_QMAKE4
  AX_PATH_QMAKE5
@@ -8,7 +8,19 @@
  
  AM_MAINTAINER_MODE
  
-@@ -1618,7 +1619,7 @@
+@@ -575,6 +576,11 @@
+ AC_CHECK_FUNCS([waitpid])
+ AC_CHECK_FUNCS([daemon])
+ 
++AC_CHECK_DECL([va_copy],
++              [AC_DEFINE(HAVE_VA_COPY, 1, [Define to 1 if you have the 
`va_copy' macro.])],
++              [AC_CHECK_DECL([__va_copy],
++                             [AC_DEFINE(HAVE___VA_COPY, 1, [Define to 1 if 
you have the `__va_copy' macro.])])])
++
+ # IRIX has a const char return value for gai_strerror()
+ AC_CHECK_FUNCS(gai_strerror,[
+         AC_DEFINE(HAVE_GAI_STRERROR)
+@@ -1637,7 +1643,7 @@
    fi
    AX_LANG_WNOERROR  # end AC_LANG_WERROR
  
@@ -17,7 +29,7 @@
  else
    CFLAGS="$CFLAGS -DNDEBUG"
    CXXFLAGS="$CXXFLAGS -DNDEBUG"
-@@ -1629,7 +1630,7 @@
+@@ -1648,7 +1654,7 @@
    AX_CFLAGS_GCC_OPTION([-Wno-unused-function], [UIM_SCM_CFLAGS])
    AX_LANG_WNOERROR  # end AC_LANG_WERROR
  

Reply via email to