Dear maintainer,

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

cu
Adrian
diff -Nru python-crc32c-2.2/debian/changelog python-crc32c-2.2/debian/changelog
--- python-crc32c-2.2/debian/changelog	2020-11-02 22:25:39.000000000 +0200
+++ python-crc32c-2.2/debian/changelog	2021-04-24 10:56:22.000000000 +0300
@@ -1,3 +1,11 @@
+python-crc32c (2.2-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix baseline violation on amd64/arm64/i386 and FTBFS on armhf
+    if built on 64bit hardware. (Closes: #983815)
+
+ -- Adrian Bunk <b...@debian.org>  Sat, 24 Apr 2021 10:56:22 +0300
+
 python-crc32c (2.2-1) unstable; urgency=medium
 
   [ upstream ]
diff -Nru python-crc32c-2.2/debian/patches/baseline.patch python-crc32c-2.2/debian/patches/baseline.patch
--- python-crc32c-2.2/debian/patches/baseline.patch	1970-01-01 02:00:00.000000000 +0200
+++ python-crc32c-2.2/debian/patches/baseline.patch	2021-04-24 10:56:22.000000000 +0300
@@ -0,0 +1,28 @@
+Description: Fix baseline violations on x86 and arm
+ These extensions are not part of the baseline of any port.
+Author: Adrian Bunk <b...@debian.org>
+
+--- python-crc32c-2.2.orig/setup.py
++++ python-crc32c-2.2/setup.py
+@@ -39,10 +39,6 @@ def get_extra_compile_args(is_intel, is_
+     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']
+ 
+@@ -63,10 +59,6 @@ class _build_ext(build_ext):
+         is_arm = platform in ['aarch64_be', 'aarch64', 'armv8b', 'armv8l']
+         distutils.log.info("platform: %s, is_intel: %d, is_arm: %d", platform, is_intel, is_arm)
+         self.distribution.ext_modules[0].extra_compile_args = get_extra_compile_args(is_intel, is_arm)
+-        if is_intel:
+-            self.distribution.ext_modules[0].define_macros += [('IS_INTEL', None)]
+-        elif is_arm:
+-            self.distribution.ext_modules[0].define_macros += [('IS_ARM', None)]
+         build_ext.run(self)
+ 
+ 
diff -Nru python-crc32c-2.2/debian/patches/series python-crc32c-2.2/debian/patches/series
--- python-crc32c-2.2/debian/patches/series	1970-01-01 02:00:00.000000000 +0200
+++ python-crc32c-2.2/debian/patches/series	2021-04-24 10:56:17.000000000 +0300
@@ -0,0 +1 @@
+baseline.patch

Reply via email to