dev-lang/python2.7: uprev to python 2.7.15
Uprev to 2.7.15, we apply the following changes from the 2.7.15 ebuild:
* new Copyright
* subscribe to libressl subslot
* stop applying -disable-nis.patch
* add --with-computed-gotos <- available since python 2.7.11
* cosmetic line continuation fixup
Changes since chromium 2.7.10 ebuild:
* patches dropped since 2.7.10:
* python-2.7.3-unique-semaphore-name.patch; in v2.7.15 as:
674a3cd20b Issue #24303: Fix random EEXIST upon multiprocessing semaphores creation with Linux PID namespaces enabled.
* python-2.7.17-getentropy.patch; in v2.7.15 as:
01bdbad3e9 Don't use getentropy() on Linux
* Use EPATCH_FORCE="yes" because gentoo's 2.7.15 patches do not follow
the canonical naming form.
Some notable differences from upstream:
* Still using EAPI=5 since building SDK does not yet allow EAPI=6.
* Includes Chromium Specific PGO impelementation
+ This CL also updates the Chromium specific PGO PROF_VERSION.
* Maintains existing ChromiumOS specifc changes
* python_disable_pyc
- this was removed in gentoo between 2.7.3 & 2.7.4, still useful?
* An ancient pyconfig link dating from when we imported 2.7.3-r3 in
commit 4cfb44a23528c4e05a87d79268cf473d6d2cbd87.
* An ancient workaround for an old $D/$ED bug w/binpkgs in portage from
commit d7685db02b573ae07ad7397f574801c5a2ee36d2
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chromium:736313
TEST=PreCQ and SDK tryjob
Change-Id: I61077f2b1a412bcde79386ca79d4b09353863e0c
Reviewed-on: https://chromium-review.googlesource.com/1627149
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
Commit-Ready: Daniel Kurtz <djkurtz@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Chris McDonald <cjmcdonald@chromium.org>
diff --git a/dev-lang/python/files/pydoc.init b/dev-lang/python/files/pydoc.init
old mode 100755
new mode 100644
index 19b63e3..f8e0563
--- a/dev-lang/python/files/pydoc.init
+++ b/dev-lang/python/files/pydoc.init
@@ -1,26 +1,24 @@
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Technologies, Inc.
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public Licence v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/files/pydoc.init,v 1.2 2008/06/30 15:10:28 hawking Exp $
-
-depend() {
- need net
-}
start() {
- if [ -z $PYDOC_PORT ] ; then
+ local pydoc_port="${@PYDOC_PORT_VARIABLE@-${PYDOC_PORT}}"
+
+ if [ -z "${pydoc_port}" ]; then
eerror "Port not set"
return 1
fi
- ebegin "Starting pydoc server on port $PYDOC_PORT"
+
+ ebegin "Starting pydoc server on port ${pydoc_port}"
start-stop-daemon --start --background --make-pidfile \
- --pidfile /var/run/pydoc.pid \
- --startas /usr/bin/pydoc -- -p $PYDOC_PORT
+ --pidfile /var/run/@PYDOC@.pid \
+ --exec /usr/bin/@PYDOC@ -- -p "${pydoc_port}"
eend $?
}
stop() {
ebegin "Stopping pydoc server"
- start-stop-daemon --stop --quiet --pidfile /var/run/pydoc.pid
+ start-stop-daemon --stop --quiet --pidfile /var/run/@PYDOC@.pid
eend $?
}