commit:     cbcbfee63a0734ad02c17b9bc12a0680986024f7
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  2 12:25:25 2022 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Wed Mar  2 12:26:16 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbcbfee6

dev-python/python-slip: treeclean

Closes: https://bugs.gentoo.org/832366
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 dev-python/python-slip/Manifest                    |  1 -
 .../files/python-slip-0.6.5-no-selinux.patch       | 93 ----------------------
 dev-python/python-slip/metadata.xml                |  8 --
 dev-python/python-slip/python-slip-0.6.5-r1.ebuild | 45 -----------
 profiles/package.mask                              |  6 --
 5 files changed, 153 deletions(-)

diff --git a/dev-python/python-slip/Manifest b/dev-python/python-slip/Manifest
deleted file mode 100644
index 73a66ea55073..000000000000
--- a/dev-python/python-slip/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST python-slip-0.6.5.tar.bz2 25996 BLAKE2B 
f2c512274c35a451aa5a97f8c8b16d117edc34901cb2cc51d7d99314eec9c2e90c95019290ef9a35511b62a822471f40eac8c4228c0094bd72c71bd579bbe0c5
 SHA512 
84dfd4d74602e996797261aa4021fc1579a6aba554d2b3d497c0a7b8618366a9c0a6f12051b00c5653845dda923eedb58afdded37f2a1f31b5b0ce1a0532ccff

diff --git a/dev-python/python-slip/files/python-slip-0.6.5-no-selinux.patch 
b/dev-python/python-slip/files/python-slip-0.6.5-no-selinux.patch
deleted file mode 100644
index b957625f7ecd..000000000000
--- a/dev-python/python-slip/files/python-slip-0.6.5-no-selinux.patch
+++ /dev/null
@@ -1,93 +0,0 @@
-From 66480a1ee0222d9944f58af945959183b23c26f6 Mon Sep 17 00:00:00 2001
-From: Alexandre Rostovtsev <[email protected]>
-Date: Wed, 16 Aug 2017 10:49:43 +0200
-Subject: [PATCH] Disable selinux
-
-Signed-off-by: Gilles Dartiguelongue <[email protected]>
----
- setup.py.in        |  2 +-
- slip/util/files.py | 27 ++++++++++++++-------------
- 2 files changed, 15 insertions(+), 14 deletions(-)
-
-diff --git a/setup.py.in b/setup.py.in
-index 9e7644b..fb276a7 100644
---- a/setup.py.in
-+++ b/setup.py.in
-@@ -8,7 +8,7 @@ setup(name="slip", version="@VERSION@",
-         py_modules=["slip.__init__", "slip.util.__init__",
-             "slip.util.hookable", "slip.util.files",
-             "slip._wrappers.__init__", "slip._wrappers._glib"],
--        requires=["selinux"])
-+        requires=[])
- 
- setup(name="slip.dbus", version="@VERSION@",
-         py_modules=["slip.dbus.__init__", "slip.dbus.bus",
-diff --git a/slip/util/files.py b/slip/util/files.py
-index 98faa7c..a0a3768 100644
---- a/slip/util/files.py
-+++ b/slip/util/files.py
-@@ -33,6 +33,7 @@ __all__ = ["issamefile", "linkfile", "copyfile", 
"linkorcopyfile",
- 
- import os
- import selinux
-+# import selinux
- import tempfile
- import errno
- import stat
-@@ -140,8 +141,8 @@ def copyfile(srcpath, dstpath, copy_mode_from_dst=True, 
run_restorecon=True):
- 
-     os.rename(dsttmpfile.name, dstpath)
- 
--    if run_restorecon and selinux.is_selinux_enabled() > 0:
--        selinux.restorecon(dstpath)
-+#    if run_restorecon and selinux.is_selinux_enabled() > 0:
-+#        selinux.restorecon(dstpath)
- 
- 
- def linkorcopyfile(
-@@ -247,8 +248,8 @@ def overwrite_safely(
- 
-     exists = os.path.exists(path)
- 
--    if preserve_context and selinux.is_selinux_enabled() <= 0:
--        preserve_context = False
-+#    if preserve_context and selinux.is_selinux_enabled() <= 0:
-+#        preserve_context = False
- 
-     try:
-         fd, tmpname = tempfile.mkstemp(prefix=base + os.path.extsep,
-@@ -263,10 +264,10 @@ def overwrite_safely(
-             if preserve_mode:
-                 os.fchmod(fd, stat.S_IMODE(s.st_mode))
- 
--            if preserve_context:
--                ret, ctx = selinux.getfilecon(path)
--                if ret < 0:
--                    raise RuntimeError("getfilecon(%r) failed" % path)
-+#            if preserve_context:
-+#                ret, ctx = selinux.getfilecon(path)
-+#                if ret < 0:
-+#                    raise RuntimeError("getfilecon(%r) failed" % path)
- 
-         f = os.fdopen(fd, "w")
-         fd = None
-@@ -278,11 +279,11 @@ def overwrite_safely(
- 
-         os.rename(tmpname, path)
- 
--        if preserve_context:
--            if exists:
--                selinux.setfilecon(path, ctx)
--            else:
--                selinux.restorecon(path)
-+#        if preserve_context:
-+#            if exists:
-+#                selinux.setfilecon(path, ctx)
-+#            else:
-+#                selinux.restorecon(path)
- 
-     finally:
-         if f:
--- 
-2.14.0
-

diff --git a/dev-python/python-slip/metadata.xml 
b/dev-python/python-slip/metadata.xml
deleted file mode 100644
index 5d32dd6c55b4..000000000000
--- a/dev-python/python-slip/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
-<pkgmetadata>
-  <maintainer type="project">
-    <email>[email protected]</email>
-    <name>Gentoo Virtualization Project</name>
-  </maintainer>
-</pkgmetadata>

diff --git a/dev-python/python-slip/python-slip-0.6.5-r1.ebuild 
b/dev-python/python-slip/python-slip-0.6.5-r1.ebuild
deleted file mode 100644
index 36a8e2b4a6ad..000000000000
--- a/dev-python/python-slip/python-slip-0.6.5-r1.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DISTUTILS_USE_SETUPTOOLS=no
-PYTHON_REQ_USE="xml"
-PYTHON_COMPAT=( python3_{8,9} )
-
-inherit distutils-r1
-
-DESCRIPTION="Miscellaneous convenience, extension and workaround code for 
Python"
-HOMEPAGE="https://github.com/nphilipp/python-slip";
-SRC_URI="https://github.com/nphilipp/${PN}/releases/download/${P}/${P}.tar.bz2";
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86"
-IUSE="dbus selinux"
-
-RDEPEND="
-       dbus? (
-               dev-python/dbus-python[${PYTHON_USEDEP}]
-               dev-python/pygobject:3[${PYTHON_USEDEP}]
-               dev-python/six[${PYTHON_USEDEP}]
-               sys-auth/polkit
-       )
-"
-
-python_prepare_all() {
-       use selinux || eapply -p1 "${FILESDIR}"/${PN}-0.6.5-no-selinux.patch
-
-       # Disable gtk interface since it's gtk-2.
-       sed \
-               -e 's|sys.version_info.major == 2|False|' \
-               -e "s:@VERSION@:${PV}:" setup.py.in > setup.py || die
-
-       # Enable / disable dbus support by user choice.
-       if ! use dbus; then
-               sed -e '/name="slip.dbus"/ s/\(.*\)/if 0:\n    \1/' \
-                       -i setup.py || die
-       fi
-
-       distutils-r1_python_prepare_all
-}

diff --git a/profiles/package.mask b/profiles/package.mask
index 7c818c369d50..2291d9a9db87 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -195,12 +195,6 @@ app-misc/emelfm2
 # Removal on 2022-02-31. bug #668708.
 media-video/atomicparsley-wez
 
-# Michał Górny <[email protected]> (2022-01-30)
-# NIH package with no revdeps and an awful build system that can't work
-# with PEP 517 builders.  Last release in 2017.
-# Removal on 2022-03-01.  Bug #832366.
-dev-python/python-slip
-
 # Eray Aslan <[email protected]> (2022-01-24)
 # Mask experimental software
 =mail-mta/postfix-3.8*

Reply via email to