From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ABA7B1381F1 for ; Wed, 28 Sep 2016 21:59:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CB39E08C7; Wed, 28 Sep 2016 21:59:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 00796E08C7 for ; Wed, 28 Sep 2016 21:59:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CF866340815 for ; Wed, 28 Sep 2016 21:59:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AEEEB7D2 for ; Wed, 28 Sep 2016 21:59:53 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1475099983.9cda6ca2c69cd22183d1e10f197ccdb13c3b10c1.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/sslh/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/sslh/sslh-1.18-r1.ebuild X-VCS-Directories: net-misc/sslh/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 9cda6ca2c69cd22183d1e10f197ccdb13c3b10c1 X-VCS-Branch: master Date: Wed, 28 Sep 2016 21:59:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ee08494e-c031-4662-ac2b-f4329f07ca57 X-Archives-Hash: 094fad89ea1f4dc0893c4bd2bdf40f1f commit: 9cda6ca2c69cd22183d1e10f197ccdb13c3b10c1 Author: David Seifert gentoo org> AuthorDate: Wed Sep 28 21:59:12 2016 +0000 Commit: David Seifert gentoo org> CommitDate: Wed Sep 28 21:59:43 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cda6ca2 net-misc/sslh: Explicitly build using GNU99 C variant Gentoo-bug: 595426 * Build using -std=gnu99 due to within-for-loop initializers and __USE_XOPEN2K macro for struct addrinfo. Package-Manager: portage-2.3.1 net-misc/sslh/sslh-1.18-r1.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/net-misc/sslh/sslh-1.18-r1.ebuild b/net-misc/sslh/sslh-1.18-r1.ebuild index 15c62e0..cfff780 100644 --- a/net-misc/sslh/sslh-1.18-r1.ebuild +++ b/net-misc/sslh/sslh-1.18-r1.ebuild @@ -5,7 +5,7 @@ EAPI=6 MY_P="${PN}-v${PV}" -inherit systemd toolchain-funcs +inherit flag-o-matic systemd toolchain-funcs DESCRIPTION="Port multiplexer - accept both HTTPS and SSH connections on the same port" HOMEPAGE="http://www.rutschle.net/tech/sslh.shtml" @@ -33,6 +33,13 @@ PATCHES=( ) src_compile() { + # On older versions of GCC, the default gnu89 variant + # will reject within-for-loop initializers, bug #595426 + # Furthermore, we need to use the gnu variant (gnu99) instead + # of the ISO (c99) variant, as we want the __USE_XOPEN2K macro + # to be defined. + append-cflags -std=gnu99 + emake \ CC="$(tc-getCC)" \ USELIBCAP=$(usev caps) \