Package: openssl Version: 1.0.2g-1ubuntu4.1 Severity: wishlist Tags: patch Dear Maintainer,
openssl as built in unstable does not have s390x asm optimisations enabled for the debian-s390x configuration. The attached patch enables them. I have verified on the porter box that things remain executable and operational with 4x speed improvements on some algorithms. Other distributions have these asm optimistions enabled for a while, and I have just enabled them in ubuntu too. The experimental build appears to enabled s390x asm optimisations already, thanks to the config inheritance from linux-s390x build config which has them enabled by default.
diff -Nru openssl-1.0.2h/debian/changelog openssl-1.0.2h/debian/changelog --- openssl-1.0.2h/debian/changelog 2016-05-03 16:33:13.000000000 +0000 +++ openssl-1.0.2h/debian/changelog 2016-08-01 11:23:08.000000000 +0000 @@ -1,3 +1,9 @@ +openssl (1.0.2h-2) UNRELEASED; urgency=medium + + * Enable asm optimisations on s390x. + + -- Dimitri John Ledkov <[email protected]> Mon, 01 Aug 2016 14:04:29 +0300 + openssl (1.0.2h-1) unstable; urgency=high * New upstream version diff -Nru openssl-1.0.2h/debian/patches/debian-targets.patch openssl-1.0.2h/debian/patches/debian-targets.patch --- openssl-1.0.2h/debian/patches/debian-targets.patch 2016-04-21 21:35:01.000000000 +0000 +++ openssl-1.0.2h/debian/patches/debian-targets.patch 2016-08-01 11:23:08.000000000 +0000 @@ -54,8 +54,8 @@ +"debian-powerpcspe","gcc:-DB_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${ppc32_asm}:linux32:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", +"debian-ppc64","gcc:-m64 -DB_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${ppc64_asm}:linux64:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", +"debian-ppc64el","gcc:-m64 -DL_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${ppc64_asm}:linux64le:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-s390","gcc:-DB_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", -+"debian-s390x","gcc:-DB_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", ++"debian-s390","gcc:-DB_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", ++"debian-s390x","gcc:-DB_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${s390x_asm}:64:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", +"debian-sh3", "gcc:-DL_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", +"debian-sh4", "gcc:-DL_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", +"debian-sh3eb", "gcc:-DB_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
Regards, Dimitri.

