1 |
commit: b970182de2a6a6da4748572295e4a6e46f16736c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 28 02:56:15 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 28 03:01:16 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b970182d |
7 |
|
8 |
app-text/texlive-core: fix another Clang 16 configure issue |
9 |
|
10 |
Bug: https://bugs.gentoo.org/882245 |
11 |
Bug: https://bugs.gentoo.org/874546 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
.../files/texlive-core-2021-clang-16.patch | 49 ++++++++++++++++++++++ |
15 |
...-2021-r5.ebuild => texlive-core-2021-r6.ebuild} | 2 +- |
16 |
2 files changed, 50 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/app-text/texlive-core/files/texlive-core-2021-clang-16.patch b/app-text/texlive-core/files/texlive-core-2021-clang-16.patch |
19 |
index fcfbd26c8ed2..8d5f421544f8 100644 |
20 |
--- a/app-text/texlive-core/files/texlive-core-2021-clang-16.patch |
21 |
+++ b/app-text/texlive-core/files/texlive-core-2021-clang-16.patch |
22 |
@@ -3,6 +3,7 @@ https://bugs.gentoo.org/882245 |
23 |
|
24 |
https://github.com/TeX-Live/texlive-source/commit/3b1470c8911cd4bc9e4a02bfb5cac0f3bebcab3a |
25 |
https://github.com/TeX-Live/texlive-source/commit/60b60503b21ea43c68d1ffbe214141a79a36190b |
26 |
+https://github.com/TeX-Live/texlive-source/commit/bb307f8bd91c5ea4f191b9c788056470626893b7 |
27 |
|
28 |
From 3b1470c8911cd4bc9e4a02bfb5cac0f3bebcab3a Mon Sep 17 00:00:00 2001 |
29 |
From: Karl Berry <karl@×××××××××××.org> |
30 |
@@ -170,3 +171,51 @@ git-svn-id: svn://tug.org/texlive/trunk/Build/source@64953 c570f23f-e606-0410-a8 |
31 |
{ |
32 |
xargc = argc; |
33 |
|
34 |
+From bb307f8bd91c5ea4f191b9c788056470626893b7 Mon Sep 17 00:00:00 2001 |
35 |
+From: Karl Berry <karl@×××××××××××.org> |
36 |
+Date: Thu, 2 Feb 2023 22:57:47 +0000 |
37 |
+Subject: [PATCH] avoid implicit wait and exit declarations for C99 |
38 |
+ |
39 |
+git-svn-id: svn://tug.org/texlive/trunk/Build/source@65717 c570f23f-e606-0410-a88d-b1316a301751 |
40 |
+--- a/texk/xdvik/configure |
41 |
++++ b/texk/xdvik/configure |
42 |
+@@ -15455,6 +15455,9 @@ else |
43 |
+ #ifdef HAVE_UNISTD_H |
44 |
+ #include <unistd.h> |
45 |
+ #endif |
46 |
++#ifdef HAVE_SYS_WAIT_H |
47 |
++#include <sys/wait.h> |
48 |
++#endif |
49 |
+ #ifdef HAVE_VFORK_H |
50 |
+ #include <vfork.h> |
51 |
+ #endif |
52 |
+@@ -15476,7 +15479,7 @@ main () |
53 |
+ |
54 |
+ while (wait(&status) != child) |
55 |
+ ; |
56 |
+- exit( |
57 |
++ _exit( |
58 |
+ /* Was there some problem with vforking? */ |
59 |
+ child < 0 |
60 |
+ |
61 |
+--- a/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4 |
62 |
++++ b/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4 |
63 |
+@@ -22,6 +22,9 @@ AC_DEFUN([XDVI_FUNC_SETSID_IN_VFORK], |
64 |
+ #ifdef HAVE_UNISTD_H |
65 |
+ #include <unistd.h> |
66 |
+ #endif |
67 |
++#ifdef HAVE_SYS_WAIT_H |
68 |
++#include <sys/wait.h> |
69 |
++#endif |
70 |
+ #ifdef HAVE_VFORK_H |
71 |
+ #include <vfork.h> |
72 |
+ #endif]], |
73 |
+@@ -40,7 +43,7 @@ AC_DEFUN([XDVI_FUNC_SETSID_IN_VFORK], |
74 |
+ |
75 |
+ while (wait(&status) != child) |
76 |
+ ; |
77 |
+- exit( |
78 |
++ _exit( |
79 |
+ /* Was there some problem with vforking? */ |
80 |
+ child < 0 |
81 |
+ |
82 |
|
83 |
diff --git a/app-text/texlive-core/texlive-core-2021-r5.ebuild b/app-text/texlive-core/texlive-core-2021-r6.ebuild |
84 |
similarity index 99% |
85 |
rename from app-text/texlive-core/texlive-core-2021-r5.ebuild |
86 |
rename to app-text/texlive-core/texlive-core-2021-r6.ebuild |
87 |
index 0c150524ab97..0b463ff9a7ff 100644 |
88 |
--- a/app-text/texlive-core/texlive-core-2021-r5.ebuild |
89 |
+++ b/app-text/texlive-core/texlive-core-2021-r6.ebuild |
90 |
@@ -1,4 +1,4 @@ |
91 |
-# Copyright 1999-2022 Gentoo Authors |
92 |
+# Copyright 1999-2023 Gentoo Authors |
93 |
# Distributed under the terms of the GNU General Public License v2 |
94 |
|
95 |
EAPI=7 |