diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2026-02-17 17:41:22 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-02-25 09:46:06 +0900 |
| commit | c5a5c27a90a9daf028a0d2abafe0e120050c6f6e (patch) | |
| tree | 7ffc01c9a0cf65d0aeae0d478e27d0a4ec6321bc /gnu/packages/java.scm | |
| parent | eef9696c9d8c0b19ab6f70770732f16f96573776 (diff) | |
gnu: openjdk10: Modernize.
* gnu/packages/java.scm (openjdk10) [arguments]: Use gexps.
[native-inputs]: Delete labels.
Change-Id: I11f214295ed911a492510e22e1f910fc29832e6f
Diffstat (limited to 'gnu/packages/java.scm')
| -rw-r--r-- | gnu/packages/java.scm | 113 |
1 files changed, 57 insertions, 56 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 1d1a4f77e14..c44bb9629ee 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm | |||
| @@ -1236,66 +1236,67 @@ new Date();")))) | |||
| 1236 | "openjdk-currency-time-bomb2.patch")))) | 1236 | "openjdk-currency-time-bomb2.patch")))) |
| 1237 | (arguments | 1237 | (arguments |
| 1238 | (substitute-keyword-arguments (package-arguments openjdk9) | 1238 | (substitute-keyword-arguments (package-arguments openjdk9) |
| 1239 | ((#:phases phases) | 1239 | ((#:phases phases '%standard-phases) |
| 1240 | `(modify-phases ,phases | 1240 | #~(modify-phases #$phases |
| 1241 | ,@(if (target-aarch64?) | 1241 | #$@(if (target-aarch64?) |
| 1242 | `((replace 'patch-for-aarch64 | 1242 | #~((replace 'patch-for-aarch64 |
| 1243 | (lambda _ | 1243 | (lambda _ |
| 1244 | (substitute* "src/hotspot/cpu/aarch64/interp_masm_aarch64.hpp" | 1244 | (substitute* "src/hotspot/cpu/aarch64/interp_masm_aarch64.hpp" |
| 1245 | ;; This line is duplicated, so remove both occurrences, | 1245 | ;; This line is duplicated, so remove both occurrences, |
| 1246 | ;; then add back one occurrence by substituting a | 1246 | ;; then add back one occurrence by substituting a |
| 1247 | ;; comment that occurs once. | 1247 | ;; comment that occurs once. |
| 1248 | (("using MacroAssembler::call_VM_leaf_base;") "") | 1248 | (("using MacroAssembler::call_VM_leaf_base;") "") |
| 1249 | (("Interpreter specific version of call_VM_base") | 1249 | (("Interpreter specific version of call_VM_base") |
| 1250 | (string-append "Interpreter specific version of call_VM_base\n" | 1250 | (string-append "Interpreter specific version of call_VM_base\n" |
| 1251 | " using MacroAssembler::call_VM_leaf_base;")))))) | 1251 | " using MacroAssembler::call_VM_leaf_base;")))))) |
| 1252 | '()) | 1252 | #~()) |
| 1253 | (replace 'fix-java-shebangs | 1253 | (replace 'fix-java-shebangs |
| 1254 | (lambda _ | 1254 | (lambda _ |
| 1255 | ;; This file was "fixed" by patch-source-shebangs, but it requires | 1255 | ;; This file was "fixed" by patch-source-shebangs, but it requires |
| 1256 | ;; this exact first line. | 1256 | ;; this exact first line. |
| 1257 | (substitute* "make/data/blacklistedcertsconverter/blacklisted.certs.pem" | 1257 | (substitute* "make/data/blacklistedcertsconverter/blacklisted.certs.pem" |
| 1258 | (("^#!.*") "#! java BlacklistedCertsConverter SHA-256\n")))) | 1258 | (("^#!.*") "#! java BlacklistedCertsConverter SHA-256\n")))) |
| 1259 | (add-after 'unpack 'remove-timestamping | 1259 | (add-after 'unpack 'remove-timestamping |
| 1260 | (lambda _ | 1260 | (lambda _ |
| 1261 | (substitute* "./src/hotspot/share/runtime/vm_version.cpp" | 1261 | (substitute* "./src/hotspot/share/runtime/vm_version.cpp" |
| 1262 | (("__DATE__") "") | 1262 | (("__DATE__") "") |
| 1263 | (("__TIME__") "")))) | 1263 | (("__TIME__") "")))) |
| 1264 | (replace 'configure | 1264 | (replace 'configure |
| 1265 | (lambda* (#:key inputs outputs #:allow-other-keys) | 1265 | (lambda* (#:key inputs #:allow-other-keys) |
| 1266 | (invoke "bash" "./configure" | 1266 | (invoke "bash" "./configure" |
| 1267 | ;; Add flags for compilation with gcc >= 10 | 1267 | ;; Add flags for compilation with gcc >= 10 |
| 1268 | ,(string-append "--with-extra-cflags=-fcommon" | 1268 | (string-append "--with-extra-cflags=-fcommon" |
| 1269 | " -fno-delete-null-pointer-checks" | 1269 | " -fno-delete-null-pointer-checks" |
| 1270 | " -fno-lifetime-dse" | 1270 | " -fno-lifetime-dse" |
| 1271 | ;; flags for compilation with gcc >= 14. | 1271 | ;; flags for compilation with gcc >= 14. |
| 1272 | " -Wno-error=int-conversion") | 1272 | " -Wno-error=int-conversion") |
| 1273 | (string-append "--with-freetype=" | 1273 | (string-append "--with-freetype=" |
| 1274 | (assoc-ref inputs "freetype")) | 1274 | (assoc-ref inputs "freetype")) |
| 1275 | "--disable-freetype-bundling" | 1275 | "--disable-freetype-bundling" |
| 1276 | "--disable-warnings-as-errors" | 1276 | "--disable-warnings-as-errors" |
| 1277 | "--disable-hotspot-gtest" | 1277 | "--disable-hotspot-gtest" |
| 1278 | "--with-giflib=system" | 1278 | "--with-giflib=system" |
| 1279 | "--with-libjpeg=system" | 1279 | "--with-libjpeg=system" |
| 1280 | "--with-native-debug-symbols=zipped" | 1280 | "--with-native-debug-symbols=zipped" |
| 1281 | (string-append "--prefix=" (assoc-ref outputs "out"))))) | 1281 | (string-append "--prefix=" #$output)))) |
| 1282 | (add-after 'unpack 'disable-warnings-as-errors | 1282 | (add-after 'unpack 'disable-warnings-as-errors |
| 1283 | (lambda _ | 1283 | (lambda _ |
| 1284 | ;; It looks like the "--disable-warnings-as-errors" option of | 1284 | ;; It looks like the "--disable-warnings-as-errors" option of |
| 1285 | ;; the 'configure' phase is not working. | 1285 | ;; the 'configure' phase is not working. |
| 1286 | (substitute* "make/autoconf/generated-configure.sh" | 1286 | (substitute* "make/autoconf/generated-configure.sh" |
| 1287 | (("-Werror") "")))))) | 1287 | (("-Werror") "")))))) |
| 1288 | ((#:disallowed-references _ '()) | 1288 | ((#:disallowed-references refs '()) |
| 1289 | `(,(this-package-native-input "openjdk9") | 1289 | (cons* (this-package-native-input "openjdk") |
| 1290 | ,(gexp-input (this-package-native-input "openjdk9") "jdk"))))) | 1290 | (gexp-input (this-package-native-input "openjdk") "jdk") |
| 1291 | (native-inputs | 1291 | refs)))) |
| 1292 | `(("openjdk9" ,openjdk9) | 1292 | (native-inputs |
| 1293 | ("openjdk9:jdk" ,openjdk9 "jdk") | 1293 | (list gnu-make-4.2 |
| 1294 | ("make@4.2" ,gnu-make-4.2) | 1294 | openjdk9 |
| 1295 | ("nss-certs" ,nss-certs) | 1295 | `(,openjdk9 "jdk") |
| 1296 | ("unzip" ,unzip) | 1296 | nss-certs |
| 1297 | ("which" ,which) | 1297 | unzip |
| 1298 | ("zip" ,zip))))) | 1298 | which |
| 1299 | zip)))) | ||
| 1299 | 1300 | ||
| 1300 | (define-public openjdk11 | 1301 | (define-public openjdk11 |
| 1301 | (package | 1302 | (package |
