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

Antonio Rojas arojas at gemini.archlinux.org
Wed Jul 6 21:23:37 UTC 2022


    Date: Wednesday, July 6, 2022 @ 21:23:37
  Author: arojas
Revision: 1246762

archrelease: copy trunk to community-x86_64

Added:
  python-debugpy/repos/community-x86_64/PKGBUILD
    (from rev 1246761, python-debugpy/trunk/PKGBUILD)
  python-debugpy/repos/community-x86_64/fix-build.patch
    (from rev 1246761, python-debugpy/trunk/fix-build.patch)
Deleted:
  python-debugpy/repos/community-x86_64/PKGBUILD

-----------------+
 PKGBUILD        |   76 ++++++++++++++++++++++++++++--------------------------
 fix-build.patch |   12 ++++++++
 2 files changed, 52 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-06 21:23:27 UTC (rev 1246761)
+++ PKGBUILD	2022-07-06 21:23:37 UTC (rev 1246762)
@@ -1,36 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Contributor: mark.blakeney at bullet-systems dot net
-
-_pipname=debugpy
-pkgname=python-$_pipname
-pkgver=1.6.0
-pkgrel=1
-pkgdesc='An implementation of the Debug Adapter Protocol for Python'
-arch=(x86_64)
-url='https://aka.ms/debugpy'
-license=(EPL MIT)
-depends=(python)
-makedepends=(python-setuptools)
-source=(https://github.com/microsoft/debugpy/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('2312bda693be2e5581585349a4a1202d0071bc20cce9ac008cd84716e97f7a55')
-
-prepare() {
-  cd $_pipname-$pkgver
-# remove precompiled libs
-  rm src/debugpy/_vendored/pydevd/pydevd_attach_to_process/*.{so,dll,dylib,exe,pdb}
-}
-
-build() {
-  cd $_pipname-$pkgver
-  python setup.py build
-# Compile attach libraries
-  cd build/lib*/debugpy/_vendored/pydevd/pydevd_attach_to_process
-  g++ ${CXXFLAGS} -m64 -shared -o attach_linux_amd64.so -fPIC -nostartfiles linux_and_mac/attach.cpp ${LDFLAGS}
-}
-
-package() {
-  cd $_pipname-$pkgver
-  python setup.py install --skip-build --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-debugpy/repos/community-x86_64/PKGBUILD (from rev 1246761, python-debugpy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-06 21:23:37 UTC (rev 1246762)
@@ -0,0 +1,40 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: mark.blakeney at bullet-systems dot net
+
+_pipname=debugpy
+pkgname=python-$_pipname
+pkgver=1.6.1
+pkgrel=1
+pkgdesc='An implementation of the Debug Adapter Protocol for Python'
+arch=(x86_64)
+url='https://aka.ms/debugpy'
+license=(EPL MIT)
+depends=(python)
+makedepends=(python-setuptools)
+source=(https://github.com/microsoft/debugpy/archive/v$pkgver/$pkgname-$pkgver.tar.gz
+        fix-build.patch)
+sha256sums=('1c8cea3de71ff3cce5887a8d459579d6b6c4d455b3dbb70e02c7f2e463bf869e'
+            'a86e1e1a5a4d7a585c8185721863f563233b680c36fa35d65bfbff11abd519bc')
+
+prepare() {
+  cd $_pipname-$pkgver
+# remove precompiled libs
+  rm src/debugpy/_vendored/pydevd/pydevd_attach_to_process/*.{so,dll,dylib,exe,pdb}
+
+  patch -p1 -i ../fix-build.patch
+}
+
+build() {
+  cd $_pipname-$pkgver
+  python setup.py build
+# Compile attach libraries
+  cd build/lib*/debugpy/_vendored/pydevd/pydevd_attach_to_process
+  g++ ${CXXFLAGS} -m64 -shared -o attach_linux_amd64.so -fPIC -nostartfiles linux_and_mac/attach.cpp ${LDFLAGS}
+}
+
+package() {
+  cd $_pipname-$pkgver
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: python-debugpy/repos/community-x86_64/fix-build.patch (from rev 1246761, python-debugpy/trunk/fix-build.patch)
===================================================================
--- fix-build.patch	                        (rev 0)
+++ fix-build.patch	2022-07-06 21:23:37 UTC (rev 1246762)
@@ -0,0 +1,12 @@
+diff --git a/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/python.h b/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/python.h
+index 6d39865e..04790698 100644
+--- a/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/python.h
++++ b/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/python.h
+@@ -18,6 +18,7 @@
+ #define __PYTHON_H__
+ 
+ #include "../common/py_version.hpp"
++#include <cstdint>
+ 
+ #ifndef _WIN32
+ typedef unsigned int DWORD;



More information about the arch-commits mailing list