mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 12:45:18 +03:00
- switch makedepends from -bootstrap to -loongarch variant having pkgver beginning with 0.0 will make openjdk22-bootstrap choose openjdk22 instead, as provider priorities are the same so make it explicit that we want to use a boot JDK with Server VM following this, the first openjdk -loongarch aport in the next LTS bootstrap chain will depend on -bootstrap, and all subsequent versions depend on -loongarch, which bootstraps in around 15 mins - carry over $_provide_java changes from openjdk22-loongarch when _provide_java=false, static-libs are not built to save space, and subpackages do not provide java-jdk/jre(-headless) my intention is to have _provide_java=true only for LTS JDKs so Java aports depending on java-jdk will be built against the latest LTS (which in actuality, may also not be what is intended, as that means it will not work with earlier LTS)
26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
diff --git a/src/java.base/linux/native/libnio/ch/FileDispatcherImpl.c b/src/java.base/linux/native/libnio/ch/FileDispatcherImpl.c
|
|
index 02d3c57f..efbd0ca5 100644
|
|
--- a/src/java.base/linux/native/libnio/ch/FileDispatcherImpl.c
|
|
+++ b/src/java.base/linux/native/libnio/ch/FileDispatcherImpl.c
|
|
@@ -114,7 +114,7 @@ Java_sun_nio_ch_FileDispatcherImpl_transferTo0(JNIEnv *env, jobject this,
|
|
return n;
|
|
}
|
|
|
|
- n = sendfile64(dstFD, srcFD, &offset, (size_t)count);
|
|
+ n = sendfile(dstFD, srcFD, &offset, (size_t)count);
|
|
if (n < 0) {
|
|
if (errno == EAGAIN)
|
|
return IOS_UNAVAILABLE;
|
|
diff --git a/src/java.base/linux/native/libnio/fs/LinuxNativeDispatcher.c b/src/java.base/linux/native/libnio/fs/LinuxNativeDispatcher.c
|
|
index 95f78ffa..c90e99dd 100644
|
|
--- a/src/java.base/linux/native/libnio/fs/LinuxNativeDispatcher.c
|
|
+++ b/src/java.base/linux/native/libnio/fs/LinuxNativeDispatcher.c
|
|
@@ -211,7 +211,7 @@ Java_sun_nio_fs_LinuxNativeDispatcher_directCopy0
|
|
}
|
|
|
|
do {
|
|
- RESTARTABLE(sendfile64(dst, src, NULL, count), bytes_sent);
|
|
+ RESTARTABLE(sendfile(dst, src, NULL, count), bytes_sent);
|
|
if (bytes_sent < 0) {
|
|
if (errno == EAGAIN)
|
|
return IOS_UNAVAILABLE;
|