From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] openjdk11: add bootstrap path for x86_64-musl
Date: Mon, 04 Nov 2019 11:28:54 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-16101@inbox.vuxu.org> (raw)
[-- 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() {
next reply other threads:[~2019-11-04 10:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-04 10:28 voidlinux-github [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-16101@inbox.vuxu.org \
--to=voidlinux-github@inbox.vuxu.org \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).