0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-11 17:53:09 +00:00
Files
termux-packages/packages/openjdk-17/0039-Fix-hardcoded-paths-in-jdk.attach.patch
Robert Kirkman 4b5aa04efa bump(main/openjdk-17): 17.0.15
- fixes https://github.com/termux/termux-packages/issues/24527

- enable `littlecms`

- change `TERMUX_PKG_SRCURL` to match the same format as `openjdk-21`

- enable auto update

- add `--with-vendor-name="Termux"` and strip extra version strings like `openjdk-21`

- enable `TERMUX_PKG_MAKE_PROCESSES`

- remove directory before installation to fix building the same architecture twice in the same docker container

- some patches are present in the new upstream repository or are unnecessary

- some patches copied from `openjdk-21` because the code associated with them appeared in the new upstream repository
2025-05-07 07:29:19 +03:00

23 lines
1.1 KiB
Diff

From e7570675c4db70ea7314ae342def2445b0eea3c8 Mon Sep 17 00:00:00 2001
From: Chongyun Lee <45286352+licy183@users.noreply.github.com>
Date: Tue, 3 Sep 2024 12:34:31 +0800
Subject: [PATCH] Fix: hardcoded paths in jdk.attach
---
.../linux/classes/sun/tools/attach/VirtualMachineImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/jdk.attach/linux/classes/sun/tools/attach/VirtualMachineImpl.java b/src/jdk.attach/linux/classes/sun/tools/attach/VirtualMachineImpl.java
index a5d743a2635..3d32c514f54 100644
--- a/src/jdk.attach/linux/classes/sun/tools/attach/VirtualMachineImpl.java
+++ b/src/jdk.attach/linux/classes/sun/tools/attach/VirtualMachineImpl.java
@@ -46,7 +46,7 @@ public class VirtualMachineImpl extends HotSpotVirtualMachine {
// location is the same for all processes, otherwise the tools
// will not be able to find all Hotspot processes.
// Any changes to this needs to be synchronized with HotSpot.
- private static final String tmpdir = "/tmp";
+ private static final String tmpdir = "@TERMUX_PREFIX@/tmp";
String socket_path;
/**
* Attaches to the target VM