Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] openjdk11: add bootstrap path for x86_64-musl
@ 2019-11-04 10:28 voidlinux-github
  2019-11-04 16:26 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: voidlinux-github @ 2019-11-04 10:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

There is a new pull request by Johnnynator against master on the void-packages repository

https://github.com/Johnnynator/void-packages openjdk11
https://github.com/void-linux/void-packages/pull/16101

openjdk11: add bootstrap path for x86_64-musl
Bootstrap binaries can just be cross compiled from glibc
`./xbps-src pkg openjdk11 -a x86_64-musl`. the tar ball just contains the `/usr/lib/jvm/openjdk11` directory.

https://void.johnnynator.dev/distfiles/

A patch file from https://github.com/void-linux/void-packages/pull/16101.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-openjdk11-16101.patch --]
[-- Type: text/x-diff, Size: 2081 bytes --]

From 4059b91296dd71523ce75e885da5e1ad0efe536b Mon Sep 17 00:00:00 2001
From: John <johnz@posteo.net>
Date: Mon, 4 Nov 2019 11:25:50 +0100
Subject: [PATCH] openjdk11: add bootstrap path for x86_64-musl

---
 srcpkgs/openjdk11/template | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/openjdk11/template b/srcpkgs/openjdk11/template
index a13c7e492d7..8d82c10155f 100644
--- a/srcpkgs/openjdk11/template
+++ b/srcpkgs/openjdk11/template
@@ -25,9 +25,7 @@ configure_args="
  --with-vendor-name="Void"
  --with-vendor-url="https://voidlinux.org/"
  --with-vendor-bug-url="https://github.com/void-linux/void-packages/issues"
- --with-vendor-vm-bug-url="https://github.com/void-linux/void-packages/issues"
- --with-boot-jdk=/usr/lib/jvm/openjdk11-bin"
-
+ --with-vendor-vm-bug-url="https://github.com/void-linux/void-packages/issues""
 make_build_args="images $(vopt_if docs docs)"
 make_check_target="test-hotspot-gtest"
 hostmakedepends="pkg-config automake autoconf cpio unzip zip ca-certificates
@@ -55,9 +53,17 @@ esac
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" openjdk11"
 	configure_args+=" --with-boot-jdk=/usr/lib/jvm/openjdk11"
-else
+elif [ "$XBPS_ARCH" =  "x86_64-musl" ]; then
+	hostmakedepends+=" libjpeg-turbo libXau libXdmcp libxcb libX11 libXext
+	 libXrender libXtst libXi giflib libpng alsa-lib freetype lcms"
+	distfiles+=" https://alpha.de.repo.voidlinux.org/distfiles/openjdk-11.0.0.5+10-x86_64-musl.tar.gz"
+	checksum+=" 037520d9eb077628e137d638f3084689610e8a2fbc9efe50e10823dbac7897a4"
+	configure_args+=" --with-boot-jdk=${XBPS_BUILDDIR}/${wrksrc}/openjdk11"
+elif [ "$XBPS_ARCH" = "x86_64" ]; then
 	hostmakedepends+=" openjdk11-bin"
 	configure_args+=" --with-boot-jdk=/usr/lib/jvm/openjdk11-bin"
+else
+	broken="No suitable bootstrap binary found"
 fi
 
 alternatives="
@@ -121,6 +127,9 @@ post_extract() {
 	if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
 		rm -r src/jdk.hotspot.agent
 	fi
+	if [ "$XBPS_ARCH" = "x86_64-musl" ]; then
+		mv ${wrksrc}/../openjdk11 ${wrksrc}/openjdk11
+	fi
 }
 
 post_patch() {

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-11-06 14:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-04 10:28 [PR PATCH] openjdk11: add bootstrap path for x86_64-musl voidlinux-github
2019-11-04 16:26 ` [PR PATCH] [Updated] " voidlinux-github
2019-11-04 17:43 ` voidlinux-github
2019-11-05 12:17 ` voidlinux-github
2019-11-05 12:18 ` [PR PATCH] [Updated] openjdk11: add bootstrap path for x86_64-musl and i686 voidlinux-github
2019-11-05 12:41 ` voidlinux-github
2019-11-05 14:56 ` [PR PATCH] [Updated] " voidlinux-github
2019-11-05 17:15 ` voidlinux-github
2019-11-06 14:02 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).