Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/sslh/
Date: Wed, 28 Sep 2016 21:59:59
Message-Id: 1475099983.9cda6ca2c69cd22183d1e10f197ccdb13c3b10c1.soap@gentoo
1 commit: 9cda6ca2c69cd22183d1e10f197ccdb13c3b10c1
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 28 21:59:12 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 28 21:59:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cda6ca2
7
8 net-misc/sslh: Explicitly build using GNU99 C variant
9
10 Gentoo-bug: 595426
11 * Build using -std=gnu99 due to within-for-loop initializers
12 and __USE_XOPEN2K macro for struct addrinfo.
13
14 Package-Manager: portage-2.3.1
15
16 net-misc/sslh/sslh-1.18-r1.ebuild | 9 ++++++++-
17 1 file changed, 8 insertions(+), 1 deletion(-)
18
19 diff --git a/net-misc/sslh/sslh-1.18-r1.ebuild b/net-misc/sslh/sslh-1.18-r1.ebuild
20 index 15c62e0..cfff780 100644
21 --- a/net-misc/sslh/sslh-1.18-r1.ebuild
22 +++ b/net-misc/sslh/sslh-1.18-r1.ebuild
23 @@ -5,7 +5,7 @@
24 EAPI=6
25
26 MY_P="${PN}-v${PV}"
27 -inherit systemd toolchain-funcs
28 +inherit flag-o-matic systemd toolchain-funcs
29
30 DESCRIPTION="Port multiplexer - accept both HTTPS and SSH connections on the same port"
31 HOMEPAGE="http://www.rutschle.net/tech/sslh.shtml"
32 @@ -33,6 +33,13 @@ PATCHES=(
33 )
34
35 src_compile() {
36 + # On older versions of GCC, the default gnu89 variant
37 + # will reject within-for-loop initializers, bug #595426
38 + # Furthermore, we need to use the gnu variant (gnu99) instead
39 + # of the ISO (c99) variant, as we want the __USE_XOPEN2K macro
40 + # to be defined.
41 + append-cflags -std=gnu99
42 +
43 emake \
44 CC="$(tc-getCC)" \
45 USELIBCAP=$(usev caps) \