diff options
| author | Jason Conroy <jconroy@tscripta.net> | 2026-05-14 19:05:30 -0400 |
|---|---|---|
| committer | Julien Lepiller <julien@lepiller.eu> | 2026-05-17 18:45:10 +0200 |
| commit | 7ea0c8593cf6da4e65aeffddf66835a846080a44 (patch) | |
| tree | 963fb616874ff24c4ad145c93a4d139f8f6bdab1 | |
| parent | f219935e4a11108273a0e209d52d007405d9886f (diff) | |
gnu: ocaml5: Update most ocaml5.3 package prefixes to ocaml5.4.
This is a non-functional change; switching to the 5.4 compiler happens in the
next commit.
* gnu/packages/ocaml5.scm (ocaml5.3-dune-bootstrap)
(ocaml5.3-dune-configurator, ocaml5.3-dune, ocaml5.3-findlib): Rename variable
with `ocaml5.4` prefix.
* guix/build-system/ocaml.scm: (strip-ocaml5.3-variant)
(default-ocaml5.3-findlib, default-ocaml5.3-dune): Rename variable with
`ocaml5.4` prefix.
(package-with-ocaml5.3): Rename variable with `ocaml5.4` prefix. Search for `ocaml5.4`
package variant.
Change-Id: I39b5138001f09d40046b4d2d52e4570b5a6ca0a1
Signed-off-by: Julien Lepiller <julien@lepiller.eu>
| -rw-r--r-- | gnu/packages/ocaml.scm | 8 | ||||
| -rw-r--r-- | gnu/packages/ocaml5.scm | 50 | ||||
| -rw-r--r-- | guix/build-system/ocaml.scm | 32 |
3 files changed, 45 insertions, 45 deletions
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 7d3d7975ff3..a56a64bf317 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm | |||
| @@ -1951,7 +1951,7 @@ Descriptions of projects, libraries and executables are provided in | |||
| 1951 | (list ocaml-csexp)) | 1951 | (list ocaml-csexp)) |
| 1952 | (properties `((ocaml4.09-variant . ,(delay ocaml4.09-dune-configurator)) | 1952 | (properties `((ocaml4.09-variant . ,(delay ocaml4.09-dune-configurator)) |
| 1953 | (ocaml5.0-variant . ,(delay ocaml5.0-dune-configurator)) | 1953 | (ocaml5.0-variant . ,(delay ocaml5.0-dune-configurator)) |
| 1954 | (ocaml5.3-variant . ,(delay ocaml5:ocaml5.3-dune-configurator)))) | 1954 | (ocaml5.4-variant . ,(delay ocaml5:ocaml5.4-dune-configurator)))) |
| 1955 | (synopsis "Dune helper library for gathering system configuration") | 1955 | (synopsis "Dune helper library for gathering system configuration") |
| 1956 | (description "Dune-configurator is a small library that helps writing | 1956 | (description "Dune-configurator is a small library that helps writing |
| 1957 | OCaml scripts that test features available on the system, in order to generate | 1957 | OCaml scripts that test features available on the system, in order to generate |
| @@ -1995,7 +1995,7 @@ config.h files for instance. Among other things, dune-configurator allows one t | |||
| 1995 | (properties `((ocaml4.07-variant . ,(delay ocaml4.07-dune)) | 1995 | (properties `((ocaml4.07-variant . ,(delay ocaml4.07-dune)) |
| 1996 | (ocaml4.09-variant . ,(delay ocaml4.09-dune)) | 1996 | (ocaml4.09-variant . ,(delay ocaml4.09-dune)) |
| 1997 | (ocaml5.0-variant . ,(delay ocaml5.0-dune)) | 1997 | (ocaml5.0-variant . ,(delay ocaml5.0-dune)) |
| 1998 | (ocaml5.3-variant . ,(delay ocaml5:ocaml5.3-dune)))))) | 1998 | (ocaml5.4-variant . ,(delay ocaml5:ocaml5.4-dune)))))) |
| 1999 | 1999 | ||
| 2000 | (define-public ocaml4.09-dune | 2000 | (define-public ocaml4.09-dune |
| 2001 | (package | 2001 | (package |
| @@ -2149,7 +2149,7 @@ executables and libraries"))) | |||
| 2149 | (list ocaml-result)) | 2149 | (list ocaml-result)) |
| 2150 | (properties `((ocaml4.09-variant . ,(delay ocaml4.09-csexp)) | 2150 | (properties `((ocaml4.09-variant . ,(delay ocaml4.09-csexp)) |
| 2151 | (ocaml5.0-variant . ,(delay ocaml5.0-csexp)) | 2151 | (ocaml5.0-variant . ,(delay ocaml5.0-csexp)) |
| 2152 | (ocaml5.3-variant . ,(delay ocaml5:ocaml5.3-csexp)))) | 2152 | (ocaml5.4-variant . ,(delay ocaml5:ocaml5.4-csexp)))) |
| 2153 | (home-page "https://github.com/ocaml-dune/csexp") | 2153 | (home-page "https://github.com/ocaml-dune/csexp") |
| 2154 | (synopsis "Parsing and printing of S-expressions in Canonical form") | 2154 | (synopsis "Parsing and printing of S-expressions in Canonical form") |
| 2155 | (description "This library provides minimal support for Canonical | 2155 | (description "This library provides minimal support for Canonical |
| @@ -2310,7 +2310,7 @@ bitsrings in Erlang style as primitives to the language."))) | |||
| 2310 | `(#:dune ,dune-bootstrap)) | 2310 | `(#:dune ,dune-bootstrap)) |
| 2311 | (properties `((ocaml4.09-variant . ,(delay ocaml4.09-result)) | 2311 | (properties `((ocaml4.09-variant . ,(delay ocaml4.09-result)) |
| 2312 | (ocaml5.0-variant . ,(delay ocaml5.0-result)) | 2312 | (ocaml5.0-variant . ,(delay ocaml5.0-result)) |
| 2313 | (ocaml5.3-variant . ,(delay ocaml5:ocaml5.3-result)))) | 2313 | (ocaml5.4-variant . ,(delay ocaml5:ocaml5.4-result)))) |
| 2314 | (home-page "https://github.com/janestreet/result") | 2314 | (home-page "https://github.com/janestreet/result") |
| 2315 | (synopsis "Compatibility Result module") | 2315 | (synopsis "Compatibility Result module") |
| 2316 | (description "Uses the new result type defined in OCaml >= 4.03 while | 2316 | (description "Uses the new result type defined in OCaml >= 4.03 while |
diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm index 809eaf38479..bfda6247317 100644 --- a/gnu/packages/ocaml5.scm +++ b/gnu/packages/ocaml5.scm | |||
| @@ -254,9 +254,9 @@ the opam file format.") | |||
| 254 | ;; With static-linking exception | 254 | ;; With static-linking exception |
| 255 | (license license:lgpl2.1+))) | 255 | (license license:lgpl2.1+))) |
| 256 | 256 | ||
| 257 | (define-public ocaml5.3-result | 257 | (define-public ocaml5.4-result |
| 258 | (package | 258 | (package |
| 259 | (name "ocaml5.3-result") | 259 | (name "ocaml5.4-result") |
| 260 | (version "1.5") | 260 | (version "1.5") |
| 261 | (source | 261 | (source |
| 262 | (origin | 262 | (origin |
| @@ -269,7 +269,7 @@ the opam file format.") | |||
| 269 | (base32 "166laj8qk7466sdl037c6cjs4ac571hglw4l5qpyll6df07h6a7q")))) | 269 | (base32 "166laj8qk7466sdl037c6cjs4ac571hglw4l5qpyll6df07h6a7q")))) |
| 270 | (build-system dune-build-system) | 270 | (build-system dune-build-system) |
| 271 | (arguments | 271 | (arguments |
| 272 | `(#:dune ,ocaml5.3-dune-bootstrap)) | 272 | `(#:dune ,ocaml5.4-dune-bootstrap)) |
| 273 | (home-page "https://github.com/janestreet/result") | 273 | (home-page "https://github.com/janestreet/result") |
| 274 | (synopsis "Compatibility Result module") | 274 | (synopsis "Compatibility Result module") |
| 275 | (description | 275 | (description |
| @@ -280,7 +280,7 @@ defined in this library.") | |||
| 280 | 280 | ||
| 281 | ;; Use this version of `ocaml-result` for packages built with the default | 281 | ;; Use this version of `ocaml-result` for packages built with the default |
| 282 | ;; ocaml 5.x compiler. | 282 | ;; ocaml 5.x compiler. |
| 283 | (define-public ocaml-result ocaml5.3-result) | 283 | (define-public ocaml-result ocaml5.4-result) |
| 284 | 284 | ||
| 285 | (define-public ocaml-topkg | 285 | (define-public ocaml-topkg |
| 286 | (package | 286 | (package |
| @@ -1420,10 +1420,10 @@ Descriptions of projects, libraries and executables are provided in | |||
| 1420 | @file{dune} files following an s-expression syntax.") | 1420 | @file{dune} files following an s-expression syntax.") |
| 1421 | (license license:expat))) | 1421 | (license license:expat))) |
| 1422 | 1422 | ||
| 1423 | (define-public ocaml5.3-dune-bootstrap | 1423 | (define-public ocaml5.4-dune-bootstrap |
| 1424 | (package | 1424 | (package |
| 1425 | (inherit %dune-base) | 1425 | (inherit %dune-base) |
| 1426 | (name "ocaml5.3-dune") | 1426 | (name "ocaml5.4-dune") |
| 1427 | (build-system ocaml-build-system) | 1427 | (build-system ocaml-build-system) |
| 1428 | (arguments | 1428 | (arguments |
| 1429 | `(#:tests? #f; require odoc | 1429 | `(#:tests? #f; require odoc |
| @@ -1441,20 +1441,20 @@ Descriptions of projects, libraries and executables are provided in | |||
| 1441 | (properties '((hidden? . #t))))) | 1441 | (properties '((hidden? . #t))))) |
| 1442 | 1442 | ||
| 1443 | ;; Use this alias for packages built with the default ocaml 5.x compiler. | 1443 | ;; Use this alias for packages built with the default ocaml 5.x compiler. |
| 1444 | (define-public dune ocaml5.3-dune-bootstrap) | 1444 | (define-public dune ocaml5.4-dune-bootstrap) |
| 1445 | 1445 | ||
| 1446 | (define-public ocaml5.0-dune-bootstrap | 1446 | (define-public ocaml5.0-dune-bootstrap |
| 1447 | (package | 1447 | (package |
| 1448 | (inherit ocaml5.3-dune-bootstrap) | 1448 | (inherit ocaml5.4-dune-bootstrap) |
| 1449 | (name "ocaml5.0-dune-bootstrap") | 1449 | (name "ocaml5.0-dune-bootstrap") |
| 1450 | (arguments | 1450 | (arguments |
| 1451 | `(,@(package-arguments ocaml5.3-dune-bootstrap) | 1451 | `(,@(package-arguments ocaml5.4-dune-bootstrap) |
| 1452 | #:ocaml ,ocaml-5.0 | 1452 | #:ocaml ,ocaml-5.0 |
| 1453 | #:findlib ,ocaml5.0-findlib)))) | 1453 | #:findlib ,ocaml5.0-findlib)))) |
| 1454 | 1454 | ||
| 1455 | (define-public ocaml5.3-csexp | 1455 | (define-public ocaml5.4-csexp |
| 1456 | (package | 1456 | (package |
| 1457 | (name "ocaml5.3-csexp") | 1457 | (name "ocaml5.4-csexp") |
| 1458 | (version "1.5.2") | 1458 | (version "1.5.2") |
| 1459 | (source | 1459 | (source |
| 1460 | (origin | 1460 | (origin |
| @@ -1468,14 +1468,14 @@ Descriptions of projects, libraries and executables are provided in | |||
| 1468 | (build-system dune-build-system) | 1468 | (build-system dune-build-system) |
| 1469 | (arguments | 1469 | (arguments |
| 1470 | `(#:tests? #f ;FIXME: needs ppx_expect, but which version? | 1470 | `(#:tests? #f ;FIXME: needs ppx_expect, but which version? |
| 1471 | #:dune ,ocaml5.3-dune-bootstrap | 1471 | #:dune ,ocaml5.4-dune-bootstrap |
| 1472 | #:phases (modify-phases %standard-phases | 1472 | #:phases (modify-phases %standard-phases |
| 1473 | (add-before 'build 'chmod | 1473 | (add-before 'build 'chmod |
| 1474 | (lambda _ | 1474 | (lambda _ |
| 1475 | (for-each (lambda (file) | 1475 | (for-each (lambda (file) |
| 1476 | (chmod file #o644)) | 1476 | (chmod file #o644)) |
| 1477 | (find-files "." ".*")) #t))))) | 1477 | (find-files "." ".*")) #t))))) |
| 1478 | (propagated-inputs (list ocaml5.3-result)) | 1478 | (propagated-inputs (list ocaml5.4-result)) |
| 1479 | (home-page "https://github.com/ocaml-dune/csexp") | 1479 | (home-page "https://github.com/ocaml-dune/csexp") |
| 1480 | (synopsis "Parsing and printing of S-expressions in Canonical form") | 1480 | (synopsis "Parsing and printing of S-expressions in Canonical form") |
| 1481 | (description | 1481 | (description |
| @@ -1494,7 +1494,7 @@ module of this library is parameterised by the type of S-expressions.") | |||
| 1494 | (license license:expat))) | 1494 | (license license:expat))) |
| 1495 | 1495 | ||
| 1496 | ;; Use this alias for packages built with the default ocaml 5.x compiler. | 1496 | ;; Use this alias for packages built with the default ocaml 5.x compiler. |
| 1497 | (define-public ocaml-csexp ocaml5.3-csexp) | 1497 | (define-public ocaml-csexp ocaml5.4-csexp) |
| 1498 | 1498 | ||
| 1499 | ;; Base package for all libraries (not the binary) hosted in the main dune | 1499 | ;; Base package for all libraries (not the binary) hosted in the main dune |
| 1500 | ;; repo. | 1500 | ;; repo. |
| @@ -1520,16 +1520,16 @@ module of this library is parameterised by the type of S-expressions.") | |||
| 1520 | (lambda _ | 1520 | (lambda _ |
| 1521 | (delete-file-recursively "vendor")))))))) | 1521 | (delete-file-recursively "vendor")))))))) |
| 1522 | 1522 | ||
| 1523 | (define-public ocaml5.3-dune-configurator | 1523 | (define-public ocaml5.4-dune-configurator |
| 1524 | (package | 1524 | (package |
| 1525 | (inherit %dune-lib-base) | 1525 | (inherit %dune-lib-base) |
| 1526 | (name "ocaml5.3-dune-configurator") | 1526 | (name "ocaml5.4-dune-configurator") |
| 1527 | (build-system dune-build-system) | 1527 | (build-system dune-build-system) |
| 1528 | (arguments | 1528 | (arguments |
| 1529 | (substitute-keyword-arguments (package-arguments %dune-lib-base) | 1529 | (substitute-keyword-arguments (package-arguments %dune-lib-base) |
| 1530 | ((#:package _ #f) "dune-configurator") | 1530 | ((#:package _ #f) "dune-configurator") |
| 1531 | ((#:dune _ #f) ocaml5.3-dune-bootstrap))) | 1531 | ((#:dune _ #f) ocaml5.4-dune-bootstrap))) |
| 1532 | (propagated-inputs (list ocaml5.3-csexp)) | 1532 | (propagated-inputs (list ocaml5.4-csexp)) |
| 1533 | (synopsis "Dune helper library for gathering system configuration") | 1533 | (synopsis "Dune helper library for gathering system configuration") |
| 1534 | (description | 1534 | (description |
| 1535 | "Dune-configurator is a small library that helps writing | 1535 | "Dune-configurator is a small library that helps writing |
| @@ -1545,17 +1545,17 @@ config.h files for instance. Among other things, dune-configurator allows one t | |||
| 1545 | 1545 | ||
| 1546 | ;; Use this version of `dune-configurator` for packages built with the default | 1546 | ;; Use this version of `dune-configurator` for packages built with the default |
| 1547 | ;; ocaml 5.x compiler. | 1547 | ;; ocaml 5.x compiler. |
| 1548 | (define-public dune-configurator ocaml5.3-dune-configurator) | 1548 | (define-public dune-configurator ocaml5.4-dune-configurator) |
| 1549 | 1549 | ||
| 1550 | (define-public ocaml5.3-dune | 1550 | (define-public ocaml5.4-dune |
| 1551 | (package | 1551 | (package |
| 1552 | (inherit ocaml5.3-dune-bootstrap) | 1552 | (inherit ocaml5.4-dune-bootstrap) |
| 1553 | (propagated-inputs (list ocaml5.3-dune-configurator)) | 1553 | (propagated-inputs (list ocaml5.4-dune-configurator)) |
| 1554 | (properties '()))) | 1554 | (properties '()))) |
| 1555 | 1555 | ||
| 1556 | (define-public ocaml5.3-findlib | 1556 | (define-public ocaml5.4-findlib |
| 1557 | (package | 1557 | (package |
| 1558 | (name "ocaml5.3-findlib") | 1558 | (name "ocaml5.4-findlib") |
| 1559 | (version "1.9.8") | 1559 | (version "1.9.8") |
| 1560 | (source | 1560 | (source |
| 1561 | (origin | 1561 | (origin |
| @@ -1609,7 +1609,7 @@ compilers that can directly deal with packages.") | |||
| 1609 | 1609 | ||
| 1610 | (define-public ocaml5.0-findlib | 1610 | (define-public ocaml5.0-findlib |
| 1611 | (package | 1611 | (package |
| 1612 | (inherit ocaml5.3-findlib) | 1612 | (inherit ocaml5.4-findlib) |
| 1613 | (name "ocaml5.0-findlib") | 1613 | (name "ocaml5.0-findlib") |
| 1614 | (native-inputs | 1614 | (native-inputs |
| 1615 | (list m4 ocaml-5.0)))) | 1615 | (list m4 ocaml-5.0)))) |
diff --git a/guix/build-system/ocaml.scm b/guix/build-system/ocaml.scm index 88b3f6bf9e1..ff3df00c5a6 100644 --- a/guix/build-system/ocaml.scm +++ b/guix/build-system/ocaml.scm | |||
| @@ -34,8 +34,8 @@ | |||
| 34 | strip-ocaml4.09-variant | 34 | strip-ocaml4.09-variant |
| 35 | package-with-ocaml5.0 | 35 | package-with-ocaml5.0 |
| 36 | strip-ocaml5.0-variant | 36 | strip-ocaml5.0-variant |
| 37 | package-with-ocaml5.3 | 37 | package-with-ocaml5.4 |
| 38 | strip-ocaml5.3-variant | 38 | strip-ocaml5.4-variant |
| 39 | default-findlib | 39 | default-findlib |
| 40 | default-ocaml | 40 | default-ocaml |
| 41 | default-dune | 41 | default-dune |
| @@ -133,19 +133,19 @@ | |||
| 133 | (define (default-ocaml5.3) | 133 | (define (default-ocaml5.3) |
| 134 | (@* (gnu packages ocaml5) ocaml-5.3)) | 134 | (@* (gnu packages ocaml5) ocaml-5.3)) |
| 135 | 135 | ||
| 136 | (define (default-ocaml5.3-findlib) | 136 | (define (default-ocaml5.4-findlib) |
| 137 | (@* (gnu packages ocaml5) ocaml5.3-findlib)) | 137 | (@* (gnu packages ocaml5) ocaml5.4-findlib)) |
| 138 | 138 | ||
| 139 | (define (default-ocaml5.3-dune) | 139 | (define (default-ocaml5.4-dune) |
| 140 | (@* (gnu packages ocaml5) ocaml5.3-dune)) | 140 | (@* (gnu packages ocaml5) ocaml5.4-dune)) |
| 141 | 141 | ||
| 142 | ;; The default versions of core packages within the 5.x series. | 142 | ;; The default versions of core packages within the 5.x series. |
| 143 | 143 | ||
| 144 | (define default-ocaml5 default-ocaml5.3) | 144 | (define default-ocaml5 default-ocaml5.3) |
| 145 | 145 | ||
| 146 | (define default-ocaml5-findlib default-ocaml5.3-findlib) | 146 | (define default-ocaml5-findlib default-ocaml5.4-findlib) |
| 147 | 147 | ||
| 148 | (define default-ocaml5-dune default-ocaml5.3-dune) | 148 | (define default-ocaml5-dune default-ocaml5.4-dune) |
| 149 | 149 | ||
| 150 | (define* (package-with-explicit-ocaml ocaml findlib dune old-prefix new-prefix | 150 | (define* (package-with-explicit-ocaml ocaml findlib dune old-prefix new-prefix |
| 151 | #:key variant-property) | 151 | #:key variant-property) |
| @@ -251,18 +251,18 @@ pre-defined variants." | |||
| 251 | (inherit p) | 251 | (inherit p) |
| 252 | (properties (alist-delete 'ocaml5.0-variant (package-properties p))))) | 252 | (properties (alist-delete 'ocaml5.0-variant (package-properties p))))) |
| 253 | 253 | ||
| 254 | (define package-with-ocaml5.3 | 254 | (define package-with-ocaml5.4 |
| 255 | (package-with-explicit-ocaml (delay (default-ocaml5.3)) | 255 | (package-with-explicit-ocaml (delay (default-ocaml5.3)) |
| 256 | (delay (default-ocaml5.3-findlib)) | 256 | (delay (default-ocaml5.4-findlib)) |
| 257 | (delay (default-ocaml5.3-dune)) | 257 | (delay (default-ocaml5.4-dune)) |
| 258 | "ocaml-" "ocaml5.3-" | 258 | "ocaml-" "ocaml5.4-" |
| 259 | #:variant-property 'ocaml5.3-variant)) | 259 | #:variant-property 'ocaml5.4-variant)) |
| 260 | 260 | ||
| 261 | (define (strip-ocaml5.3-variant p) | 261 | (define (strip-ocaml5.4-variant p) |
| 262 | "Remove the 'ocaml5.3-variant' property from P." | 262 | "Remove the 'ocaml5.4-variant' property from P." |
| 263 | (package | 263 | (package |
| 264 | (inherit p) | 264 | (inherit p) |
| 265 | (properties (alist-delete 'ocaml5.3-variant (package-properties p))))) | 265 | (properties (alist-delete 'ocaml5.4-variant (package-properties p))))) |
| 266 | 266 | ||
| 267 | (define (make-lower default-ocaml default-findlib) | 267 | (define (make-lower default-ocaml default-findlib) |
| 268 | (lambda* (name | 268 | (lambda* (name |
