Hi,

There are some useful info in the discussion at:
https://launchpad.net/ubuntu/+source/gzip/+bug/49067

Apparently fedora (et.al.) has nowadays abandoned their patch in favour
of using 'export DEFS="NO_ASM"' in the spec file, see
https://src.fedoraproject.org/rpms/gzip/tree/master

Their changelog also comes with this interesting claim:
"- don't use the asm code again as it's slower than the gcc compiled one"

Googling "gzip DEFS NO_ASM" gives a number of matches including
openembedded, coreos, etc.
It seems it's pretty common to disable the (i386) assembler code
and given the benefits it seems to have, I think it would be
useful for debian to also do that.

For potential convenience I'm attaching an untested debdiff which I
hope someone can help test and verify on i386.

Regards,
Andreas Henriksson

PS. Please also note fedora seems to be carrying a patch for glibc 2.28
which might be useful in debian soon as well.
https://src.fedoraproject.org/rpms/gzip/blob/master/f/gnulib.patch
diff -Nru gzip-1.9/debian/changelog gzip-1.9/debian/changelog
--- gzip-1.9/debian/changelog   2018-08-05 02:30:09.000000000 +0200
+++ gzip-1.9/debian/changelog   2018-08-29 11:40:01.000000000 +0200
@@ -1,3 +1,11 @@
+gzip (1.9-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Disable usage of assembler code (Closes: #890279)
+    - fedora claims gcc generates more optimized code anyway.
+
+ -- Andreas Henriksson <andr...@fatal.se>  Wed, 29 Aug 2018 11:40:01 +0200
+
 gzip (1.9-2) unstable; urgency=medium
 
   * move to upstream's less-ugly fix for mingw compilation failure
diff -Nru gzip-1.9/debian/rules gzip-1.9/debian/rules
--- gzip-1.9/debian/rules       2018-08-05 02:30:09.000000000 +0200
+++ gzip-1.9/debian/rules       2018-08-29 11:40:01.000000000 +0200
@@ -24,6 +24,7 @@
 endif
 endif
 
+export DEFS=NO_ASM # Avoid TEXTRELs on i386
 EXTRA_CFLAGS=          -Wall
 EXTRA_CPPFLAGS=
 

Reply via email to