[med-svn] [Git][python-team/packages/mypy][master] 2 commits: Non-maintainer upload.

Michael R. Crusoe (@crusoe) gitlab at salsa.debian.org
Tue Feb 11 16:37:29 GMT 2025



Michael R. Crusoe pushed to branch master at Debian Python Team / packages / mypy


Commits:
36a3c98d by Mattias Ellert at 2025-02-11T16:07:22+01:00
Non-maintainer upload.
d/patches/gnu-hurd-getsockname: Address failing tests on GNU/Hurd
- https://github.com/python/mypy/pull/18630
(Closes: #1095420)
d/rules: Fix x32 build by using multifile option
d/rules: Use multifile option for all architectures that require reduced
memory usage during compilation for consistency
- i386 was using reduced the debug level instead
- hurd-i386 was using both, which was an overkill
- x32 was intending to use reduced debug level, but DEB_HOST_ARCH_CPU
  on x32 is amd64 so the filter did not match

- - - - -
f26e1c46 by Michael R. Crusoe at 2025-02-11T16:08:45+01:00
accept patch and fix from Matties and upload to unstable

- - - - -


4 changed files:

- debian/changelog
- + debian/patches/gnu-hurd-getsockname
- debian/patches/series
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,19 @@
+mypy (1.15.0-2) unstable; urgency=medium
+
+  [ Mattias Ellert ]
+  * d/patches/gnu-hurd-getsockname: Address failing tests on GNU/Hurd
+    - https://github.com/python/mypy/pull/18630
+    (Closes: #1095420)
+  * d/rules: Fix x32 build by using multifile option
+  * d/rules: Use multifile option for all architectures that require reduced
+    memory usage during compilation for consistency
+    - i386 was using reduced the debug level instead
+    - hurd-i386 was using both, which was an overkill
+    - x32 was intending to use reduced debug level, but DEB_HOST_ARCH_CPU
+      on x32 is amd64 so the filter did not match
+
+ -- Michael R. Crusoe <crusoe at debian.org>  Tue, 11 Feb 2025 16:07:42 +0100
+
 mypy (1.15.0-1) unstable; urgency=medium
 
   * New upstream version


=====================================
debian/patches/gnu-hurd-getsockname
=====================================
@@ -0,0 +1,29 @@
+From 4e2247a672c437da9e8d77a69a378bb61562d9e6 Mon Sep 17 00:00:00 2001
+From: Mattias Ellert <mattias.ellert at physics.uu.se>
+Date: Fri, 7 Feb 2025 15:44:22 +0100
+Subject: [PATCH] GNU/Hurd returns empty string from getsockname() for AF_UNIX
+ sockets
+
+Build the socket name from directory name and name instead.
+---
+ mypy/ipc.py | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/mypy/ipc.py b/mypy/ipc.py
+index 991f9ac56..b2046a47a 100644
+--- a/mypy/ipc.py
++++ b/mypy/ipc.py
+@@ -303,6 +303,10 @@ class IPCServer(IPCBase):
+     def connection_name(self) -> str:
+         if sys.platform == "win32":
+             return self.name
++        elif sys.platform == "gnu0":
++            # GNU/Hurd returns empty string from getsockname()
++            # for AF_UNIX sockets
++            return os.path.join(self.sock_directory, self.name)
+         else:
+             name = self.sock.getsockname()
+             assert isinstance(name, str)
+-- 
+2.48.1
+


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 hint-typeshed-package
 verbose
 intersphinx
+gnu-hurd-getsockname


=====================================
debian/rules
=====================================
@@ -8,7 +8,7 @@ include /usr/share/dpkg/default.mk
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
-ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf mips64el hppa riscv64 mipsel alpha ia64 m68k powerpc sh4 sparc64 hurd-i386))
+ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf mips64el hppa riscv64 mipsel alpha ia64 m68k powerpc sh4 sparc64 hurd-i386 i386 x32))
   export MYPYC_MULTI_FILE=1
 endif
 
@@ -18,11 +18,7 @@ endif
 
 export DEB_CFLAGS_MAINT_APPEND += -Wno-misleading-indentation
 
-ifneq (,$(filter $(DEB_HOST_ARCH_CPU),i386 x32))
-  export MYPYC_DEBUG_LEVEL=1
-else
-  export MYPYC_DEBUG_LEVEL=2
-endif
+export MYPYC_DEBUG_LEVEL=2
 
 ifneq ($(filter pkg.mypy.o1,$(DEB_BUILD_PROFILES)),)
   export MYPYC_OPT_LEVEL=1



View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/8309ae0eaacaec1509fd85863392801c7ff449ee...f26e1c46ec18859b32c25c17f253fd6d8fba7e9f

-- 
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/8309ae0eaacaec1509fd85863392801c7ff449ee...f26e1c46ec18859b32c25c17f253fd6d8fba7e9f
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20250211/aeae8fd5/attachment-0001.htm>


More information about the debian-med-commit mailing list