Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/cpio/files/
Date: Mon, 02 Jan 2023 06:00:17
Message-Id: 1672639187.7b3b13e2b23c0df42ee8b478c2506e2ca6d99184.sam@gentoo
1 commit: 7b3b13e2b23c0df42ee8b478c2506e2ca6d99184
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 05:59:41 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 05:59:47 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b3b13e2
7
8 app-arch/cpio: fix configure w/ clang 16
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 .../files/cpio-2.13-sysmacros-glibc-2.26.patch | 28 ++++++++++++++++++++++
13 1 file changed, 28 insertions(+)
14
15 diff --git a/app-arch/cpio/files/cpio-2.13-sysmacros-glibc-2.26.patch b/app-arch/cpio/files/cpio-2.13-sysmacros-glibc-2.26.patch
16 index abd1b663496d..90e7bc77bd9b 100644
17 --- a/app-arch/cpio/files/cpio-2.13-sysmacros-glibc-2.26.patch
18 +++ b/app-arch/cpio/files/cpio-2.13-sysmacros-glibc-2.26.patch
19 @@ -10,5 +10,33 @@
20 #include <sys/types.h>
21 $3
22 ]], [[switch (0) case 0: case (sizeof ($1($2)) == sizeof ($ac_type)):;]])], [AC_CV_NAME=$ac_type])
23 +--- a/configure.ac
24 ++++ b/configure.ac
25 +@@ -39,14 +39,11 @@ AC_C_PROTOTYPES
26 + AC_SYS_LARGEFILE
27
28 + AC_TYPE_SIGNAL
29 +-AC_HEADER_MAJOR
30 + AC_C_CONST
31 + AC_TYPE_UID_T
32 + AC_CHECK_TYPE(gid_t, int)
33 + AC_HEADER_STDC
34 + AC_HEADER_DIRENT
35 +-AC_COMPILE_CHECK_RETTYPE([major], [0])
36 +-AC_COMPILE_CHECK_RETTYPE([minor], [0])
37
38 + AC_CHECK_FUNCS([fchmod fchown])
39 + # This is needed for mingw build
40 +@@ -67,7 +64,11 @@ AC_ARG_ENABLE(mt,
41 +
42 + AM_CONDITIONAL([CPIO_MT_COND], [test "$enable_mt" = yes])
43 +
44 +-AC_CHECK_HEADERS([unistd.h stdlib.h string.h fcntl.h pwd.h grp.h sys/io/trioctl.h utmp.h getopt.h locale.h libintl.h sys/wait.h utime.h locale.h process.h sys/ioctl.h])
45 ++AC_CHECK_HEADERS([unistd.h stdlib.h string.h fcntl.h pwd.h grp.h sys/io/trioctl.h utmp.h getopt.h locale.h libintl.h sys/wait.h utime.h locale.h process.h sys/ioctl.h sys/sysmacros.h])
46 ++
47 ++AC_HEADER_MAJOR
48 ++AC_COMPILE_CHECK_RETTYPE([major], [0])
49 ++AC_COMPILE_CHECK_RETTYPE([minor], [0])
50 +
51 + AC_CHECK_DECLS([errno, getpwnam, getgrnam, getgrgid, strdup, strerror, getenv, atoi, exit], , , [
52 + #include <stdio.h>