public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexys Jacob" <ultrabug@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/uwsgi/
Date: Wed, 10 Oct 2018 14:23:27 +0000 (UTC)	[thread overview]
Message-ID: <1539181372.8f653af71bcb6e203cd26ab92f55e90d02380edb.ultrabug@gentoo> (raw)

commit:     8f653af71bcb6e203cd26ab92f55e90d02380edb
Author:     Ultrabug <ultrabug <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 10 14:10:59 2018 +0000
Commit:     Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
CommitDate: Wed Oct 10 14:22:52 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f653af7

www-servers/uwsgi: multiple ebuild clean up

drop obsolete ruby22 target, closes #667540
drop obsolete version dep on mono-4, closes #645906
drop apache2 modules installation, closes #650776
drop useless dependency on gevent when asyncio is selected
fix building of the missing greenlet plugin when asyncio or gevent are used

Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>
Package-Manager: Portage-2.3.50, Repoman-2.3.11

 ...gi-2.0.17.1.ebuild => uwsgi-2.0.17.1-r1.ebuild} | 49 ++++++++--------------
 www-servers/uwsgi/uwsgi-2.0.17.1.ebuild            |  4 +-
 www-servers/uwsgi/uwsgi-2.0.17.ebuild              |  4 +-
 3 files changed, 21 insertions(+), 36 deletions(-)

diff --git a/www-servers/uwsgi/uwsgi-2.0.17.1.ebuild b/www-servers/uwsgi/uwsgi-2.0.17.1-r1.ebuild
similarity index 89%
copy from www-servers/uwsgi/uwsgi-2.0.17.1.ebuild
copy to www-servers/uwsgi/uwsgi-2.0.17.1-r1.ebuild
index 623312528d1..248929d1ca5 100644
--- a/www-servers/uwsgi/uwsgi-2.0.17.1.ebuild
+++ b/www-servers/uwsgi/uwsgi-2.0.17.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy )
 PYTHON_REQ_USE="threads(+)"
 
 RUBY_OPTIONAL="yes"
-USE_RUBY="ruby22 ruby23 ruby24"
+USE_RUBY="ruby23 ruby24 ruby25"
 
 PHP_EXT_INI="no"
 PHP_EXT_NAME="dummy"
@@ -16,7 +16,7 @@ USE_PHP="php5-6 php7-0 php7-1 php7-2" # deps must be registered separately below
 
 MY_P="${P/_/-}"
 
-inherit apache-module eutils flag-o-matic multilib pax-utils php-ext-source-r3 python-r1 ruby-ng versionator
+inherit eutils flag-o-matic multilib pax-utils php-ext-source-r3 python-r1 ruby-ng versionator
 
 DESCRIPTION="uWSGI server for Python web applications"
 HOMEPAGE="http://projects.unbit.it/uwsgi/"
@@ -69,7 +69,7 @@ REQUIRED_USE="|| ( ${LANG_SUPPORT_SIMPLE[@]} ${LANG_SUPPORT_EXTENDED[@]} )
 	uwsgi_plugins_router_xmldir? ( xml !expat )
 	pypy? ( python_targets_python2_7 )
 	python? ( ${PYTHON_REQUIRED_USE} )
-	python_asyncio? ( || ( python_targets_python3_4 python_targets_python3_5 python_targets_python3_6 python_targets_python3_7 ) python_gevent )
+	python_asyncio? ( || ( python_targets_python3_4 python_targets_python3_5 python_targets_python3_6 python_targets_python3_7 ) )
 	python_gevent? ( python )
 	expat? ( xml )"
 
@@ -108,7 +108,7 @@ CDEPEND="sys-libs/zlib
 	uwsgi_plugins_xslt? ( dev-libs/libxslt )
 	go? ( dev-lang/go:=[gccgo] )
 	lua? ( dev-lang/lua:= )
-	mono? ( =dev-lang/mono-4* )
+	mono? ( dev-lang/mono:= )
 	perl? ( dev-lang/perl:= )
 	php? (
 		php_targets_php5-6? ( dev-lang/php:5.6[embed] )
@@ -118,6 +118,7 @@ CDEPEND="sys-libs/zlib
 	)
 	pypy? ( virtual/pypy )
 	python? ( ${PYTHON_DEPS} )
+	python_asyncio? ( virtual/python-greenlet[${PYTHON_USEDEP}] )
 	python_gevent? ( >=dev-python/gevent-1.3.5[${PYTHON_USEDEP}] )
 	ruby? ( $(ruby_implementations_depend) )"
 DEPEND="${CDEPEND}
@@ -126,20 +127,16 @@ RDEPEND="${CDEPEND}
 	selinux? ( sec-policy/selinux-uwsgi )
 	uwsgi_plugins_rrdtool? ( net-analyzer/rrdtool )"
 
-want_apache2
-
 S="${WORKDIR}/${MY_P}"
-APXS2_S="${S}/apache2"
-APACHE2_MOD_CONF="42_mod_uwsgi-r2 42_mod_uwsgi"
 
 src_unpack() {
+	echo ${PYTHON_USEDEP}
 	default
 }
 
 pkg_setup() {
 	python_setup
 	use ruby && ruby-ng_pkg_setup
-	depend.apache_pkg_setup
 }
 
 src_prepare() {
@@ -251,7 +248,7 @@ python_compile_plugins() {
 	${PYTHON} uwsgiconfig.py --plugin plugins/python gentoo ${EPYV} || die "building plugin for ${EPYTHON} failed"
 
 	if use python_asyncio ; then
-		if [[ "${PYV}" == "34" || "${PYV}" == "35" ]] ; then
+		if [[ "${PYV}" != "27" ]] ; then
 			${PYTHON} uwsgiconfig.py --plugin plugins/asyncio gentoo asyncio${PYV} || die "building plugin for asyncio-support in ${EPYTHON} failed"
 		fi
 	fi
@@ -260,6 +257,10 @@ python_compile_plugins() {
 		${PYTHON} uwsgiconfig.py --plugin plugins/gevent gentoo gevent${PYV} || die "building plugin for gevent-support in ${EPYTHON} failed"
 	fi
 
+	if use python_gevent || use python_asyncio; then
+			${PYTHON} uwsgiconfig.py --plugin plugins/greenlet gentoo greenlet${PYV} || die "building plugin for greenlet-support in ${EPYTHON} failed"
+	fi
+
 	if use pypy ; then
 		if [[ "${PYV}" == "27" ]] ; then
 			# TODO: do some proper patching ? The wiki didn't help... I gave up for now.
@@ -302,13 +303,6 @@ src_compile() {
 	if use ruby ; then
 		ruby-ng_src_compile
 	fi
-
-	if use apache2 ; then
-		for m in proxy_uwsgi Ruwsgi uwsgi ; do
-			APXS2_ARGS="-c mod_${m}.c"
-			apache-module_src_compile
-		done
-	fi
 }
 
 src_install() {
@@ -335,13 +329,6 @@ src_install() {
 		python_foreach_impl python_domodule uwsgidecorators.py
 	fi
 
-	if use apache2; then
-		for m in proxy_uwsgi Ruwsgi uwsgi ; do
-			APACHE2_MOD_FILE="${APXS2_S}/.libs/mod_${m}.so"
-			apache-module_src_install
-		done
-	fi
-
 	newinitd "${FILESDIR}"/uwsgi.initd-r7 uwsgi
 	newconfd "${FILESDIR}"/uwsgi.confd-r4 uwsgi
 	keepdir /etc/"${PN}".d
@@ -350,13 +337,11 @@ src_install() {
 
 pkg_postinst() {
 	if use apache2 ; then
-		elog "Three Apache modules have been installed: mod_proxy_uwsgi, mod_uwsgi and mod_Ruwsgi."
-		elog "You can enable them with -D PROXY_UWSGI, -DUWSGI or -DRUWSGI in /etc/conf.d/apache2."
-		elog "mod_uwsgi and mod_Ruwsgi have the same configuration interface and define the same symbols."
-		elog "Therefore you can enable only one of them at a time."
-		elog "mod_uwsgi is commercially supported by Unbit and stable but a bit hacky."
-		elog "mod_Ruwsgi is newer and more Apache-API friendly but not commercially supported."
-		elog "mod_proxy_uwsgi is a proxy module, considered stable and is now the recommended module."
+		ewarn "As reported on bug #650776 [1], Apache module mod_proxy_uwsgi"
+		ewarn "is being transferred to upstream Apache since 2.4.30, see [2]."
+		ewarn "We therefore do not build them any more."
+		ewarn "    [1] https://bugs.gentoo.org/650776"
+		ewarn "    [2] https://github.com/unbit/uwsgi/issues/1636"
 	fi
 
 	elog "Append the following options to the uwsgi call to load the respective language plugin:"

diff --git a/www-servers/uwsgi/uwsgi-2.0.17.1.ebuild b/www-servers/uwsgi/uwsgi-2.0.17.1.ebuild
index 623312528d1..54a77a5c73b 100644
--- a/www-servers/uwsgi/uwsgi-2.0.17.1.ebuild
+++ b/www-servers/uwsgi/uwsgi-2.0.17.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy )
 PYTHON_REQ_USE="threads(+)"
 
 RUBY_OPTIONAL="yes"
-USE_RUBY="ruby22 ruby23 ruby24"
+USE_RUBY="ruby23 ruby24"
 
 PHP_EXT_INI="no"
 PHP_EXT_NAME="dummy"

diff --git a/www-servers/uwsgi/uwsgi-2.0.17.ebuild b/www-servers/uwsgi/uwsgi-2.0.17.ebuild
index 1ffb13273bc..799cf972f8b 100644
--- a/www-servers/uwsgi/uwsgi-2.0.17.ebuild
+++ b/www-servers/uwsgi/uwsgi-2.0.17.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
 PYTHON_REQ_USE="threads(+)"
 
 RUBY_OPTIONAL="yes"
-USE_RUBY="ruby22 ruby23 ruby24"
+USE_RUBY="ruby23 ruby24"
 
 PHP_EXT_INI="no"
 PHP_EXT_NAME="dummy"


             reply	other threads:[~2018-10-10 14:23 UTC|newest]

Thread overview: 96+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-10 14:23 Alexys Jacob [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-28 15:35 [gentoo-commits] repo/gentoo:master commit in: www-servers/uwsgi/ Sam James
2024-09-27 18:52 Sam James
2024-05-01 23:38 Sam James
2024-05-01 17:01 Sam James
2024-05-01 16:48 Sam James
2023-12-08 17:10 Sam James
2023-12-08 17:10 Sam James
2023-12-08 16:54 Sam James
2023-12-08 16:49 Michał Górny
2023-05-01  5:41 Arthur Zamarin
2023-05-01  5:41 Arthur Zamarin
2023-05-01  1:43 Sam James
2023-04-13  3:03 Sam James
2022-12-24  8:45 Sam James
2022-12-20 14:26 Jakov Smolić
2022-03-23  0:45 Sam James
2022-02-04 19:28 Michał Górny
2022-01-18  9:51 Michał Górny
2022-01-18  9:51 Michał Górny
2021-11-22 15:33 Alexys Jacob
2021-09-25 19:08 Sam James
2021-08-18 14:28 Sam James
2021-08-07  5:36 Sam James
2021-08-01  7:41 Sam James
2021-08-01  7:36 Sam James
2021-07-16  6:50 Agostino Sarubbo
2021-07-02  7:23 Hans de Graaff
2021-06-25 19:32 Sam James
2021-04-30 13:01 Mikle Kolyada
2021-03-04 11:48 Alexys Jacob
2021-01-23 22:51 Sam James
2021-01-23  4:20 Sam James
2021-01-23  4:09 Sam James
2020-10-07  7:51 Alexys Jacob
2020-10-06 16:57 Sam James
2020-10-04 17:06 Sam James
2020-09-20 22:40 Thomas Deutschmann
2020-08-17 10:28 Alexys Jacob
2020-08-17 10:14 Alexys Jacob
2020-08-02 12:03 Michał Górny
2020-06-09 10:28 Alexys Jacob
2020-06-08  6:41 Michał Górny
2020-06-08  4:42 Joonas Niilola
2020-05-30 17:52 Matthew Thode
2020-05-25 12:12 Mikle Kolyada
2020-05-20  7:15 Alexys Jacob
2020-05-16 21:28 David Seifert
2020-05-11 16:51 Alexys Jacob
2019-12-30 12:59 Michał Górny
2019-10-17  8:18 Alexys Jacob
2019-10-12 18:12 Mikle Kolyada
2019-08-03  6:29 Hans de Graaff
2019-08-03  6:29 Hans de Graaff
2019-04-16 17:13 Alexys Jacob
2019-03-21 18:12 Michał Górny
2019-02-11 22:25 Alexys Jacob
2019-02-11 22:25 Alexys Jacob
2019-01-02 11:39 Justin Lecher
2018-07-18  9:41 Alexys Jacob
2018-04-25 13:40 Alexys Jacob
2018-03-29 15:19 Thomas Deutschmann
2018-03-26 19:58 Mikle Kolyada
2018-03-01 16:08 Alexys Jacob
2018-02-14 15:05 Alexys Jacob
2018-02-14 14:17 Jason Zaman
2018-02-11 15:50 Alexys Jacob
2018-02-06 15:10 Thomas Deutschmann
2018-01-05  8:48 Alexys Jacob
2017-10-01  6:48 Hans de Graaff
2017-07-31 14:52 Alexys Jacob
2017-06-05  7:29 Alexys Jacob
2017-06-04 10:42 Agostino Sarubbo
2017-06-02 20:02 Agostino Sarubbo
2017-04-06 12:46 Alexys Jacob
2017-04-06 12:46 Alexys Jacob
2017-02-13  6:59 Zac Medico
2017-02-10 13:21 Alexys Jacob
2016-12-20  9:08 Agostino Sarubbo
2016-12-20  8:52 Agostino Sarubbo
2016-12-12 20:21 Mike Gilbert
2016-12-12 20:21 Mike Gilbert
2016-10-04 16:19 Alexys Jacob
2016-09-26 12:22 Fabian Groffen
2016-05-10 11:05 Alexys Jacob
2016-05-10 11:05 Alexys Jacob
2016-01-03  8:25 Jason Zaman
2015-12-31 13:58 Alexys Jacob
2015-12-31 13:55 Alexys Jacob
2015-12-31 13:45 Alexys Jacob
2015-12-06 14:22 Michał Górny
2015-11-11 17:27 Justin Lecher
2015-10-12  1:27 Anthony G. Basile
2015-10-07 12:20 Alexys Jacob
2015-10-07 10:35 Alexys Jacob
2015-08-25  7:50 Alexys Jacob

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1539181372.8f653af71bcb6e203cd26ab92f55e90d02380edb.ultrabug@gentoo \
    --to=ultrabug@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox