Kurt Roeckx:
> On Sun, Nov 15, 2015 at 08:00:57AM +0000, Chris Knadle wrote:
>> I'd like to try building openssl_1.0.2d-1 with gcc-4.9 to see if the
>> behavior change was due to gcc-5 -- if there's an easy way to specify that
>> please let me know.
> 
> If you edit the Configure file, for instance the debian-amd64
> line, it has the compiler for that target in it.
> 
> Note that the debian-amd64 line comes from the
> debian-targets.patch.

Thanks, that was helpful.

... Huh.  Rebuilding openssl_1.0.2d-1 with gcc-4.9 and using it to build
mumble_1.2.10-2 with g++-5, the result works fine.  So it seems it was
simply the switch to gcc-5 that changed this behavior.

On the one hand one could call this a regression since it breaks something
that worked before, and on the other hand it caught a bug in the code in
mumble that nobody knew it had.  This therefore leaves a question as to
whether to consider this is a bug or a feature of gcc-5.  Probably both.

I'm attaching patches for the changes I made to the package files (except
the debian/changelog entry simply to up the version number) in case someone
wants to repeat the test.

   -- Chris

-- 
Chris Knadle
[email protected]
From a9b05b09763a6e1a9d071a00c7a6e094caa53d13 Mon Sep 17 00:00:00 2001
From: Chris Knadle <[email protected]>
Date: Sun, 15 Nov 2015 12:55:21 -0500
Subject: [PATCH 1/2] debian/patches: update debian-targets.patch to build with
 gcc-4.9

---
 debian/patches/debian-targets.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/patches/debian-targets.patch b/debian/patches/debian-targets.patch
index 5e3ff3f..a7b056c 100644
--- a/debian/patches/debian-targets.patch
+++ b/debian/patches/debian-targets.patch
@@ -24,7 +24,7 @@ Index: openssl-1.0.2b/Configure
 +"debian-arm64","gcc:-DL_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-armel","gcc:-DL_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${armv4_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-armhf","gcc:-DL_ENDIAN ${debian_cflags}::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${armv4_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"debian-amd64", "gcc:-m64 -DL_ENDIAN ${debian_cflags} -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::",
++"debian-amd64", "gcc-4.9:-m64 -DL_ENDIAN ${debian_cflags} -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::",
 +"debian-avr32", "gcc:-DB_ENDIAN ${debian_cflags} -fomit-frame-pointer::-D_REENTRANT::-ldl:BN_LLONG_BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-kfreebsd-amd64","gcc:-m64 -DL_ENDIAN ${debian_cflags} -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"debian-kfreebsd-i386","gcc:-DL_ENDIAN ${debian_cflags} -march=i486::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-- 
2.6.2

From f57740851059729a67ca83f9200d2fd718857c64 Mon Sep 17 00:00:00 2001
From: Chris Knadle <[email protected]>
Date: Sun, 15 Nov 2015 12:57:01 -0500
Subject: [PATCH 2/2] debian/control: build-depend on gcc-4.9

---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 6215052..40b178b 100644
--- a/debian/control
+++ b/debian/control
@@ -1,5 +1,5 @@
 Source: openssl
-Build-Depends: debhelper (>= 9), m4, bc, dpkg-dev (>= 1.15.7)
+Build-Depends: debhelper (>= 9), m4, bc, dpkg-dev (>= 1.15.7), gcc-4.9
 Section: utils
 Priority: optional
 Maintainer: Debian OpenSSL Team <[email protected]>
-- 
2.6.2

Reply via email to