Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/ttyrec/, app-misc/ttyrec/files/
Date: Mon, 09 Mar 2020 20:33:58
Message-Id: 1583786016.ab51e719f086daa2684c155321b4359f97f7b5ba.monsieurp@gentoo
1 commit: ab51e719f086daa2684c155321b4359f97f7b5ba
2 Author: Stephan Hartmann <stha09 <AT> googlemail <DOT> com>
3 AuthorDate: Tue Feb 18 15:11:39 2020 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 9 20:33:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab51e719
7
8 app-misc/ttyrec: fix building with glibc 2.30.
9
10 Closes: https://bugs.gentoo.org/691908
11 Package-Manager: Portage-2.3.84, Repoman-2.3.20
12 Signed-off-by: Stephan Hartmann <stha09 <AT> googlemail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/14692
14 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
15
16 .../ttyrec/files/ttyrec-1.0.8-glibc-2.30.patch | 30 ++++++++++++++++++++++
17 app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild | 5 +++-
18 2 files changed, 34 insertions(+), 1 deletion(-)
19
20 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
21 new file mode 100644
22 index 00000000000..174fc7786e1
23 --- /dev/null
24 +++ b/app-misc/ttyrec/files/ttyrec-1.0.8-glibc-2.30.patch
25 @@ -0,0 +1,30 @@
26 +diff --git a/ttyrec.c b/ttyrec.c
27 +index 3392f70..86a59ee 100644
28 +--- a/ttyrec.c
29 ++++ b/ttyrec.c
30 +@@ -57,7 +57,9 @@
31 +
32 + #if defined(SVR4)
33 + #include <fcntl.h>
34 ++#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__linux__))
35 + #include <stropts.h>
36 ++#endif
37 + #endif /* SVR4 */
38 +
39 + #include <sys/time.h>
40 +@@ -449,6 +451,7 @@ getslave()
41 + perror("open(fd, O_RDWR)");
42 + fail();
43 + }
44 ++#ifndef __linux__
45 + if (isastream(slave)) {
46 + if (ioctl(slave, I_PUSH, "ptem") < 0) {
47 + perror("ioctl(fd, I_PUSH, ptem)");
48 +@@ -466,6 +469,7 @@ getslave()
49 + #endif
50 + (void) ioctl(0, TIOCGWINSZ, (char *)&win);
51 + }
52 ++#endif
53 + #else /* !SVR4 */
54 + #ifndef HAVE_openpty
55 + line[strlen("/dev/")] = 't';
56
57 diff --git a/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild b/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild
58 index df5351688d2..e3f42c0d0d3 100644
59 --- a/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild
60 +++ b/app-misc/ttyrec/ttyrec-1.0.8-r2.ebuild
61 @@ -12,7 +12,10 @@ SRC_URI="http://0xcc.net/ttyrec/${P}.tar.gz"
62 LICENSE="BSD"
63 SLOT="0"
64 KEYWORDS="~alpha amd64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
65 -PATCHES=( "${FILESDIR}/${P}-flags.patch" )
66 +PATCHES=(
67 + "${FILESDIR}/${P}-flags.patch"
68 + "${FILESDIR}/${P}-glibc-2.30.patch"
69 +)
70
71 src_compile() {
72 # Bug 106530