[arch-commits] Commit in python-prctl/repos/community-x86_64 (6 files)

Chih-Hsuan Yen yan12125 at gemini.archlinux.org
Thu Dec 16 12:25:38 UTC 2021


    Date: Thursday, December 16, 2021 @ 12:25:38
  Author: yan12125
Revision: 1074377

archrelease: copy trunk to community-x86_64

Added:
  python-prctl/repos/community-x86_64/PKGBUILD
    (from rev 1074376, python-prctl/trunk/PKGBUILD)
  python-prctl/repos/community-x86_64/python310.diff
    (from rev 1074376, python-prctl/trunk/python310.diff)
  python-prctl/repos/community-x86_64/skip-tests.diff
    (from rev 1074376, python-prctl/trunk/skip-tests.diff)
Deleted:
  python-prctl/repos/community-x86_64/PKGBUILD
  python-prctl/repos/community-x86_64/python310.diff
  python-prctl/repos/community-x86_64/skip-tests.diff

-----------------+
 PKGBUILD        |   86 +++++++++++++++++++++++++++---------------------------
 python310.diff  |   26 ++++++++--------
 skip-tests.diff |   74 +++++++++++++++++++++++-----------------------
 3 files changed, 93 insertions(+), 93 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-16 12:25:21 UTC (rev 1074376)
+++ PKGBUILD	2021-12-16 12:25:38 UTC (rev 1074377)
@@ -1,43 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Co-Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-prctl
-pkgver=1.8.1
-pkgrel=2
-pkgdesc='Python(ic) interface to the linux prctl syscall'
-arch=('x86_64')
-license=('GPL')
-url='https://github.com/seveas/python-prctl'
-depends=('python' 'libcap')
-makedepends=('python-setuptools')
-checkdepends=('iputils' 'procps-ng')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/seveas/python-prctl/archive/v$pkgver.tar.gz"
-        "$pkgname-kernel-5.10.patch::https://github.com/seveas/python-prctl/pull/33.patch"
-        "skip-tests.diff"
-        "python310.diff")
-sha512sums=('a251b0aefbd6a16d69fd664cadf87ba16af87e7551ae474846858876007028c13b619e227518688e876f95726d327eb4793c37a34317ec8a1bf2c6ea02a31b21'
-            '839bd732ebe4318dd11a2f0037fd60e6b79de84374ef575278cd787eac87c19b00290f5871e70ebb14301fb8a7eb2dc718a754290285cc6f2e9abe6ef161b802'
-            'd7aa5bf2a1854892d2a62fd78f713e6a9df5ff7b6d44a676316970dba348590151d6db5e0583d039db816d361793c8d2f143836bd4113f881e823c741f462bed'
-            '31095f7d60cce5b5e8800e7b06e464b9149a114cd544864825b7f4bfb14892bfbbf212923c8f0c687446dd78bcb2109f6f3f08351fe0885a45dad8982b7e57d4')
-
-prepare() {
-  cd python-prctl-$pkgver
-  patch -Np1 -i ../$pkgname-kernel-5.10.patch
-  patch -Np1 -i ../skip-tests.diff
-  patch -Np1 -i ../python310.diff
-}
-
-build() {
-  cd python-prctl-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd python-prctl-$pkgver
-  python -m unittest discover
-}
-
-package() {
-  cd python-prctl-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-prctl/repos/community-x86_64/PKGBUILD (from rev 1074376, python-prctl/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-16 12:25:38 UTC (rev 1074377)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Co-Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-prctl
+pkgver=1.8.1
+pkgrel=3
+pkgdesc='Python(ic) interface to the linux prctl syscall'
+arch=('x86_64')
+license=('GPL')
+url='https://github.com/seveas/python-prctl'
+depends=('python' 'libcap')
+makedepends=('python-setuptools')
+checkdepends=('iputils' 'procps-ng')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/seveas/python-prctl/archive/v$pkgver.tar.gz"
+        "$pkgname-kernel-5.10.patch::https://github.com/seveas/python-prctl/pull/33.patch"
+        "skip-tests.diff"
+        "python310.diff")
+sha512sums=('a251b0aefbd6a16d69fd664cadf87ba16af87e7551ae474846858876007028c13b619e227518688e876f95726d327eb4793c37a34317ec8a1bf2c6ea02a31b21'
+            '839bd732ebe4318dd11a2f0037fd60e6b79de84374ef575278cd787eac87c19b00290f5871e70ebb14301fb8a7eb2dc718a754290285cc6f2e9abe6ef161b802'
+            'd7aa5bf2a1854892d2a62fd78f713e6a9df5ff7b6d44a676316970dba348590151d6db5e0583d039db816d361793c8d2f143836bd4113f881e823c741f462bed'
+            '31095f7d60cce5b5e8800e7b06e464b9149a114cd544864825b7f4bfb14892bfbbf212923c8f0c687446dd78bcb2109f6f3f08351fe0885a45dad8982b7e57d4')
+
+prepare() {
+  cd python-prctl-$pkgver
+  patch -Np1 -i ../$pkgname-kernel-5.10.patch
+  patch -Np1 -i ../skip-tests.diff
+  patch -Np1 -i ../python310.diff
+}
+
+build() {
+  cd python-prctl-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd python-prctl-$pkgver
+  PYTHONDONTWRITEBYTECODE=1 python -m unittest discover
+}
+
+package() {
+  cd python-prctl-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}

Deleted: python310.diff
===================================================================
--- python310.diff	2021-12-16 12:25:21 UTC (rev 1074376)
+++ python310.diff	2021-12-16 12:25:38 UTC (rev 1074377)
@@ -1,13 +0,0 @@
-diff --git a/test_prctl.py b/test_prctl.py
-index df84986..ea53fb0 100644
---- a/test_prctl.py
-+++ b/test_prctl.py
-@@ -20,7 +20,7 @@ except ImportError:
-     pass
- 
- curdir = os.path.dirname(__file__)
--builddir = os.path.join(curdir, 'build', 'lib.%s-%s' % (distutils.util.get_platform(), sys.version[0:3]))
-+builddir = os.path.join(curdir, 'build', 'lib.%s-%d.%d' % (distutils.util.get_platform(), *sys.version_info[0:2]))
- 
- # Always run from the builddir
- if not os.path.exists(builddir) or \

Copied: python-prctl/repos/community-x86_64/python310.diff (from rev 1074376, python-prctl/trunk/python310.diff)
===================================================================
--- python310.diff	                        (rev 0)
+++ python310.diff	2021-12-16 12:25:38 UTC (rev 1074377)
@@ -0,0 +1,13 @@
+diff --git a/test_prctl.py b/test_prctl.py
+index df84986..ea53fb0 100644
+--- a/test_prctl.py
++++ b/test_prctl.py
+@@ -20,7 +20,7 @@ except ImportError:
+     pass
+ 
+ curdir = os.path.dirname(__file__)
+-builddir = os.path.join(curdir, 'build', 'lib.%s-%s' % (distutils.util.get_platform(), sys.version[0:3]))
++builddir = os.path.join(curdir, 'build', 'lib.%s-%d.%d' % (distutils.util.get_platform(), *sys.version_info[0:2]))
+ 
+ # Always run from the builddir
+ if not os.path.exists(builddir) or \

Deleted: skip-tests.diff
===================================================================
--- skip-tests.diff	2021-12-16 12:25:21 UTC (rev 1074376)
+++ skip-tests.diff	2021-12-16 12:25:38 UTC (rev 1074377)
@@ -1,37 +0,0 @@
-diff --git a/test_prctl.py b/test_prctl.py
-index 3e01f2f..5e19855 100644
---- a/test_prctl.py
-+++ b/test_prctl.py
-@@ -279,6 +279,7 @@ class PrctlTest(unittest.TestCase):
-             os._exit(0)
-         self.assertRaises(OSError, prctl.set_ptracer, new_pid)
- 
-+    @unittest.skip('systemd-nspawn uses seccomp')
-     @require('get_seccomp')
-     def test_seccomp(self):
-         """Test manipulation of the seccomp setting"""
-@@ -323,6 +324,8 @@ class PrctlTest(unittest.TestCase):
-                 prctl.securebits.noroot = True
-             self.assertRaises(OSError, set_true)
- 
-+    # See https://github.com/seveas/python-prctl/issues/31
-+    @unittest.skip('not working in containers')
-     @require('set_speculation_ctrl')
-     def test_speculation_ctrl(self):
-        self.assertTrue(prctl.get_speculation_ctrl(prctl.SPEC_STORE_BYPASS) > 0)
-@@ -388,6 +391,7 @@ class PrctlTest(unittest.TestCase):
-             self.assertRaises(OSError, prctl.get_unalign)
-             self.assertRaises(OSError, prctl.set_unalign, prctl.UNALIGN_NOPRINT)
- 
-+    @unittest.skip('systemd-nspawn adds CAP_SETUID')
-     def test_getcaps(self):
-         """Test the get_caps function"""
-         self.assertEqual(prctl.get_caps(), {prctl.CAP_EFFECTIVE: {}, prctl.CAP_INHERITABLE: {}, prctl.CAP_PERMITTED: {}})
-@@ -404,6 +408,7 @@ class PrctlTest(unittest.TestCase):
-             prctl.get_caps((1234,prctl.ALL_FLAGS))
-         self.assertRaises(ValueError, fail)
- 
-+    @unittest.skip('systemd-nspawn adds CAP_SETUID')
-     def test_setcaps(self):
-         """Test the setcaps function"""
-         if self.am_root:

Copied: python-prctl/repos/community-x86_64/skip-tests.diff (from rev 1074376, python-prctl/trunk/skip-tests.diff)
===================================================================
--- skip-tests.diff	                        (rev 0)
+++ skip-tests.diff	2021-12-16 12:25:38 UTC (rev 1074377)
@@ -0,0 +1,37 @@
+diff --git a/test_prctl.py b/test_prctl.py
+index 3e01f2f..5e19855 100644
+--- a/test_prctl.py
++++ b/test_prctl.py
+@@ -279,6 +279,7 @@ class PrctlTest(unittest.TestCase):
+             os._exit(0)
+         self.assertRaises(OSError, prctl.set_ptracer, new_pid)
+ 
++    @unittest.skip('systemd-nspawn uses seccomp')
+     @require('get_seccomp')
+     def test_seccomp(self):
+         """Test manipulation of the seccomp setting"""
+@@ -323,6 +324,8 @@ class PrctlTest(unittest.TestCase):
+                 prctl.securebits.noroot = True
+             self.assertRaises(OSError, set_true)
+ 
++    # See https://github.com/seveas/python-prctl/issues/31
++    @unittest.skip('not working in containers')
+     @require('set_speculation_ctrl')
+     def test_speculation_ctrl(self):
+        self.assertTrue(prctl.get_speculation_ctrl(prctl.SPEC_STORE_BYPASS) > 0)
+@@ -388,6 +391,7 @@ class PrctlTest(unittest.TestCase):
+             self.assertRaises(OSError, prctl.get_unalign)
+             self.assertRaises(OSError, prctl.set_unalign, prctl.UNALIGN_NOPRINT)
+ 
++    @unittest.skip('systemd-nspawn adds CAP_SETUID')
+     def test_getcaps(self):
+         """Test the get_caps function"""
+         self.assertEqual(prctl.get_caps(), {prctl.CAP_EFFECTIVE: {}, prctl.CAP_INHERITABLE: {}, prctl.CAP_PERMITTED: {}})
+@@ -404,6 +408,7 @@ class PrctlTest(unittest.TestCase):
+             prctl.get_caps((1234,prctl.ALL_FLAGS))
+         self.assertRaises(ValueError, fail)
+ 
++    @unittest.skip('systemd-nspawn adds CAP_SETUID')
+     def test_setcaps(self):
+         """Test the setcaps function"""
+         if self.am_root:



More information about the arch-commits mailing list