1 |
commit: 47a9ea7acd609fbdf48891e4a29633ab5e23f0d5 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 31 20:03:38 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 31 20:03:38 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47a9ea7a |
7 |
|
8 |
app-misc/ttyrec: update EAPI 6 -> 8 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/713408 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
app-misc/ttyrec/files/ttyrec-1.0.8-flags.patch | 25 +++++++----- |
14 |
.../ttyrec/files/ttyrec-1.0.8-glibc-2.30.patch | 47 +++++++++++++++++++--- |
15 |
...yrec-1.0.8-r2.ebuild => ttyrec-1.0.8-r3.ebuild} | 13 +++--- |
16 |
3 files changed, 65 insertions(+), 20 deletions(-) |
17 |
|
18 |
diff --git a/app-misc/ttyrec/files/ttyrec-1.0.8-flags.patch b/app-misc/ttyrec/files/ttyrec-1.0.8-flags.patch |
19 |
index 34687d9b8b7a..28d7841fbd6f 100644 |
20 |
--- a/app-misc/ttyrec/files/ttyrec-1.0.8-flags.patch |
21 |
+++ b/app-misc/ttyrec/files/ttyrec-1.0.8-flags.patch |
22 |
@@ -1,19 +1,26 @@ |
23 |
---- a/Makefile 2017-08-26 11:47:02.981266309 +0200 |
24 |
-+++ b/Makefile 2017-08-26 14:33:47.161600445 +0200 |
25 |
-@@ -10,13 +10,13 @@ |
26 |
+--- a/Makefile |
27 |
++++ b/Makefile |
28 |
+@@ -1,5 +1,3 @@ |
29 |
+-CC = gcc |
30 |
+-CFLAGS = -O2 |
31 |
+ VERSION = 1.0.8 |
32 |
+ |
33 |
+ TARGET = ttyrec ttyplay ttytime |
34 |
+@@ -9,14 +7,11 @@ |
35 |
+ |
36 |
all: $(TARGET) |
37 |
|
38 |
- ttyrec: ttyrec.o io.o |
39 |
+-ttyrec: ttyrec.o io.o |
40 |
- $(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o |
41 |
-+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o ttyrec ttyrec.o io.o |
42 |
++ttyrec: io.o |
43 |
|
44 |
- ttyplay: ttyplay.o io.o |
45 |
+-ttyplay: ttyplay.o io.o |
46 |
- $(CC) $(CFLAGS) -o ttyplay ttyplay.o io.o |
47 |
-+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o ttyplay ttyplay.o io.o |
48 |
++ttyplay: io.o |
49 |
|
50 |
- ttytime: ttytime.o io.o |
51 |
+-ttytime: ttytime.o io.o |
52 |
- $(CC) $(CFLAGS) -o ttytime ttytime.o io.o |
53 |
-+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o ttytime ttytime.o io.o |
54 |
++ttytime: io.o |
55 |
|
56 |
clean: |
57 |
rm -f *.o $(TARGET) ttyrecord *~ |
58 |
|
59 |
diff --git a/app-misc/ttyrec/files/ttyrec-1.0.8-glibc-2.30.patch b/app-misc/ttyrec/files/ttyrec-1.0.8-glibc-2.30.patch |
60 |
index 174fc7786e19..79a024ac734b 100644 |
61 |
--- a/app-misc/ttyrec/files/ttyrec-1.0.8-glibc-2.30.patch |
62 |
+++ b/app-misc/ttyrec/files/ttyrec-1.0.8-glibc-2.30.patch |
63 |
@@ -1,8 +1,36 @@ |
64 |
-diff --git a/ttyrec.c b/ttyrec.c |
65 |
-index 3392f70..86a59ee 100644 |
66 |
+--- a/io.h |
67 |
++++ b/io.h |
68 |
+@@ -9,5 +9,6 @@ |
69 |
+ int edup (int oldfd); |
70 |
+ int edup2 (int oldfd, int newfd); |
71 |
+ FILE* efdopen (int fd, const char *mode); |
72 |
++void set_progname (const char *name); |
73 |
+ |
74 |
+ #endif |
75 |
--- a/ttyrec.c |
76 |
+++ b/ttyrec.c |
77 |
-@@ -57,7 +57,9 @@ |
78 |
+@@ -42,13 +42,19 @@ |
79 |
+ /* |
80 |
+ * script |
81 |
+ */ |
82 |
++ |
83 |
++#ifndef _GNU_SOURCE |
84 |
++#define _GNU_SOURCE |
85 |
++#endif |
86 |
++ |
87 |
+ #include <sys/types.h> |
88 |
+ #include <sys/stat.h> |
89 |
+ #include <termios.h> |
90 |
+ #include <sys/ioctl.h> |
91 |
+ #include <sys/time.h> |
92 |
+ #include <sys/file.h> |
93 |
+-#include <sys/signal.h> |
94 |
++#include <sys/wait.h> |
95 |
++#include <signal.h> |
96 |
+ #include <stdio.h> |
97 |
+ #include <time.h> |
98 |
+ #include <unistd.h> |
99 |
+@@ -57,7 +63,9 @@ |
100 |
|
101 |
#if defined(SVR4) |
102 |
#include <fcntl.h> |
103 |
@@ -12,7 +40,16 @@ index 3392f70..86a59ee 100644 |
104 |
#endif /* SVR4 */ |
105 |
|
106 |
#include <sys/time.h> |
107 |
-@@ -449,6 +451,7 @@ getslave() |
108 |
+@@ -341,7 +349,7 @@ |
109 |
+ rtt = tt; |
110 |
+ #if defined(SVR4) |
111 |
+ rtt.c_iflag = 0; |
112 |
+- rtt.c_lflag &= ~(ISIG|ICANON|XCASE|ECHO|ECHOE|ECHOK|ECHONL); |
113 |
++ rtt.c_lflag &= ~(ISIG|ICANON|ECHO|ECHOE|ECHOK|ECHONL); |
114 |
+ rtt.c_oflag = OPOST; |
115 |
+ rtt.c_cc[VINTR] = CDEL; |
116 |
+ rtt.c_cc[VQUIT] = CDEL; |
117 |
+@@ -449,6 +457,7 @@ |
118 |
perror("open(fd, O_RDWR)"); |
119 |
fail(); |
120 |
} |
121 |
@@ -20,7 +57,7 @@ index 3392f70..86a59ee 100644 |
122 |
if (isastream(slave)) { |
123 |
if (ioctl(slave, I_PUSH, "ptem") < 0) { |
124 |
perror("ioctl(fd, I_PUSH, ptem)"); |
125 |
-@@ -466,6 +469,7 @@ getslave() |
126 |
+@@ -466,6 +475,7 @@ |
127 |
#endif |
128 |
(void) ioctl(0, TIOCGWINSZ, (char *)&win); |
129 |
} |
130 |
|
131 |
diff --git a/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild b/app-misc/ttyrec/ttyrec-1.0.8-r3.ebuild |
132 |
similarity index 75% |
133 |
rename from app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild |
134 |
rename to app-misc/ttyrec/ttyrec-1.0.8-r3.ebuild |
135 |
index 87546d44a9f8..2973ae3eff7e 100644 |
136 |
--- a/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild |
137 |
+++ b/app-misc/ttyrec/ttyrec-1.0.8-r3.ebuild |
138 |
@@ -1,7 +1,7 @@ |
139 |
-# Copyright 1999-2021 Gentoo Authors |
140 |
+# Copyright 1999-2022 Gentoo Authors |
141 |
# Distributed under the terms of the GNU General Public License v2 |
142 |
|
143 |
-EAPI=6 |
144 |
+EAPI=8 |
145 |
|
146 |
inherit flag-o-matic toolchain-funcs |
147 |
|
148 |
@@ -12,15 +12,16 @@ SRC_URI="http://0xcc.net/ttyrec/${P}.tar.gz" |
149 |
LICENSE="BSD" |
150 |
SLOT="0" |
151 |
KEYWORDS="~alpha amd64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" |
152 |
+ |
153 |
PATCHES=( |
154 |
- "${FILESDIR}/${P}-flags.patch" |
155 |
- "${FILESDIR}/${P}-glibc-2.30.patch" |
156 |
+ "${FILESDIR}"/${P}-flags.patch |
157 |
+ "${FILESDIR}"/${P}-glibc-2.30.patch |
158 |
) |
159 |
|
160 |
-src_compile() { |
161 |
+src_configure() { |
162 |
# Bug 106530 |
163 |
[[ ${CHOST} != *-darwin* ]] && append-cppflags -DSVR4 -D_XOPEN_SOURCE=500 |
164 |
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
165 |
+ tc-export CC |
166 |
} |
167 |
|
168 |
src_install() { |