Gentoo Archives: gentoo-commits

From: Aric Belsito <lluixhi@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: dev-java/icedtea/files/, dev-java/icedtea/
Date: Mon, 11 Jun 2018 05:04:26
Message-Id: 1528693434.baaf9c81e54cd3c66aa866e1623cb7ae7c95cdb8.lluixhi@gentoo
1 commit: baaf9c81e54cd3c66aa866e1623cb7ae7c95cdb8
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Mon Jun 11 05:03:54 2018 +0000
4 Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com>
5 CommitDate: Mon Jun 11 05:03:54 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=baaf9c81
7
8 dev-java/icedtea: refresh patch
9
10 ...spot-musl.patch => icedtea8-hotspot-musl.patch} | 50 ++++++++++++----------
11 dev-java/icedtea/icedtea-3.8.0.ebuild | 4 +-
12 2 files changed, 29 insertions(+), 25 deletions(-)
13
14 diff --git a/dev-java/icedtea/files/icedtea-hotspot-musl.patch b/dev-java/icedtea/files/icedtea8-hotspot-musl.patch
15 similarity index 58%
16 rename from dev-java/icedtea/files/icedtea-hotspot-musl.patch
17 rename to dev-java/icedtea/files/icedtea8-hotspot-musl.patch
18 index 02f8b8e..b0cfa3e 100644
19 --- a/dev-java/icedtea/files/icedtea-hotspot-musl.patch
20 +++ b/dev-java/icedtea/files/icedtea8-hotspot-musl.patch
21 @@ -1,5 +1,6 @@
22 ---- openjdk.orig/hotspot/src/os/linux/vm/jvm_linux.cpp
23 -+++ openjdk/hotspot/src/os/linux/vm/jvm_linux.cpp
24 +diff -Naur openjdk.orig/hotspot/src/os/linux/vm/jvm_linux.cpp openjdk/hotspot/src/os/linux/vm/jvm_linux.cpp
25 +--- openjdk.orig/hotspot/src/os/linux/vm/jvm_linux.cpp 2018-06-10 21:57:47.854907734 -0700
26 ++++ openjdk/hotspot/src/os/linux/vm/jvm_linux.cpp 2018-06-10 21:58:39.423906811 -0700
27 @@ -154,7 +154,9 @@
28 #ifdef SIGSTKFLT
29 "STKFLT", SIGSTKFLT, /* Stack fault. */
30 @@ -10,28 +11,42 @@
31 "CHLD", SIGCHLD, /* Child status has changed (POSIX). */
32 "CONT", SIGCONT, /* Continue (POSIX). */
33 "STOP", SIGSTOP, /* Stop, unblockable (POSIX). */
34 ---- openjdk.orig/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
35 -+++ openjdk/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
36 -@@ -73,7 +73,6 @@
37 +diff -Naur openjdk.orig/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp openjdk/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
38 +--- openjdk.orig/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp 2018-06-10 21:57:47.861907734 -0700
39 ++++ openjdk/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp 2018-06-10 22:02:01.895903185 -0700
40 +@@ -75,7 +75,7 @@
41 # include <pwd.h>
42 # include <poll.h>
43 # include <ucontext.h>
44 -# include <fpu_control.h>
45 ++# include <linux/types.h> /* provides __u64 */
46
47 - #ifdef AMD64
48 + #ifdef BUILTIN_SIM
49 #define REG_SP REG_RSP
50 -@@ -532,6 +531,9 @@
51 +diff -Naur openjdk.orig/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp openjdk/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
52 +--- openjdk.orig/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp 2018-06-10 21:57:47.862907734 -0700
53 ++++ openjdk/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp 2018-06-10 22:00:00.892905352 -0700
54 +@@ -72,7 +72,6 @@
55 + # include <pwd.h>
56 + # include <poll.h>
57 + # include <ucontext.h>
58 +-# include <fpu_control.h>
59
60 - ShouldNotReachHere();
61 + #ifdef AMD64
62 + #define REG_SP REG_RSP
63 +@@ -544,6 +543,9 @@
64 + return true; // Mute compiler
65 }
66 -+
67 +
68 +#define _FPU_GETCW(cw) __asm__ __volatile__ ("fnstcw %0" : "=m" (*&cw))
69 +#define _FPU_SETCW(cw) __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw))
70 -
71 ++
72 void os::Linux::init_thread_fpu_state(void) {
73 #ifndef AMD64
74 ---- openjdk.orig/hotspot/src/os_cpu/linux_x86/vm/threadLS_linux_x86.hpp
75 -+++ openjdk/hotspot/src/os_cpu/linux_x86/vm/threadLS_linux_x86.hpp
76 + // set fpu to 53 bit precision
77 +diff -Naur openjdk.orig/hotspot/src/os_cpu/linux_x86/vm/threadLS_linux_x86.hpp openjdk/hotspot/src/os_cpu/linux_x86/vm/threadLS_linux_x86.hpp
78 +--- openjdk.orig/hotspot/src/os_cpu/linux_x86/vm/threadLS_linux_x86.hpp 2018-06-10 21:57:47.862907734 -0700
79 ++++ openjdk/hotspot/src/os_cpu/linux_x86/vm/threadLS_linux_x86.hpp 2018-06-10 22:01:01.766904262 -0700
80 @@ -32,7 +32,9 @@
81 // map stack pointer to thread pointer - see notes in threadLS_linux_x86.cpp
82 #define SP_BITLENGTH 32
83 @@ -42,14 +57,3 @@
84 static Thread* _sp_map[1UL << (SP_BITLENGTH - PAGE_SHIFT)];
85
86 public:
87 ---- openjdk.orig/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
88 -+++ openjdk/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
89 -@@ -75,7 +75,7 @@
90 - # include <pwd.h>
91 - # include <poll.h>
92 - # include <ucontext.h>
93 --# include <fpu_control.h>
94 -+# include <linux/types.h> /* provides __u64 */
95 -
96 - #ifdef BUILTIN_SIM
97 - #define REG_SP REG_RSP
98
99 diff --git a/dev-java/icedtea/icedtea-3.8.0.ebuild b/dev-java/icedtea/icedtea-3.8.0.ebuild
100 index 066a759..d8da548 100644
101 --- a/dev-java/icedtea/icedtea-3.8.0.ebuild
102 +++ b/dev-java/icedtea/icedtea-3.8.0.ebuild
103 @@ -208,7 +208,7 @@ src_unpack() {
104
105 src_configure() {
106 # Link MUSL patches into icedtea build tree
107 - ln -s "${FILESDIR}/${PN}-hotspot-musl.patch" patches || die
108 + ln -s "${FILESDIR}/${PN}8-hotspot-musl.patch" patches || die
109 ln -s "${FILESDIR}/${PN}8-hotspot-noagent-musl.patch" patches || die
110 ln -s "${FILESDIR}/${PN}8-hotspot-uclibc-fixes.patch" patches || die
111 ln -s "${FILESDIR}/${PN}8-jdk-execinfo.patch" patches || die
112 @@ -230,7 +230,7 @@ src_configure() {
113 # Export MUSL patches for configure
114 DISTRIBUTION_PATCHES=""
115
116 - DISTRIBUTION_PATCHES+="patches/${PN}-hotspot-musl.patch "
117 + DISTRIBUTION_PATCHES+="patches/${PN}8-hotspot-musl.patch "
118 DISTRIBUTION_PATCHES+="patches/${PN}8-hotspot-noagent-musl.patch "
119 DISTRIBUTION_PATCHES+="patches/${PN}8-hotspot-uclibc-fixes.patch "
120 DISTRIBUTION_PATCHES+="patches/${PN}8-jdk-execinfo.patch "