openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #12778
Bug#885018: openjdk-10: Please update patch alpha-float-const.diff
Source: openjdk-10
Version: 10~32-1
Severity: normal
Tags: patch
User: debian-alpha@xxxxxxxxxxxxxxxx
Usertags: alpha
Hi!
openjdk-10 currently fails to build from source because the patch
alpha-float-const.diff no longer applies:
Applying patch alpha-float-const.diff
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/src/jdk/src/java.base/share/classes/java/lang/Float.java
|+++ b/src/jdk/jdk/src/java.base/share/classes/java/lang/Float.java
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch alpha-float-const.diff does not apply (enforce with -f)
debian/rules:947: recipe for target 'stamps/patch' failed
make: *** [stamps/patch] Error 1
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
Attaching an updated version. Please include it in the next upload.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@xxxxxxxxxx
`. `' Freie Universitaet Berlin - glaubitz@xxxxxxxxxxxxxxxxxxx
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
--- a/src/java.base/share/classes/java/lang/Float.java 2017-11-16 00:58:50.000000000 +0100
+++ b/src/java.base/share/classes/java/lang/Float.java 2017-12-22 22:56:30.771249660 +0100
@@ -84,7 +84,9 @@
*
* @since 1.6
*/
- public static final float MIN_NORMAL = 0x1.0p-126f; // 1.17549435E-38f
+ // FIXME: still required on alpha?
+ // public static final float MIN_NORMAL = 0x1.0p-126f; // 1.17549435E-38f
+ public static final float MIN_NORMAL = Float.intBitsToFloat(0x00800000);
/**
* A constant holding the smallest positive nonzero value of type