Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/setserial/files/, sys-apps/setserial/
Date: Sun, 31 Jul 2016 17:24:30
Message-Id: 1469985847.1490e73dda15c34b881ace1568214bd4d1fd2b08.grobian@gentoo
1 commit: 1490e73dda15c34b881ace1568214bd4d1fd2b08
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 31 17:24:07 2016 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 31 17:24:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1490e73d
7
8 sys-apps/setserial: add patch for Darwin, bug #541536
9
10 Package-Manager: portage-2.2.28
11
12 .../setserial/files/setserial-2.17-darwin.patch | 33 ++++++++++++++++++++++
13 sys-apps/setserial/setserial-2.17-r4.ebuild | 1 +
14 2 files changed, 34 insertions(+)
15
16 diff --git a/sys-apps/setserial/files/setserial-2.17-darwin.patch b/sys-apps/setserial/files/setserial-2.17-darwin.patch
17 new file mode 100644
18 index 0000000..681f793
19 --- /dev/null
20 +++ b/sys-apps/setserial/files/setserial-2.17-darwin.patch
21 @@ -0,0 +1,33 @@
22 +https://541536.bugs.gentoo.org/attachment.cgi?id=397618
23 +https://bugs.gentoo.org/show_bug.cgi?id=541536
24 +
25 +diff --git a/setserial.c b/setserial.c
26 +index 3474402..3ce8009 100644
27 +--- a/setserial.c
28 ++++ b/setserial.c
29 +@@ -31,6 +31,25 @@
30 +
31 + #include "version.h"
32 +
33 ++#ifdef __APPLE__
34 ++// see http://www.insanelymac.com/forum/topic/155999-compiling-setserial-on-mac-os-x/
35 ++#ifndef TIOCGSERIAL
36 ++#define TIOCGSERIAL 0x541E
37 ++#endif
38 ++#ifndef TIOCSERCONFIG
39 ++#define TIOCSERCONFIG 0x5453
40 ++#endif
41 ++#ifndef TIOCSSERIAL
42 ++#define TIOCSSERIAL 0x541F
43 ++#endif
44 ++#ifndef TIOCSERGWILD
45 ++#define TIOCSERGWILD 0x5454
46 ++#endif
47 ++#ifndef TIOCSERSWILD
48 ++#define TIOCSERSWILD 0x5455
49 ++#endif
50 ++#endif
51 ++
52 + static char version_str[] = "setserial version " SETSERIAL_VERSION ", "
53 + SETSERIAL_DATE;
54 +
55
56 diff --git a/sys-apps/setserial/setserial-2.17-r4.ebuild b/sys-apps/setserial/setserial-2.17-r4.ebuild
57 index e15f4fb..950bd57 100644
58 --- a/sys-apps/setserial/setserial-2.17-r4.ebuild
59 +++ b/sys-apps/setserial/setserial-2.17-r4.ebuild
60 @@ -22,6 +22,7 @@ src_unpack() {
61 epatch "${FILESDIR}"/${P}-headers.patch
62 epatch "${FILESDIR}"/${P}-build.patch
63 epatch "${FILESDIR}"/${P}-hayes-esp.patch #309883
64 + epatch "${FILESDIR}"/${P}-darwin.patch #541536
65 }
66
67 src_compile() {