Hi,

On Sat, 16 Feb 2019 10:27:43 +0100 Gilles Filippini <p...@debian.org> wrote:
> Source: cernlib
> Version: 20061220+dfsg3-4.3
> Severity: grave
> Justification: renders package unusable
> Tags: patch
> 
> 
> -------- Message transféré --------
> Sujet : cernlib (20061220+dfsg3-4.3build1) misbehaves on x86_64
> Date : Mon, 4 Feb 2019 00:52:08 +0100
> De : Jacek M. Holeczek <jacek.m.holec...@gmail.com>
> Pour : Matthias Klose <d...@ubuntu.com>, Gilles Filippini <p...@debian.org>
> 
> Hi,
> I tried to use the cernlib related executables on an Ubuntu 18.04 /
> x86_64 / gcc 7.3.0.
> I have found that the "pawX11" misbehaves.
> The problem is related to the used fortran optimization flag.
> By default it is now "-O3" but this is producing misbehaving libraries.
> I tried to rebuild everything using "-O2" but they still misbehaved.
> Finally, after I switched to "-O" (i.e. "-O1"), they started to behave
> properly.
> Please find attached a small patch file which tries to ensure that the
> fortran source code will be compiled with "-O" (and not "-O3" nor "-O2").

The first hunk of the provided patch should be dropped. It addresses a
temporary Ubuntu fix for #853345 now closed.

Attaching the updated patch.

Thanks,

_g.

diff -Naur 
cernlib-20061220+dfsg3.original/debian/patches/126-fix-patchy-compile-flags.dpatch
 cernlib-20061220+dfsg3/debian/patches/126-fix-patchy-compile-flags.dpatch
--- 
cernlib-20061220+dfsg3.original/debian/patches/126-fix-patchy-compile-flags.dpatch
  2013-08-24 09:16:07.000000000 +0000
+++ cernlib-20061220+dfsg3/debian/patches/126-fix-patchy-compile-flags.dpatch   
2019-02-03 21:48:36.151806615 +0000
@@ -76,7 +76,7 @@
  
 -      PARAMETER   (CHPOF = '-c -O -fno-automatic')
 -      PARAMETER   (CHPOC = '-c -O2 -m486')
-+      PARAMETER   (CHPOF = '-c -g -O2 -fno-automatic')
++      PARAMETER   (CHPOF = '-c -g -O -fno-automatic')
 +      PARAMETER   (CHPOC = '-c -g -O2')
        PARAMETER   (CHPOA = ' ')
  
diff -Naur 
cernlib-20061220+dfsg3.original/debian/patches/304-update-Imake-config-files.dpatch
 cernlib-20061220+dfsg3/debian/patches/304-update-Imake-config-files.dpatch
--- 
cernlib-20061220+dfsg3.original/debian/patches/304-update-Imake-config-files.dpatch
 2015-09-09 01:24:30.000000000 +0000
+++ cernlib-20061220+dfsg3/debian/patches/304-update-Imake-config-files.dpatch  
2019-02-03 21:47:38.208869466 +0000
@@ -1794,7 +1794,7 @@
 +
 +#ifdef AMD64Architecture
 +# ifndef OptimizationLevel
-+#  define OptimizationLevel   -O3
++#  define OptimizationLevel   -O
 +# endif
 +# ifndef OptimizedCDebugFlags
 +#  define OptimizedCDebugFlags  OptimizationLevel

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to