* Re: [bug#39742] [PATCH 1/7] gnu: java-openjfx-build: Add helpful patch.
[not found] <20200222201755.50425-1-levenson@mmer.org>
@ 2020-03-03 17:33 ` levenson
0 siblings, 0 replies; only message in thread
From: levenson @ 2020-03-03 17:33 UTC (permalink / raw)
To: guix-devel; +Cc: 39742
Hi
I packaged openjfx and would like to get some review. Can someone take a look?
Alexey Abramov <levenson@mmer.org> writes:
> * gnu/packages/java.scm: Add patch
> * gnu/packages/patches/java-openjfx-build-get_guix_jdk_version.patch: New
> file. Allows you to run gradlew to run properly. Useful for debugging.
> ---
> gnu/packages/java.scm | 3 ++-
> .../java-openjfx-build-get_guix_jdk_version.patch | 14 ++++++++++++++
> 2 files changed, 16 insertions(+), 1 deletion(-)
> create mode 100644 gnu/packages/patches/java-openjfx-build-get_guix_jdk_version.patch
>
> diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
> index 9371901e1f..01541ee419 100644
> --- a/gnu/packages/java.scm
> +++ b/gnu/packages/java.scm
> @@ -2355,7 +2355,8 @@ new Date();"))
> (file-name (string-append name "-" version "-checkout"))
> (sha256
> (base32
> - "0yg38mwpivswccv9n96k06x3iv82i4px1a9xg9l8dswzwmfj259f"))))
> + "0yg38mwpivswccv9n96k06x3iv82i4px1a9xg9l8dswzwmfj259f"))
> + (patches (search-patches "java-openjfx-build-get_guix_jdk_version.patch"))))
> (build-system ant-build-system)
> (arguments
> `(#:jar-name "java-openjfx.jar"
> diff --git a/gnu/packages/patches/java-openjfx-build-get_guix_jdk_version.patch b/gnu/packages/patches/java-openjfx-build-get_guix_jdk_version.patch
> new file mode 100644
> index 0000000000..214ef9949c
> --- /dev/null
> +++ b/gnu/packages/patches/java-openjfx-build-get_guix_jdk_version.patch
> @@ -0,0 +1,14 @@
> +--- a/build.gradle
> ++++ b/build.gradle
> +@@ -742,9 +742,9 @@
> + if (inStream.readLine() != null) {
> + String v = inStream.readLine();
> + if (v != null) {
> +- int ib = v.indexOf(" (build ");
> ++ int ib = v.indexOf(" (guix build ");
> + if (ib != -1) {
> +- String ver = v.substring(ib + 8, v.size() - 1);
> ++ String ver = v.substring(ib + 13, v.size() - 1);
> +
> + defineProperty("jdkRuntimeVersion", ver)
> + defineProperty("jdkVersion", jdkRuntimeVersion.split("-")[0])
--
Alexey
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-03 17:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20200222201755.50425-1-levenson@mmer.org>
2020-03-03 17:33 ` [bug#39742] [PATCH 1/7] gnu: java-openjfx-build: Add helpful patch levenson
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).