Control: tags 983815 + pending

Dear maintainer,

I've prepared an NMU for python-crc32c (versioned as 2.3-1.1) and 
uploaded it to DELAYED/4. Please feel free to tell me if I should
cancel it.

cu
Adrian
diff -Nru python-crc32c-2.3/debian/changelog python-crc32c-2.3/debian/changelog
--- python-crc32c-2.3/debian/changelog	2022-09-17 16:36:38.000000000 +0300
+++ python-crc32c-2.3/debian/changelog	2022-11-19 00:42:32.000000000 +0200
@@ -1,3 +1,10 @@
+python-crc32c (2.3-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix baseline violation on x86 and arm. (Closes: #983815)
+
+ -- Adrian Bunk <b...@debian.org>  Sat, 19 Nov 2022 00:42:32 +0200
+
 python-crc32c (2.3-1) unstable; urgency=medium
 
   [ upstream ]
diff -Nru python-crc32c-2.3/debian/patches/0001-Fix-baseline-violations-on-x86-and-arm.patch python-crc32c-2.3/debian/patches/0001-Fix-baseline-violations-on-x86-and-arm.patch
--- python-crc32c-2.3/debian/patches/0001-Fix-baseline-violations-on-x86-and-arm.patch	1970-01-01 02:00:00.000000000 +0200
+++ python-crc32c-2.3/debian/patches/0001-Fix-baseline-violations-on-x86-and-arm.patch	2022-11-19 00:42:32.000000000 +0200
@@ -0,0 +1,46 @@
+From 252ffe48a20f8897f02986752aae3f5d2b40535f Mon Sep 17 00:00:00 2001
+From: Adrian Bunk <b...@debian.org>
+Date: Sat, 19 Nov 2022 00:47:00 +0200
+Subject: Fix baseline violations on x86 and arm
+
+These extensions are not part of the baseline of any port.
+---
+ common.h | 6 ------
+ setup.py | 4 ----
+ 2 files changed, 10 deletions(-)
+
+diff --git a/common.h b/common.h
+index cdf02de..3b163a3 100644
+--- a/common.h
++++ b/common.h
+@@ -26,12 +26,6 @@
+ #ifndef _COMMON_H_
+ #define _COMMON_H_
+ 
+-#if defined(__x86_64__) || defined(_M_X64) || defined(i386) || defined(__i386__) || defined(__i386) || defined(_M_IX86)
+-# define IS_INTEL
+-#elif defined(__aarch64__) || defined(_M_ARM64)
+-# define IS_ARM
+-#endif
+-
+ /* inline support (it's not a keyword in MSVC for C code) */
+ #if defined(_MSC_VER)
+ # define CRC32C_INLINE __inline
+diff --git a/setup.py b/setup.py
+index a6192b8..f0b0037 100644
+--- a/setup.py
++++ b/setup.py
+@@ -39,10 +39,6 @@ def get_extra_compile_args(is_intel, is_arm):
+     comp = distutils.ccompiler.get_default_compiler()
+     if comp == 'msvc':
+         return ['/O2']
+-    elif is_intel:
+-        return ['-O3', '-msse4.2', '-mpclmul']
+-    elif is_arm:
+-        return ['-O3', '-march=armv8-a+crc+crypto']
+     else:
+         return ['-O3']
+ 
+-- 
+2.30.2
+
diff -Nru python-crc32c-2.3/debian/patches/series python-crc32c-2.3/debian/patches/series
--- python-crc32c-2.3/debian/patches/series	1970-01-01 02:00:00.000000000 +0200
+++ python-crc32c-2.3/debian/patches/series	2022-11-19 00:42:32.000000000 +0200
@@ -0,0 +1 @@
+0001-Fix-baseline-violations-on-x86-and-arm.patch

Reply via email to