[arch-commits] Commit in python-pcapy/repos/community-x86_64 (3 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Mon Mar 28 18:46:59 UTC 2022


    Date: Monday, March 28, 2022 @ 18:46:59
  Author: foutrelis
Revision: 1177393

archrelease: copy trunk to community-x86_64

Added:
  python-pcapy/repos/community-x86_64/PKGBUILD
    (from rev 1177392, python-pcapy/trunk/PKGBUILD)
Deleted:
  python-pcapy/repos/community-x86_64/PKGBUILD
  python-pcapy/repos/community-x86_64/replace-one-more-unsigned-int-len-with-Py_ssize_t.patch

---------------------------------------------------------+
 PKGBUILD                                                |   89 ++++++--------
 replace-one-more-unsigned-int-len-with-Py_ssize_t.patch |   23 ---
 2 files changed, 42 insertions(+), 70 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-28 18:46:55 UTC (rev 1177392)
+++ PKGBUILD	2022-03-28 18:46:59 UTC (rev 1177393)
@@ -1,47 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: Chris Severance aur.severach AatT spamgourmet.com
-
-_pyname=pcapy-ng
-pkgname=python-pcapy
-pkgver=1.0.4
-pkgrel=2
-pkgdesc='Extension module that interfaces with the libpcap packet capture library'
-url='https://github.com/stamparm/pcapy-ng'
-arch=('x86_64')
-license=('Apache')
-depends=('python' 'libpcap')
-makedepends=('python' 'python-setuptools')
-source=(https://github.com/stamparm/pcapy-ng/archive/${pkgver}/${_pyname}-${pkgver}.tar.gz
-        replace-one-more-unsigned-int-len-with-Py_ssize_t.patch)
-sha256sums=('2fd66fbf5915199a9b92fd23051a0404fc95eca5ad0e9b20777539b314132951'
-            'cef155f680372ba4a9bbd7dcc8fb1279b60147fefe960047fd84c95e3f0e16e7')
-sha512sums=('713238a91037c2b420df81cce68bc26e5993d40ba4797914798ea071b6a7fdc66530b6ab17cbd32aee4b77436e9d1bd8f54f9bda1f98f7d4363435c7e05ac190'
-            '3fdba64da2ace23d3fb31938c213aeb4e0858d93bf21093f27f44fa7f9bd43a54e5e8293683f703b9a3cb4fdaa3e4ccc4d5f22fa629bf70bf2a0e183df049f80')
-
-prepare() {
-  cd ${_pyname}-${pkgver}
-  # https://github.com/stamparm/pcapy-ng/pull/2
-  patch -Np1 -i ../replace-one-more-unsigned-int-len-with-Py_ssize_t.patch
-  sed -i '/self.assertEqual(refNone, sys.getrefcount(None))/d' tests/pcapytests.py
-}
-
-build() {
-  cd ${_pyname}-${pkgver}
-  python setup.py build
-}
-
-check() {
-  cd ${_pyname}-${pkgver}/tests
-  local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
-  PYTHONPATH="../build/lib.linux-${CARCH}-${PYTHONVERSION}" \
-    python pcapytests.py
-}
-
-package() {
-  cd ${_pyname}-${pkgver}
-  python setup.py install -O1 --root="${pkgdir}" --skip-build
-  install -Dm 644 pcapy.html ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"
-  rm -r "${pkgdir}/usr/share/doc/${_pyname}"
-}
-
-# vim: ts=2 sw=2 et:

Copied: python-pcapy/repos/community-x86_64/PKGBUILD (from rev 1177392, python-pcapy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-28 18:46:59 UTC (rev 1177393)
@@ -0,0 +1,42 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Chris Severance aur.severach AatT spamgourmet.com
+
+_pyname=pcapy-ng
+pkgname=python-pcapy
+pkgver=1.0.5
+pkgrel=1
+pkgdesc='Extension module that interfaces with the libpcap packet capture library'
+url='https://github.com/stamparm/pcapy-ng'
+arch=('x86_64')
+license=('Apache')
+depends=('python' 'libpcap')
+makedepends=('python' 'python-setuptools')
+source=(https://github.com/stamparm/pcapy-ng/archive/${pkgver}/${_pyname}-${pkgver}.tar.gz)
+sha256sums=('69b0294fdebbb2acd66f171e9b606db2fcd927d256674bb6681b9bdc2e0c5ca8')
+sha512sums=('aa41772541a769c4a4d8f76b46dac26079e5c66f915cfa57b9344186e5d823c928ea16bd327c35eecf8beaf0f74e881501d68d2583543142fecdb83ed7f9eafe')
+
+prepare() {
+  cd ${_pyname}-${pkgver}
+  sed -i '/self.assertEqual(refNone, sys.getrefcount(None))/d' tests/pcapytests.py
+}
+
+build() {
+  cd ${_pyname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pyname}-${pkgver}/tests
+  local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+  PYTHONPATH="../build/lib.linux-${CARCH}-${PYTHONVERSION}" \
+    python pcapytests.py
+}
+
+package() {
+  cd ${_pyname}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 pcapy.html ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"
+  rm -r "${pkgdir}/usr/share/doc/${_pyname}"
+}
+
+# vim: ts=2 sw=2 et:

Deleted: replace-one-more-unsigned-int-len-with-Py_ssize_t.patch
===================================================================
--- replace-one-more-unsigned-int-len-with-Py_ssize_t.patch	2022-03-28 18:46:55 UTC (rev 1177392)
+++ replace-one-more-unsigned-int-len-with-Py_ssize_t.patch	2022-03-28 18:46:59 UTC (rev 1177393)
@@ -1,23 +0,0 @@
-From 2a95795c87738600a9dd1bf12db674614263f93e Mon Sep 17 00:00:00 2001
-From: Evangelos Foutras <evangelos at foutrelis.com>
-Date: Thu, 9 Dec 2021 19:30:20 +0200
-Subject: [PATCH] Replace one more 'unsigned int len' with Py_ssize_t
-
-Similar to commit 9d62fd8b86c0 ("Bug fix (segfault reported privately").
----
- bpfobj.cc | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/bpfobj.cc b/bpfobj.cc
-index b8c164b..63d6af0 100644
---- a/bpfobj.cc
-+++ b/bpfobj.cc
-@@ -193,7 +193,7 @@ p_filter(register bpfobject* bpf, PyObject* args)
- {
-   int status;
-   u_char* packet;
--  unsigned int len;
-+  Py_ssize_t len;
- 
-   if (Py_TYPE(bpf) != &BPFProgramType)
-     {



More information about the arch-commits mailing list