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 C1953139083 for ; Tue, 21 Feb 2017 23:59:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 083CC21C039; Tue, 21 Feb 2017 23:59:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CA93521C039 for ; Tue, 21 Feb 2017 23:59:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8082234105A for ; Tue, 21 Feb 2017 23:59:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DA28F4F1A for ; Tue, 21 Feb 2017 23:59:19 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1487721556.ba81c88850a194ddccc120cc2f936e2bdbac24a8.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-systemd/files/, dev-python/python-systemd/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-systemd/files/233-xfail-bind.patch dev-python/python-systemd/python-systemd-233.ebuild X-VCS-Directories: dev-python/python-systemd/ dev-python/python-systemd/files/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: ba81c88850a194ddccc120cc2f936e2bdbac24a8 X-VCS-Branch: master Date: Tue, 21 Feb 2017 23:59:19 +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-Archives-Salt: 7612868b-d2b8-4d90-bfc3-66f6e7f50ca4 X-Archives-Hash: 1c61a24c13a12d2ab7da25bbf24d52a2 commit: ba81c88850a194ddccc120cc2f936e2bdbac24a8 Author: Mike Gilbert gentoo org> AuthorDate: Tue Feb 21 23:58:44 2017 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Tue Feb 21 23:59:16 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba81c888 dev-python/python-systemd: xfail test_notify_with_socket if bind() fails Bug: https://bugs.gentoo.org/610368 Package-Manager: Portage-2.3.3_p56, Repoman-2.3.1_p49 .../python-systemd/files/233-xfail-bind.patch | 31 ++++++++++++++++++++++ .../python-systemd/python-systemd-233.ebuild | 6 ++++- 2 files changed, 36 insertions(+), 1 deletion(-) 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 0000000000..bb0fb761bd --- /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 +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/python-systemd-233.ebuild b/dev-python/python-systemd/python-systemd-233.ebuild index fbca17a286..3550384d77 100644 --- a/dev-python/python-systemd/python-systemd-233.ebuild +++ b/dev-python/python-systemd/python-systemd-233.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -26,6 +26,10 @@ 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