summaryrefslogtreecommitdiff
path: root/dev-python/python-systemd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/python-systemd
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/python-systemd')
-rw-r--r--dev-python/python-systemd/Manifest8
-rw-r--r--dev-python/python-systemd/files/233-xfail-bind.patch31
-rw-r--r--dev-python/python-systemd/metadata.xml10
-rw-r--r--dev-python/python-systemd/python-systemd-230.ebuild25
-rw-r--r--dev-python/python-systemd/python-systemd-233.ebuild36
5 files changed, 110 insertions, 0 deletions
diff --git a/dev-python/python-systemd/Manifest b/dev-python/python-systemd/Manifest
new file mode 100644
index 000000000000..6622807b672b
--- /dev/null
+++ b/dev-python/python-systemd/Manifest
@@ -0,0 +1,8 @@
+AUX 233-xfail-bind.patch 1077 SHA256 9a829cf2a2644b1d7cb8c175a6a30f9c8184666e298cb3c8a6bb6662de261725 SHA512 63a5325812bb3530a8681b006fc66630a33cc6740ed63171025d4406a68783a3fba0b55141fd9620f049f2225191ce9cffd3d91a9d1c5cef7af94ec82b2ebd6a WHIRLPOOL ad65b428d3de3acb10b5b2a9eba4e93081c95f5e2955b915eb160647ac9d2598b227944ec6096c7130d38d3227f9cdb6d1f4b377c3b542950699dafe4123a384
+DIST python-systemd-230.tar.gz 39329 SHA256 656a83ff695f5de7d63411a86ea38601ad5a918595eebd0817d7b8e68642c64d SHA512 3c26c59b9005a45c3aeea8a6838ece9b5aa27dd7394ebe75319c1536b52462a847f18a79fdc8cf3bf6df9a70af63c84d5ff66a9587519dd9a006cc3df4966ce8 WHIRLPOOL 0de7ff6919bdf1c6c9cdafd71944801396157281fae1583bb060da4cf800369f97bb0c9f484f81635ed8b2e170db2bbbecf59adac0470a910167333f93c607e6
+DIST python-systemd-233.tar.gz 49680 SHA256 efb5c440d7ca05ce1fce48c14508177c0002663ea933e16eaf88105f1ad8dfe7 SHA512 92a6cc7123db586e5ae5fbb56e5065b17be9da47ced9dbc5920d80b7db7f56d15b127e72d30889c5b24b119724a33f68be1ef322529620ed95b0f95707e4c2ab WHIRLPOOL a564098a7362fa48b50ac5a28111746d3a35a6602bf313d04f0e5c63078b8c0e2c84e7e648c572dd09ac13122a709bb4f6d9eb2548e08f75a367bd363a594fb1
+EBUILD python-systemd-230.ebuild 625 SHA256 96bfcd881c18e4e58ee8e4cf23fdea37bc19baf180ef2457ac347f8856e9d903 SHA512 70699e3758df3e05605b38012410af00885dd5c2d4e0bc406e8449d17770e74ef9e1f77e1accfa987253cfec624408c04cd7e128b67580a02ea0da19e73906f5 WHIRLPOOL 5914e41aa1964f6dc908743a069d4051ca97d8c4bd78f260b98c7c5e70d1aa026cb830723c65ded1f114adc1dc3a0b730a132ead5583ea931ffee158f4937068
+EBUILD python-systemd-233.ebuild 824 SHA256 b5d15549fd2066bc3e32eb96d97a6d18ec90ddc86826b0d7ea5f02c6670e232a SHA512 5db0b6d710e58a4729d5ffa4c3d1bb6af42f0efce58fceb871bc95cec2bf8e26ce7b406860bc145d782ae6c6fae10d0c6af3ccd4b35a148d6662466ce95e7784 WHIRLPOOL ad10be9af4042a7204a8d1da2a1749daf086b45200831463eb826ebc3134d2af7792c31f4f268859610711e2bb9c53843518c2086d6bfad312e6ab669239950c
+MISC ChangeLog 5132 SHA256 22354304eee6227f92a5c7a914f10eb93257fc4e0ab03230269e7c13e290b4b2 SHA512 001a1e8c26943650f393623a9b14d33b92c040256111a24c4ba3be06e35ba15655c5a937826df24d879332180237a168e29b6a7f6957aff9deec12204b777a8a WHIRLPOOL 8bcdca3d3736114d0edd5957523e81cd629e44c03d8a9650e880833acb9471b3fe6b9bf49833da82ace4be5fddf0bbcb4b4fee00184d9e95ae6318d9db540e98
+MISC ChangeLog-2015 543 SHA256 570be7466614d3cf54bc9380d46b8a8bc0d83847b7bd876b502f7152e4aa44ac SHA512 72246e55726c752864cac8a37de23aff67c3158c6ce8d7d9aead8d829aea97eeea013eee4475fd00b367974ce2278b91b6ff7968d908a2d005f468239df4959c WHIRLPOOL 6b25f1a474f78782b7b4c44288c0f188a4745ca0834fc6d56d3d1e4e67c6b0d14f51e0753e86e114fc19bec6a934e12757db7abfd8d74a6b56f577ef3c230885
+MISC metadata.xml 306 SHA256 cf7acf7bb77fa75b6716621d587ceba0864e083a6b96d6966236566e202e0cb1 SHA512 ca004982cde4fe1bcbd821109ec70f464a2014a2c0aa77f9976eedaec78ad68dc8d39e2e2f7023192bf807307e08259548f1ebb298ea7f3654c0b8658fba97f9 WHIRLPOOL a531166997ef2d4f0c576604a89032a74858e58617cca5e1b890c00f77d58bb9221853848d79860d050146e244a1b6180105484af999f46fcc1226c415e49c4d
diff --git a/dev-python/python-systemd/files/233-xfail-bind.patch b/dev-python/python-systemd/files/233-xfail-bind.patch
new file mode 100644
index 000000000000..bb0fb761bd59
--- /dev/null
+++ b/dev-python/python-systemd/files/233-xfail-bind.patch
@@ -0,0 +1,31 @@
+From 1c0d575f7c058f227d27b1cb92d3936d0c170a5f Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Tue, 21 Feb 2017 17:34:28 -0500
+Subject: [PATCH] test_daemon: xfail test_notify_with_socket if bind() fails
+
+This bind() call may fail if TMPDIR is too long.
+
+Bug: https://bugs.gentoo.org/610368
+---
+ systemd/test/test_daemon.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/systemd/test/test_daemon.py b/systemd/test/test_daemon.py
+index e827e1d..7733552 100644
+--- a/systemd/test/test_daemon.py
++++ b/systemd/test/test_daemon.py
+@@ -238,7 +238,10 @@ def test_notify_bad_socket():
+ def test_notify_with_socket(tmpdir):
+ path = tmpdir.join('socket').strpath
+ sock = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
+- sock.bind(path)
++ try:
++ sock.bind(path)
++ except socket.error as e:
++ pytest.xfail('failed to bind socket (%s)' % e)
+ # SO_PASSCRED is not defined in python2.7
+ SO_PASSCRED = getattr(socket, 'SO_PASSCRED', 16)
+ sock.setsockopt(socket.SOL_SOCKET, SO_PASSCRED, 1)
+--
+2.11.1
+
diff --git a/dev-python/python-systemd/metadata.xml b/dev-python/python-systemd/metadata.xml
new file mode 100644
index 000000000000..8986208c5b02
--- /dev/null
+++ b/dev-python/python-systemd/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>systemd@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">systemd/python-systemd</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/python-systemd/python-systemd-230.ebuild b/dev-python/python-systemd/python-systemd-230.ebuild
new file mode 100644
index 000000000000..c07c22224342
--- /dev/null
+++ b/dev-python/python-systemd/python-systemd-230.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python module for native access to the systemd facilities"
+HOMEPAGE="https://github.com/systemd/python-systemd"
+SRC_URI="https://github.com/systemd/python-systemd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ppc ppc64 sparc x86"
+IUSE=""
+
+DEPEND="sys-apps/systemd"
+RDEPEND="${DEPEND}
+ !sys-apps/systemd[python(-)]"
+
+src_compile() {
+ emake systemd/id128-constants.h
+ distutils-r1_src_compile
+}
diff --git a/dev-python/python-systemd/python-systemd-233.ebuild b/dev-python/python-systemd/python-systemd-233.ebuild
new file mode 100644
index 000000000000..080d0a4a9fe3
--- /dev/null
+++ b/dev-python/python-systemd/python-systemd-233.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python module for native access to the systemd facilities"
+HOMEPAGE="https://github.com/systemd/python-systemd"
+SRC_URI="https://github.com/systemd/python-systemd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ppc ppc64 sparc x86"
+IUSE="test"
+
+COMMON_DEPEND="
+ sys-apps/systemd:0=
+"
+DEPEND="${COMMON_DEPEND}
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )
+"
+RDEPEND="${COMMON_DEPEND}
+ !sys-apps/systemd[python(-)]
+"
+
+PATCHES=(
+ "${FILESDIR}"/233-xfail-bind.patch
+)
+
+python_test() {
+ pushd "${BUILD_DIR}/lib" > /dev/null || die
+ "${EPYTHON}" -m pytest -v . || die
+ popd > /dev/null || die
+}