diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2026-04-18 22:40:33 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2026-04-28 09:43:31 +0200 |
| commit | 447c51b728c8df0ddc037233e7516c9e21af965c (patch) | |
| tree | c15eb16d5a52ba0aa4f66a42b6e2d3b99a7260c0 /gnu/packages/java.scm | |
| parent | 1c4934111d7fe6a066ab69c275aa6f7347d42dcd (diff) | |
gnu: openjdk25: Enable build of i686 variant.
* gnu/packages/java.scm (openjdk25)[arguments]: Conditionally add configure
flags to enable i686 port; conditionally replace 'install and 'install-libjvm
phases.
Change-Id: Ie436812341a4b02f61034c5142f396d16f3da17f
Diffstat (limited to 'gnu/packages/java.scm')
| -rw-r--r-- | gnu/packages/java.scm | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 41cfbaa4bfc..d4724661d87 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm | |||
| @@ -1861,7 +1861,39 @@ blacklisted.certs.pem" | |||
| 1861 | (define-public openjdk25 | 1861 | (define-public openjdk25 |
| 1862 | (make-openjdk | 1862 | (make-openjdk |
| 1863 | openjdk24 "25.0.2" | 1863 | openjdk24 "25.0.2" |
| 1864 | "03aa34lscr3qbdl6qz3gqyp0nzkqfj02362mzmpkiq3y2g5xdnrj")) | 1864 | "03aa34lscr3qbdl6qz3gqyp0nzkqfj02362mzmpkiq3y2g5xdnrj" |
| 1865 | (arguments | ||
| 1866 | (substitute-keyword-arguments (package-arguments base) | ||
| 1867 | ((#:configure-flags flags #~(list)) | ||
| 1868 | (if (target-x86-32?) | ||
| 1869 | ;; Full builds on 32-bit x86 architectures are not supported as of | ||
| 1870 | ;; this version. Best we can do is to build with the "zero" variant. | ||
| 1871 | #~(cons* "--with-jvm-variants=zero" | ||
| 1872 | "--disable-precompiled-headers" | ||
| 1873 | #$flags) | ||
| 1874 | flags)) | ||
| 1875 | ((#:phases phases #~%standard-phases) | ||
| 1876 | (if (target-x86-32?) | ||
| 1877 | #~(modify-phases #$phases | ||
| 1878 | (replace 'install | ||
| 1879 | (lambda _ | ||
| 1880 | (let ((images (car (find-files "build" "-zero-release" | ||
| 1881 | #:directories? #t)))) | ||
| 1882 | (copy-recursively (string-append images "/images/jdk") | ||
| 1883 | #$output:jdk) | ||
| 1884 | (copy-recursively (string-append images "/images/jre") | ||
| 1885 | #$output) | ||
| 1886 | (copy-recursively (string-append images "/images/docs") | ||
| 1887 | #$output:doc)))) | ||
| 1888 | (replace 'install-libjvm | ||
| 1889 | (lambda _ | ||
| 1890 | (let ((lib-out (string-append #$output "/lib")) | ||
| 1891 | (lib-jdk (string-append #$output:jdk "/lib"))) | ||
| 1892 | (symlink (string-append lib-jdk "/zero/libjvm.so") | ||
| 1893 | (string-append lib-jdk "/libjvm.so")) | ||
| 1894 | (symlink (string-append lib-out "/zero/libjvm.so") | ||
| 1895 | (string-append lib-out "/libjvm.so")))))) | ||
| 1896 | phases)))))) | ||
| 1865 | 1897 | ||
| 1866 | ;;; Convenience alias to point to the latest version of OpenJDK. | 1898 | ;;; Convenience alias to point to the latest version of OpenJDK. |
| 1867 | (define-public openjdk openjdk25) | 1899 | (define-public openjdk openjdk25) |
