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 B8D471382C5 for ; Sat, 28 Nov 2020 23:10:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7BD9DE088F; Sat, 28 Nov 2020 23:10:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 399AEE0891 for ; Sat, 28 Nov 2020 23:10:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AA0C3335D58 for ; Sat, 28 Nov 2020 23:10:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 25D0847F for ; Sat, 28 Nov 2020 23:10:01 +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: <1606604961.4b9142d25d28c969e823177916b5319a8f808a7b.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/sniproxy/files/, www-servers/sniproxy/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-servers/sniproxy/files/sniproxy-0.6.0-fno-common.patch www-servers/sniproxy/sniproxy-0.6.0-r1.ebuild www-servers/sniproxy/sniproxy-0.6.0.ebuild X-VCS-Directories: www-servers/sniproxy/ www-servers/sniproxy/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 4b9142d25d28c969e823177916b5319a8f808a7b X-VCS-Branch: master Date: Sat, 28 Nov 2020 23:10:01 +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: 222c6b0f-a502-49c7-81fd-ec1591c56497 X-Archives-Hash: 29983be3a6688a7a75c063151f757392 commit: 4b9142d25d28c969e823177916b5319a8f808a7b Author: Jakov Smolic sartura hr> AuthorDate: Sat Nov 28 23:09:21 2020 +0000 Commit: David Seifert gentoo org> CommitDate: Sat Nov 28 23:09:21 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b9142d2 www-servers/sniproxy: fix build with gcc-10, port to GLEP 81 Closes: https://bugs.gentoo.org/707530 Package-Manager: Portage-3.0.9, Repoman-3.0.1 Signed-off-by: Jakov Smolic sartura.hr> Signed-off-by: David Seifert gentoo.org> .../sniproxy/files/sniproxy-0.6.0-fno-common.patch | 24 +++++++++++++++ ...proxy-0.6.0.ebuild => sniproxy-0.6.0-r1.ebuild} | 36 +++++++++------------- 2 files changed, 39 insertions(+), 21 deletions(-) diff --git a/www-servers/sniproxy/files/sniproxy-0.6.0-fno-common.patch b/www-servers/sniproxy/files/sniproxy-0.6.0-fno-common.patch new file mode 100644 index 00000000000..f718bfca736 --- /dev/null +++ b/www-servers/sniproxy/files/sniproxy-0.6.0-fno-common.patch @@ -0,0 +1,24 @@ +Taken from: https://github.com/dlundquist/sniproxy/commit/822bb80df9b7b345cc9eba55df74a07b498819ba +Author: Pierre-Olivier Mercier + +--- a/src/http.h ++++ b/src/http.h +@@ -29,6 +29,6 @@ + #include + #include "protocol.h" + +-const struct Protocol *const http_protocol; ++extern const struct Protocol *const http_protocol; + + #endif +--- a/src/tls.h ++++ b/src/tls.h +@@ -28,6 +28,6 @@ + + #include "protocol.h" + +-const struct Protocol *const tls_protocol; ++extern const struct Protocol *const tls_protocol; + + #endif + diff --git a/www-servers/sniproxy/sniproxy-0.6.0.ebuild b/www-servers/sniproxy/sniproxy-0.6.0-r1.ebuild similarity index 82% rename from www-servers/sniproxy/sniproxy-0.6.0.ebuild rename to www-servers/sniproxy/sniproxy-0.6.0-r1.ebuild index 458f1e8ac79..9dc8e5a03ef 100644 --- a/www-servers/sniproxy/sniproxy-0.6.0.ebuild +++ b/www-servers/sniproxy/sniproxy-0.6.0-r1.ebuild @@ -1,15 +1,14 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit autotools user +inherit autotools -if [[ ${PV} == 9999* ]]; then +if [[ ${PV} == *9999 ]]; then EGIT_REPO_URI="https://github.com/dlundquist/sniproxy.git" EGIT_BRANCH="master" inherit git-r3 - KEYWORDS="" else SRC_URI="https://github.com/dlundquist/sniproxy/archive/${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64 ~x86" @@ -24,18 +23,18 @@ IUSE="+dns +largefile rfc3339 test" RESTRICT="!test? ( test )" RDEPEND=" + acct-group/sniproxy + acct-user/sniproxy dev-libs/libev >=dev-libs/libpcre-3 - dns? ( net-libs/udns ) -" + dns? ( net-libs/udns )" +DEPEND="${RDEPEND} + test? ( net-misc/curl )" BDEPEND=" - ${RDEPEND} sys-devel/gettext - virtual/pkgconfig -" -DEPEND=" - test? ( net-misc/curl ) -" + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) src_prepare() { default @@ -55,6 +54,10 @@ src_configure() { econf "${my_conf[@]}" } +src_test() { + emake -j1 check +} + src_install() { default @@ -72,12 +75,3 @@ src_install() { doman man/sniproxy.8 doman man/sniproxy.conf.5 } - -src_test() { - emake -j1 check -} - -pkg_postinst() { - enewgroup "${PN}" - enewuser "${PN}" -1 -1 /var/lib/sniproxy "${PN}" -}