1 |
commit: 7394650daff30599077ed9d9544b05f8c90dae21 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 19 14:59:49 2015 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 19 15:03:08 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7394650d |
7 |
|
8 |
dev-python/python-systemd: Bump to 231 |
9 |
|
10 |
Package-Manager: portage-2.2.26_p32 |
11 |
|
12 |
dev-python/python-systemd/Manifest | 1 + |
13 |
.../files/231-test_daemon-SO_PASSCRED.patch | 28 +++++++++++++++++ |
14 |
.../python-systemd/python-systemd-231.ebuild | 35 ++++++++++++++++++++++ |
15 |
3 files changed, 64 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/python-systemd/Manifest b/dev-python/python-systemd/Manifest |
18 |
index 0850f1f..57c069e 100644 |
19 |
--- a/dev-python/python-systemd/Manifest |
20 |
+++ b/dev-python/python-systemd/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST python-systemd-230.tar.gz 39329 SHA256 656a83ff695f5de7d63411a86ea38601ad5a918595eebd0817d7b8e68642c64d SHA512 3c26c59b9005a45c3aeea8a6838ece9b5aa27dd7394ebe75319c1536b52462a847f18a79fdc8cf3bf6df9a70af63c84d5ff66a9587519dd9a006cc3df4966ce8 WHIRLPOOL 0de7ff6919bdf1c6c9cdafd71944801396157281fae1583bb060da4cf800369f97bb0c9f484f81635ed8b2e170db2bbbecf59adac0470a910167333f93c607e6 |
23 |
+DIST python-systemd-231.tar.gz 44430 SHA256 2c9cf53d041374898beead0c6f3b042c7d5b52425e6eb4d4b3c583d7eac12eea SHA512 b1567bd8e99025cc3b5aaeaab6539af8a5307068c403c0f1628bebc518ded80d0843b804244d1f252c858229f7f9578ce9aa988ded25f55999b0d355ce8a3455 WHIRLPOOL 4a1e05687080e8613ae607f837f39672727e60fc7bca1bca445f46413ce16280ab3bfaa30e969414d0da41f06420b7ef59043d2624dc50342cbe2d6df6add449 |
24 |
|
25 |
diff --git a/dev-python/python-systemd/files/231-test_daemon-SO_PASSCRED.patch b/dev-python/python-systemd/files/231-test_daemon-SO_PASSCRED.patch |
26 |
new file mode 100644 |
27 |
index 0000000..d62f34e |
28 |
--- /dev/null |
29 |
+++ b/dev-python/python-systemd/files/231-test_daemon-SO_PASSCRED.patch |
30 |
@@ -0,0 +1,28 @@ |
31 |
+From a129428dcd92095dc5f3c7ac4b4f096181129063 Mon Sep 17 00:00:00 2001 |
32 |
+From: Mike Gilbert <floppym@g.o> |
33 |
+Date: Sat, 19 Dec 2015 09:42:49 -0500 |
34 |
+Subject: [PATCH] test_daemon: Define a default value for SO_PASSCRED |
35 |
+ |
36 |
+The socket module seems to be missing this in python2.7. |
37 |
+--- |
38 |
+ systemd/test/test_daemon.py | 4 +++- |
39 |
+ 1 file changed, 3 insertions(+), 1 deletion(-) |
40 |
+ |
41 |
+diff --git a/systemd/test/test_daemon.py b/systemd/test/test_daemon.py |
42 |
+index e055048..8c776d5 100644 |
43 |
+--- a/systemd/test/test_daemon.py |
44 |
++++ b/systemd/test/test_daemon.py |
45 |
+@@ -228,7 +228,9 @@ def test_notify_with_socket(tmpdir): |
46 |
+ path = tmpdir.join('socket').strpath |
47 |
+ sock = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) |
48 |
+ sock.bind(path) |
49 |
+- sock.setsockopt(socket.SOL_SOCKET, socket.SO_PASSCRED, 1) |
50 |
++ # SO_PASSCRED is not defined in python2.7 |
51 |
++ SO_PASSCRED = getattr(socket, 'SO_PASSCRED', 16) |
52 |
++ sock.setsockopt(socket.SOL_SOCKET, SO_PASSCRED, 1) |
53 |
+ os.environ['NOTIFY_SOCKET'] = path |
54 |
+ |
55 |
+ assert notify('READY=1') == True |
56 |
+-- |
57 |
+2.6.4 |
58 |
+ |
59 |
|
60 |
diff --git a/dev-python/python-systemd/python-systemd-231.ebuild b/dev-python/python-systemd/python-systemd-231.ebuild |
61 |
new file mode 100644 |
62 |
index 0000000..1b1f6e4 |
63 |
--- /dev/null |
64 |
+++ b/dev-python/python-systemd/python-systemd-231.ebuild |
65 |
@@ -0,0 +1,35 @@ |
66 |
+# Copyright 1999-2015 Gentoo Foundation |
67 |
+# Distributed under the terms of the GNU General Public License v2 |
68 |
+# $Id$ |
69 |
+ |
70 |
+EAPI=5 |
71 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) |
72 |
+ |
73 |
+inherit distutils-r1 |
74 |
+ |
75 |
+DESCRIPTION="Python module for native access to the systemd facilities" |
76 |
+HOMEPAGE="https://github.com/systemd/python-systemd" |
77 |
+SRC_URI="https://github.com/systemd/python-systemd/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
78 |
+ |
79 |
+LICENSE="LGPL-2.1" |
80 |
+SLOT="0" |
81 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86" |
82 |
+IUSE="test" |
83 |
+ |
84 |
+COMMON_DEPEND=" |
85 |
+ sys-apps/systemd:0= |
86 |
+" |
87 |
+DEPEND="${COMMON_DEPEND} |
88 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
89 |
+" |
90 |
+RDEPEND="${COMMON_DEPEND} |
91 |
+ !sys-apps/systemd[python(-)] |
92 |
+" |
93 |
+ |
94 |
+PATCHES=( |
95 |
+ "${FILESDIR}"/231-test_daemon-SO_PASSCRED.patch |
96 |
+) |
97 |
+ |
98 |
+python_test() { |
99 |
+ py.test "${BUILD_DIR}/lib" || die |
100 |
+} |