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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 31C39158094 for ; Tue, 20 Sep 2022 19:32:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5227FE0CC5; Tue, 20 Sep 2022 19:32:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38EF5E0CC5 for ; Tue, 20 Sep 2022 19:32:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 03CF234109F for ; Tue, 20 Sep 2022 19:32:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 86E785DB for ; Tue, 20 Sep 2022 19:32:17 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1663702318.81c8e794315833732c1e89eb18734b50b90c5276.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/files/, www-servers/gatling/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-servers/gatling/files/gatling-0.16-r4-0001-try-alloca-socket-fix-Wimplicit-int.patch www-servers/gatling/gatling-0.16-r4.ebuild X-VCS-Directories: www-servers/gatling/ www-servers/gatling/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 81c8e794315833732c1e89eb18734b50b90c5276 X-VCS-Branch: master Date: Tue, 20 Sep 2022 19:32:17 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9cec4431-910f-4f81-836b-33588aa8026c X-Archives-Hash: 93526fed1d321310b25ea6c53eee557e commit: 81c8e794315833732c1e89eb18734b50b90c5276 Author: Arsen Arsenović aarsen me> AuthorDate: Sun Sep 18 19:09:13 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Sep 20 19:31:58 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81c8e794 www-servers/gatling: add patches for Clang 16 Closes: https://bugs.gentoo.org/871495 Signed-off-by: Arsen Arsenović aarsen.me> Signed-off-by: Sam James gentoo.org> ...-0001-try-alloca-socket-fix-Wimplicit-int.patch | 41 ++++++++++++++ www-servers/gatling/gatling-0.16-r4.ebuild | 64 ++++++++++++++++++++++ 2 files changed, 105 insertions(+) diff --git a/www-servers/gatling/files/gatling-0.16-r4-0001-try-alloca-socket-fix-Wimplicit-int.patch b/www-servers/gatling/files/gatling-0.16-r4-0001-try-alloca-socket-fix-Wimplicit-int.patch new file mode 100644 index 000000000000..4b22b7a5c13d --- /dev/null +++ b/www-servers/gatling/files/gatling-0.16-r4-0001-try-alloca-socket-fix-Wimplicit-int.patch @@ -0,0 +1,41 @@ +From d1a28da112988112a37feb9050733717bfc176df Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= +Date: Sun, 18 Sep 2022 19:48:16 +0200 +Subject: [PATCH] try{alloca,socket}: fix -Wimplicit-int + +This warning becomes fatal with Clang 16. +--- +https://bugs.gentoo.org/871495 + tryalloca.c | 2 +- + trysocket.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tryalloca.c b/tryalloca.c +index c8927ab..b6e4f71 100644 +--- a/tryalloca.c ++++ b/tryalloca.c +@@ -5,7 +5,7 @@ + #include + #endif + +-main() { ++int main() { + char* c=alloca(23); + return c!=NULL; + } +diff --git a/trysocket.c b/trysocket.c +index a01f395..381b794 100644 +--- a/trysocket.c ++++ b/trysocket.c +@@ -6,7 +6,7 @@ + #include + #endif + +-main() { ++int main() { + int fd=socket(PF_INET,SOCK_STREAM,IPPROTO_TCP); + return fd!=-1; + } +-- +2.35.1 + diff --git a/www-servers/gatling/gatling-0.16-r4.ebuild b/www-servers/gatling/gatling-0.16-r4.ebuild new file mode 100644 index 000000000000..5562859bec4a --- /dev/null +++ b/www-servers/gatling/gatling-0.16-r4.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit toolchain-funcs + +DESCRIPTION="High performance web server" +HOMEPAGE="https://www.fefe.de/gatling/" +SRC_URI="https://www.fefe.de/gatling/${P}.tar.xz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="ssl diet" +REQUIRED_USE="ssl? ( !diet )" + +DEPEND=">=dev-libs/libowfat-0.32-r2[diet=] + virtual/libcrypt:= + diet? ( dev-libs/dietlibc ) + ssl? ( + dev-libs/openssl:0= + )" +RDEPEND="${DEPEND} + acct-group/gatling + acct-user/gatling + " + +PATCHES=( + "${FILESDIR}/${PN}-0.13-compile.patch" + "${FILESDIR}/${PN}-0.15-ar.patch" + "${FILESDIR}/${PN}-0.16-r4-0001-try-alloca-socket-fix-Wimplicit-int.patch" +) + +src_prepare() { + default + rm Makefile # leaves us with GNUmakefile +} + +src_compile() { + local DIET= + use diet && DIET='/usr/bin/diet' + + local targets='gatling' + use ssl && targets+=' tlsgatling' + + emake DIET="${DIET}" CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} -I${ESYSROOT}/usr/include/libowfat" \ + LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} +} + +src_install() { + doman gatling.1 + + newconfd "${FILESDIR}/gatling.confd" gatling + newinitd "${FILESDIR}/gatling.initd-3" gatling + dodoc README.{ftp,http} + + dobin gatling + use ssl && { + dodoc README.tls + dobin tlsgatling + } +}