Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/openjdk11 update SUBST block for openjdk8 -> open...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ca2c0c7c1d05
branches:  trunk
changeset: 430754:ca2c0c7c1d05
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun May 03 20:07:34 2020 +0000

description:
update SUBST block for openjdk8 -> openjdk11

diffstat:

 lang/openjdk11/hacks.mk |  21 ++++++++-------------
 1 files changed, 8 insertions(+), 13 deletions(-)

diffs (38 lines):

diff -r 7b460b770a84 -r ca2c0c7c1d05 lang/openjdk11/hacks.mk
--- a/lang/openjdk11/hacks.mk   Sun May 03 19:41:50 2020 +0000
+++ b/lang/openjdk11/hacks.mk   Sun May 03 20:07:34 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2019/10/01 12:36:34 tnn Exp $
+# $NetBSD: hacks.mk,v 1.2 2020/05/03 20:07:34 tnn Exp $
 
 .if !defined(OPENJDK11_HACKS_MK)
 OPENJDK11_HACKS_MK=    # empty
@@ -25,21 +25,16 @@
 SUBST_CLASSES+=                fpu
 SUBST_STAGE.fpu=       pre-build
 SUBST_MESSAGE.fpu=     Broken FPU detected: applying floating point workarounds
-SUBST_FILES.fpu=       langtools/src/share/classes/com/sun/tools/javac/jvm/Items.java
-SUBST_FILES.fpu+=      langtools/src/share/classes/com/sun/tools/javac/parser/JavacParser.java
-SUBST_FILES.fpu+=      jdk/src/share/classes/sun/misc/DoubleConsts.java
-SUBST_FILES.fpu+=      jdk/src/share/classes/sun/misc/FloatConsts.java
-SUBST_FILES.fpu+=      jdk/src/share/classes/java/lang/Double.java
-SUBST_FILES.fpu+=      jdk/src/share/classes/java/lang/Float.java
-# Double{,Consts}.java: Replace problematic literals with binary representation
-SUBST_SED.fpu=         -e 's|2.2250738585072014e-308d*|Double.longBitsToDouble(0x10000000000000L)|ig'  # MIN_NORMAL
+SUBST_FILES.fpu=       src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Items.java
+SUBST_FILES.fpu+=      src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java
+SUBST_FILES.fpu+=      src/java.base/share/classes/java/lang/Double.java
+SUBST_FILES.fpu+=      src/java.base/share/classes/java/lang/Float.java
+SUBST_FILES.fpu+=      src/java.base/share/classes/java/lang/FdLibm.java
+# Double.java, FdLibm.java: Replace problematic literals with binary representation
 SUBST_SED.fpu+=                -e 's|0x1.0p-1022d*|Double.longBitsToDouble(0x10000000000000L)|ig'              # MIN_NORMAL
-SUBST_SED.fpu+=                -e 's|4.9e-324d*|Double.longBitsToDouble(0x1L)|ig'                              # MIN_VALUE
 SUBST_SED.fpu+=                -e 's|0x0.0000000000001p-1022d*|Double.longBitsToDouble(0x1L)|ig'               # MIN_VALUE
-# Float{,Consts}.java: Replace problematic literals with binary representation
-SUBST_SED.fpu+=                -e 's|1.17549435e-38f*|Float.intBitsToFloat(0x800000)|ig'       # MIN_NORMAL
+# Float.java: Replace problematic literals with binary representation
 SUBST_SED.fpu+=                -e 's|0x1.0p-126f*|Float.intBitsToFloat(0x800000)|ig'           # MIN_NORMAL
-SUBST_SED.fpu+=                -e 's|1.4e-45f*|Float.intBitsToFloat(0x1)|ig'                   # MIN_VALUE
 SUBST_SED.fpu+=                -e 's|0x0.000002P-126f*|Float.intBitsToFloat(0x1)|ig'           # MIN_VALUE
 # JavacParser.java: avoid bogus "fp.number.too.small" error parsing literals representing Double.MIN_VALUE
 SUBST_SED.fpu+=                -e 's|n.floatValue() == 0.0f && !isZero(proper)|& \&\& Float.floatToIntBits(n) != 0x1|'



Home | Main Index | Thread Index | Old Index