1 |
commit: fa9750b4c24e402475d4edaa1b2ef34f17d945c3 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 23 08:11:21 2020 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 23 08:12:14 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa9750b4 |
7 |
|
8 |
app-arch/tar: add patch for macOS Big Sur 11.1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/761322 |
11 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
12 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
13 |
|
14 |
...tar-1.32-check-sys-ioctl-header-configure.patch | 53 ++++++++++++++++++++++ |
15 |
app-arch/tar/tar-1.32.90.ebuild | 4 ++ |
16 |
app-arch/tar/tar-1.32.ebuild | 3 ++ |
17 |
3 files changed, 60 insertions(+) |
18 |
|
19 |
diff --git a/app-arch/tar/files/tar-1.32-check-sys-ioctl-header-configure.patch b/app-arch/tar/files/tar-1.32-check-sys-ioctl-header-configure.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..c8aee2fcce8 |
22 |
--- /dev/null |
23 |
+++ b/app-arch/tar/files/tar-1.32-check-sys-ioctl-header-configure.patch |
24 |
@@ -0,0 +1,53 @@ |
25 |
+[buildsys] macOS Big Sur 11.1 doesn't have sys/ioctl.h |
26 |
+ |
27 |
+Author: Alexei Colin |
28 |
+Bug: https://bugs.gentoo.org/761322 |
29 |
+Bug: https://savannah.gnu.org/bugs/index.php?59755 |
30 |
+ |
31 |
+--- a/configure 2020-12-23 00:49:19.000000000 -0500 |
32 |
++++ b/configure 2020-12-23 00:49:52.000000000 -0500 |
33 |
+@@ -3422,6 +3422,7 @@ |
34 |
+ as_fn_append ac_header_list " sys/device.h" |
35 |
+ as_fn_append ac_header_list " sys/gentape.h" |
36 |
+ as_fn_append ac_header_list " sys/inet.h" |
37 |
++as_fn_append ac_header_list " sys/ioctl.h" |
38 |
+ as_fn_append ac_header_list " sys/io/trioctl.h" |
39 |
+ as_fn_append ac_header_list " sys/mtio.h" |
40 |
+ as_fn_append ac_header_list " sys/time.h" |
41 |
+--- a/config.h.in 2019-02-23 07:56:20.000000000 -0500 |
42 |
++++ b/config.h.in 2020-12-23 01:04:49.000000000 -0500 |
43 |
+@@ -1480,6 +1480,9 @@ |
44 |
+ /* Define to 1 if you have the <sys/inttypes.h> header file. */ |
45 |
+ #undef HAVE_SYS_INTTYPES_H |
46 |
+ |
47 |
++/* Define to 1 if you have the <sys/ioctl.h> header file. */ |
48 |
++#undef HAVE_SYS_IOCTL_H |
49 |
++ |
50 |
+ /* Define to 1 if you have the <sys/io/trioctl.h> header file. */ |
51 |
+ #undef HAVE_SYS_IO_TRIOCTL_H |
52 |
+ |
53 |
+--- a/lib/system-ioctl.h 2020-12-22 20:57:00.000000000 -0500 |
54 |
++++ b/lib/system-ioctl.h 2020-12-22 20:57:35.000000000 -0500 |
55 |
+@@ -41,8 +41,10 @@ |
56 |
+ # endif |
57 |
+ # include <sys/tape.h> |
58 |
+ # else |
59 |
+-# if HAVE_SYS_MTIO_H |
60 |
++# if HAVE_SYS_IOCTL_H |
61 |
+ # include <sys/ioctl.h> |
62 |
++# endif |
63 |
++# if HAVE_SYS_MTIO_H |
64 |
+ # if HAVE_SGTTY_H |
65 |
+ # include <sgtty.h> |
66 |
+ # endif |
67 |
+--- a/src/checkpoint.c 2020-12-22 20:56:48.000000000 -0500 |
68 |
++++ b/src/checkpoint.c 2020-12-22 20:58:29.000000000 -0500 |
69 |
+@@ -20,7 +20,7 @@ |
70 |
+ #include <system.h> |
71 |
+ #include "common.h" |
72 |
+ #include "wordsplit.h" |
73 |
+-#include <sys/ioctl.h> |
74 |
++#include <system-ioctl.h> |
75 |
+ #include <termios.h> |
76 |
+ #include "fprintftime.h" |
77 |
+ #include <signal.h> |
78 |
|
79 |
diff --git a/app-arch/tar/tar-1.32.90.ebuild b/app-arch/tar/tar-1.32.90.ebuild |
80 |
index 87f3d927f1c..43686c3c26d 100644 |
81 |
--- a/app-arch/tar/tar-1.32.90.ebuild |
82 |
+++ b/app-arch/tar/tar-1.32.90.ebuild |
83 |
@@ -25,6 +25,10 @@ DEPEND="${RDEPEND} |
84 |
xattr? ( elibc_glibc? ( sys-apps/attr ) )" |
85 |
BDEPEND="nls? ( sys-devel/gettext )" |
86 |
|
87 |
+PATCHES=( |
88 |
+ "${FILESDIR}"/${PN}-1.32-check-sys-ioctl-header-configure.patch |
89 |
+) |
90 |
+ |
91 |
src_prepare() { |
92 |
default |
93 |
|
94 |
|
95 |
diff --git a/app-arch/tar/tar-1.32.ebuild b/app-arch/tar/tar-1.32.ebuild |
96 |
index 81267f7aa85..d1fd7864919 100644 |
97 |
--- a/app-arch/tar/tar-1.32.ebuild |
98 |
+++ b/app-arch/tar/tar-1.32.ebuild |
99 |
@@ -33,6 +33,9 @@ src_prepare() { |
100 |
scripts/{backup,dump-remind,restore}.in \ |
101 |
|| die "sed non-GNU" |
102 |
fi |
103 |
+ |
104 |
+ [[ ${CHOST} == *darwin20* ]] && \ |
105 |
+ eapply "${FILESDIR}"/${PN}-1.32-check-sys-ioctl-header-configure.patch |
106 |
} |
107 |
|
108 |
src_configure() { |