From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1452758-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id B2100158020
	for <garchives@archives.gentoo.org>; Thu,  3 Nov 2022 01:52:11 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id ED5DBE0A5C;
	Thu,  3 Nov 2022 01:52:10 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id C8669E0A5C
	for <gentoo-commits@lists.gentoo.org>; Thu,  3 Nov 2022 01:52:10 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id A742E340E9C
	for <gentoo-commits@lists.gentoo.org>; Thu,  3 Nov 2022 01:52:09 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id DFC0555B
	for <gentoo-commits@lists.gentoo.org>; Thu,  3 Nov 2022 01:52:07 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1667440314.d172fe309bd90487b1f61a106efd2a8b68f10367.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/files/, sys-devel/autoconf/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-devel/autoconf/autoconf-2.13-r4.ebuild sys-devel/autoconf/autoconf-2.13-r5.ebuild sys-devel/autoconf/files/autoconf-2.13-Clang-16-fixes-for-various-tests.patch
X-VCS-Directories: sys-devel/autoconf/ sys-devel/autoconf/files/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: d172fe309bd90487b1f61a106efd2a8b68f10367
X-VCS-Branch: master
Date: Thu,  3 Nov 2022 01:52:07 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: d79de9e4-dde5-47c5-bdd6-cdf03f9d79e5
X-Archives-Hash: 9170d9b9da45c75aaa84f27387d71545

commit:     d172fe309bd90487b1f61a106efd2a8b68f10367
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  3 01:51:24 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov  3 01:51:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d172fe30

sys-devel/autoconf: more Clang 16 fixes for autoconf 2.13

Bug: https://bugs.gentoo.org/874366
See: c305a45884a8f01838d6e032f469d7f9423154e1
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...conf-2.13-r4.ebuild => autoconf-2.13-r5.ebuild} |  0
 ...onf-2.13-Clang-16-fixes-for-various-tests.patch | 88 +++++++++++++++++-----
 2 files changed, 71 insertions(+), 17 deletions(-)

diff --git a/sys-devel/autoconf/autoconf-2.13-r4.ebuild b/sys-devel/autoconf/autoconf-2.13-r5.ebuild
similarity index 100%
rename from sys-devel/autoconf/autoconf-2.13-r4.ebuild
rename to sys-devel/autoconf/autoconf-2.13-r5.ebuild

diff --git a/sys-devel/autoconf/files/autoconf-2.13-Clang-16-fixes-for-various-tests.patch b/sys-devel/autoconf/files/autoconf-2.13-Clang-16-fixes-for-various-tests.patch
index b9319f0a4b71..55eda96241ab 100644
--- a/sys-devel/autoconf/files/autoconf-2.13-Clang-16-fixes-for-various-tests.patch
+++ b/sys-devel/autoconf/files/autoconf-2.13-Clang-16-fixes-for-various-tests.patch
@@ -1,4 +1,4 @@
-From de47e22d9b4f5fd5f1c9b9de798218a46ef94b98 Mon Sep 17 00:00:00 2001
+From 42a47ba46cacb85dfcf6efdba372a3eb3995a844 Mon Sep 17 00:00:00 2001
 From: Sam James <sam@gentoo.org>
 Date: Thu, 3 Nov 2022 01:19:39 +0000
 Subject: [PATCH] Clang 16 fixes for various tests
@@ -8,6 +8,7 @@ issues in various built-in tests.
 
 Noticed when building XEmacs 21.4 (thanks to matsl for reporting).
 
+Bug: https://bugs.gentoo.org/874366
 Signed-off-by: Sam James <sam@gentoo.org>
 --- a/acgeneral.m4
 +++ b/acgeneral.m4
@@ -37,7 +38,16 @@ Signed-off-by: Sam James <sam@gentoo.org>
  #include <$ac_header_dirent>
  int closedir(...); int main(void) { exit(closedir(opendir(".")) != 0); }],
    ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, ac_cv_func_closedir_void=yes)])
-@@ -988,6 +990,7 @@ AC_DEFUN(AC_FUNC_CLOSEDIR_VOID,
+@@ -907,6 +909,8 @@ AC_CACHE_CHECK(type of array argument to getgroups, ac_cv_type_getgroups,
+ changequote(<<, >>)dnl
+ <<
+ /* Thanks to Mike Rendell for this test.  */
++#include <stdlib.h>
++#include <unistd.h>
+ #include <sys/types.h>
+ #define NGID 256
+ #undef MAX
+@@ -988,6 +992,7 @@ AC_DEFUN(AC_FUNC_CLOSEDIR_VOID,
  [AC_REQUIRE([AC_HEADER_DIRENT])dnl
  AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void,
  [AC_TRY_RUN([#include <sys/types.h>
@@ -45,7 +55,18 @@ Signed-off-by: Sam James <sam@gentoo.org>
  #include <$ac_header_dirent>
  int closedir(...); int main(void) { exit(closedir(opendir(".")) != 0); }],
    ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, ac_cv_func_closedir_void=yes)])
-@@ -1038,6 +1041,7 @@ AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped,
+@@ -1001,7 +1006,9 @@ AC_DEFUN(AC_FUNC_FNMATCH,
+ # Some versions of Solaris or SCO have a broken fnmatch function.
+ # So we run a test program.  If we are cross-compiling, take no chance.
+ # Thanks to John Oleynick and Franc,ois Pinard for this test.
+-[AC_TRY_RUN([int main(void) { exit (fnmatch ("a*", "abc", 0) != 0); }],
++[AC_TRY_RUN([#include <stdlib.h>
++#include <fnmatch.h>
++int main(void) { exit (fnmatch ("a*", "abc", 0) != 0); }],
+ ac_cv_func_fnmatch_works=yes, ac_cv_func_fnmatch_works=no,
+ ac_cv_func_fnmatch_works=no)])
+ if test $ac_cv_func_fnmatch_works = yes; then
+@@ -1038,6 +1045,7 @@ AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped,
  #include <sys/types.h>
  #include <fcntl.h>
  #include <sys/mman.h>
@@ -53,7 +74,7 @@ Signed-off-by: Sam James <sam@gentoo.org>
  
  /* This mess was copied from the GNU getpagesize.h.  */
  #ifndef HAVE_GETPAGESIZE
-@@ -1165,49 +1169,17 @@ AC_DEFUN(AC_FUNC_GETPGRP,
+@@ -1165,49 +1173,17 @@ AC_DEFUN(AC_FUNC_GETPGRP,
   *
   * Snarfed from Chet Ramey's bash pgrp.c test program
   */
@@ -111,7 +132,7 @@ Signed-off-by: Sam James <sam@gentoo.org>
  }
  ], ac_cv_func_getpgrp_void=yes, ac_cv_func_getpgrp_void=no,
     AC_MSG_ERROR(cannot check getpgrp if cross compiling))
-@@ -1220,9 +1192,7 @@ fi
+@@ -1220,9 +1196,7 @@ fi
  AC_DEFUN(AC_FUNC_SETPGRP,
  [AC_CACHE_CHECK(whether setpgrp takes no argument, ac_cv_func_setpgrp_void,
  AC_TRY_RUN([
@@ -122,7 +143,7 @@ Signed-off-by: Sam James <sam@gentoo.org>
  
  /*
   * If this system has a BSD-style setpgrp, which takes arguments, exit
-@@ -1230,10 +1200,13 @@ AC_TRY_RUN([
+@@ -1230,10 +1204,13 @@ AC_TRY_RUN([
   */
  int main(void)
  {
@@ -140,7 +161,7 @@ Signed-off-by: Sam James <sam@gentoo.org>
  }
  ], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes,
     AC_MSG_ERROR(cannot check setpgrp if cross compiling))
-@@ -1255,9 +1228,11 @@ AC_DEFUN(AC_FUNC_VFORK,
+@@ -1255,9 +1232,11 @@ AC_DEFUN(AC_FUNC_VFORK,
  AC_CHECK_HEADER(vfork.h, AC_DEFINE(HAVE_VFORK_H))
  AC_CACHE_CHECK(for working vfork, ac_cv_func_vfork_works,
  [AC_TRY_RUN([/* Thanks to Paul Eggert for this test.  */
@@ -152,7 +173,7 @@ Signed-off-by: Sam James <sam@gentoo.org>
  #ifdef HAVE_UNISTD_H
  #include <unistd.h>
  #endif
-@@ -1270,7 +1245,7 @@ AC_CACHE_CHECK(for working vfork, ac_cv_func_vfork_works,
+@@ -1270,7 +1249,7 @@ AC_CACHE_CHECK(for working vfork, ac_cv_func_vfork_works,
     but some compilers (e.g. gcc -O) don't grok <vfork.h>.
     Test for this by using a static variable whose address
     is put into a register that is clobbered by the vfork.  */
@@ -161,23 +182,35 @@ Signed-off-by: Sam James <sam@gentoo.org>
  #ifdef __cplusplus
  sparc_address_test (int arg)
  #else
-@@ -1359,6 +1334,7 @@ AC_DEFUN(AC_FUNC_WAIT3,
+@@ -1359,6 +1338,8 @@ AC_DEFUN(AC_FUNC_WAIT3,
  #include <sys/time.h>
  #include <sys/resource.h>
  #include <stdio.h>
 +#include <stdlib.h>
++#include <unistd.h>
  /* HP-UX has wait3 but does not fill in rusage at all.  */
  int main(void) {
    struct rusage r;
-@@ -1582,6 +1558,7 @@ AC_DEFUN(AC_FUNC_UTIME_NULL,
+@@ -1452,7 +1433,8 @@ done
+ fi
+ 
+ AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
+-[AC_TRY_RUN([find_stack_direction ()
++[AC_TRY_RUN([#include <stdlib.h>
++int find_stack_direction ()
+ {
+   static char *addr = 0;
+   auto char dummy;
+@@ -1582,6 +1564,8 @@ AC_DEFUN(AC_FUNC_UTIME_NULL,
  # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
  AC_TRY_RUN([#include <sys/types.h>
  #include <sys/stat.h>
 +#include <stdlib.h>
++#include <utime.h>
  int main(void) {
  struct stat s, t;
  exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
-@@ -1598,6 +1575,7 @@ fi
+@@ -1598,6 +1582,7 @@ fi
  AC_DEFUN(AC_FUNC_STRCOLL,
  [AC_CACHE_CHECK(for working strcoll, ac_cv_func_strcoll_works,
  [AC_TRY_RUN([#include <string.h>
@@ -185,7 +218,7 @@ Signed-off-by: Sam James <sam@gentoo.org>
  int main (void)
  {
    exit (strcoll ("abc", "def") >= 0 ||
-@@ -1614,6 +1592,7 @@ AC_DEFUN(AC_FUNC_SETVBUF_REVERSED,
+@@ -1614,6 +1599,7 @@ AC_DEFUN(AC_FUNC_SETVBUF_REVERSED,
  [AC_CACHE_CHECK(whether setvbuf arguments are reversed,
    ac_cv_func_setvbuf_reversed,
  [AC_TRY_RUN([#include <stdio.h>
@@ -193,7 +226,7 @@ Signed-off-by: Sam James <sam@gentoo.org>
  /* If setvbuf has the reversed format, exit 0. */
  int main (void) {
    /* This call has the arguments reversed.
-@@ -1646,7 +1625,8 @@ LIBS="-lintl $LIBS"])])])
+@@ -1646,7 +1632,8 @@ LIBS="-lintl $LIBS"])])])
  
  AC_DEFUN(AC_FUNC_MEMCMP,
  [AC_CACHE_CHECK(for 8-bit clean memcmp, ac_cv_func_memcmp_clean,
@@ -203,7 +236,7 @@ Signed-off-by: Sam James <sam@gentoo.org>
  int main(void)
  {
    char c0 = 0x40, c1 = 0x80, c2 = 0x81;
-@@ -1805,6 +1785,7 @@ AC_TRY_RUN(
+@@ -1805,6 +1792,7 @@ AC_TRY_RUN(
  #if !defined(__STDC__) || __STDC__ != 1
  #define volatile
  #endif
@@ -211,7 +244,7 @@ Signed-off-by: Sam James <sam@gentoo.org>
  int main(void) {
    volatile char c = 255; exit(c < 0);
  }], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no)
-@@ -1819,7 +1800,8 @@ AC_DEFUN(AC_C_LONG_DOUBLE,
+@@ -1819,7 +1807,8 @@ AC_DEFUN(AC_C_LONG_DOUBLE,
  [if test "$GCC" = yes; then
    ac_cv_c_long_double=yes
  else
@@ -221,7 +254,7 @@ Signed-off-by: Sam James <sam@gentoo.org>
  /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
  long double foo = 0.0;
  /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
-@@ -1834,7 +1816,8 @@ fi
+@@ -1834,7 +1823,8 @@ fi
  AC_DEFUN(AC_INT_16_BITS,
  [AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(int)])dnl
  AC_MSG_CHECKING(whether int is 16 bits)
@@ -231,7 +264,7 @@ Signed-off-by: Sam James <sam@gentoo.org>
   [AC_MSG_RESULT(yes)
   AC_DEFINE(INT_16_BITS)], AC_MSG_RESULT(no))
  ])
-@@ -1842,7 +1825,8 @@ AC_TRY_RUN([int main(void) { exit(sizeof(int) != 2); }],
+@@ -1842,7 +1832,8 @@ AC_TRY_RUN([int main(void) { exit(sizeof(int) != 2); }],
  AC_DEFUN(AC_LONG_64_BITS,
  [AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(long)])dnl
  AC_MSG_CHECKING(whether long int is 64 bits)
@@ -241,3 +274,24 @@ Signed-off-by: Sam James <sam@gentoo.org>
   [AC_MSG_RESULT(yes)
   AC_DEFINE(LONG_64_BITS)], AC_MSG_RESULT(no))
  ])
+@@ -1862,7 +1853,8 @@ AC_TRY_COMPILE([#include <sys/types.h>
+  not big endian
+ #endif], ac_cv_c_bigendian=yes, ac_cv_c_bigendian=no)])
+ if test $ac_cv_c_bigendian = unknown; then
+-AC_TRY_RUN([int main (void) {
++AC_TRY_RUN([#include <stdlib.h>
++int main (void) {
+   /* Are we little or big endian?  From Harbison&Steele.  */
+   union
+   {
+@@ -2275,7 +2267,10 @@ AC_DEFUN(AC_SYS_RESTARTABLE_SYSCALLS,
+    i.e. the pid of the child, which means that wait was restarted
+    after getting the signal.  */
+ #include <sys/types.h>
++#include <sys/wait.h>
+ #include <signal.h>
++#include <stdlib.h>
++#include <unistd.h>
+ ucatch (isig) { }
+ int main (void) {
+   int i = fork (), status;