From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/files/, sys-devel/autoconf/
Date: Thu, 3 Nov 2022 01:52:07 +0000 (UTC) [thread overview]
Message-ID: <1667440314.d172fe309bd90487b1f61a106efd2a8b68f10367.sam@gentoo> (raw)
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;
next reply other threads:[~2022-11-03 1:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-03 1:52 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-07-17 20:23 [gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/files/, sys-devel/autoconf/ Andreas K. Hüttel
2022-11-09 8:30 Sam James
2022-11-03 22:57 Sam James
2022-09-19 19:10 Sam James
2022-09-19 16:26 Sam James
2022-09-19 16:26 Sam James
2021-01-28 23:49 Lars Wendler
2020-12-29 16:14 Lars Wendler
2020-10-17 20:00 Lars Wendler
2020-08-29 14:38 Thomas Deutschmann
2018-01-18 9:40 Lars Wendler
2018-01-04 9:35 Lars Wendler
2017-05-13 9:29 Lars Wendler
2017-03-23 14:23 Fabian Groffen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1667440314.d172fe309bd90487b1f61a106efd2a8b68f10367.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox