GNU bug report logs -
#34265
[PATCH 1/9] gnu: dune: Update to 1.6.3.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34265 in the body.
You can then email your comments to 34265 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Thu, 31 Jan 2019 17:08:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Gabriel Hondet <gabrielhondet <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 31 Jan 2019 17:08:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
* gnu/packages/ocaml.scm (dune): Update to 1.6.3.
---
gnu/packages/ocaml.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index a32cee44d..986e435f4 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1391,14 +1391,14 @@ coverage information.")
(define-public dune
(package
(name "dune")
- (version "1.2.1")
+ (version "1.6.3")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/ocaml/dune/releases/"
"download/" version "/dune-" version ".tbz"))
(sha256
(base32
- "00c5dbm4hkdapc2i7pg07b2lj8sv6ly38qr7zid58cdmbmzq21z9"))))
+ "0dmf0wbfmgdy5plz1bjiisc2hjgblvxsnrqjmw2c8y45v1h23mdz"))))
(build-system ocaml-build-system)
(arguments
`(#:tests? #f; require odoc
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Thu, 31 Jan 2019 17:11:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
* gnu/packages/ocaml.scm (sexplib0): Update to 0.12-preview.120.18+252.
---
gnu/packages/ocaml.scm | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 986e435f4..5f95591d9 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4903,27 +4903,37 @@ exclusion algorithms are typical examples of such systems.")
(define-public ocaml-sexplib0
(package
(name "ocaml-sexplib0")
- (version "0.11.0")
+ (version "0.12-preview.120.18+252")
(home-page "https://github.com/janestreet/sexplib0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url (string-append home-page ".git"))
- (commit (string-append "v" version))))
+ (commit "7e602a00a9b7c037f3717cc60577a2aad8941830")))
(file-name (git-file-name name version))
(sha256
(base32
- "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
+ "0hrxy52nbnrd9l9v66klghsdy7xnbsjk85fb1rdkhcjcr38jnmad"))))
(build-system dune-build-system)
(arguments
- '(#:tests? #f)) ;no tests
+ '(#:tests? #f ;no tests
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (invoke "dune" "install"
+ (string-append "--libdir="
+ (assoc-ref outputs "out")
+ "/lib/ocaml/site-lib")
+ (string-append "--prefix="
+ (assoc-ref outputs "out"))))))))
(synopsis "Library containing the definition of S-expressions and some
base converters")
(description "Part of Jane Street's Core library The Core suite of
libraries is an industrial strength alternative to OCaml's standard library
that was developed by Jane Street, the largest industrial user of OCaml.")
-(license license:expat)))
+ (license license:expat)))
(define-public ocaml-parsexp
(package
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Thu, 31 Jan 2019 17:12:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
---
gnu/packages/ocaml.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 5f95591d9..946360833 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5116,7 +5116,17 @@ a more consistent API.")
"0bnhihl1w31as5w2czly1v3d6pbir9inmgsjg2cj6aaj9v1dzd85"))))
(build-system dune-build-system)
(arguments
- '(#:tests? #f)) ;no tests
+ '(#:tests? #f ;no tests
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (invoke "dune" "install"
+ (string-append "--prefix=" out)
+ (string-append "--libdir=" out
+ "/lib/ocaml/site-lib/")))
+ #t)))))
(synopsis "Shared @code{@@deriving} plugin registry")
(description
"Ppx_derivers is a tiny package whose sole purpose is to allow
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Thu, 31 Jan 2019 17:13:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
---
gnu/packages/ocaml.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 946360833..94b108961 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5090,7 +5090,18 @@ is now @code{Ocaml_common.Ast_helper}.")
(inputs `(("ocaml-base" ,ocaml-base)
("ocaml-sexplib0" ,ocaml-sexplib0)))
(arguments
- '(#:tests? #f)) ;no tests
+ '(#:tests? #f ;no tests
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'install
+ ;; set libdir to use ocaml-site
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (invoke "dune" "install"
+ (string-append "--prefix=" out)
+ (string-append "--libdir=" out
+ "/lib/ocaml/site-lib")))
+ #t)))))
(synopsis "Standard IO library for OCaml")
(description
"Stdio implements simple input/output functionalities for OCaml. It
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Thu, 31 Jan 2019 17:14:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
* gnu/packages/ocaml.scm (ocaml-base): Update to 0.12-preview.120.18+252.
---
gnu/packages/ocaml.scm | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 94b108961..4c2579975 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5011,18 +5011,18 @@ functionality for parsing and pretty-printing s-expressions.")
(define-public ocaml-base
(package
(name "ocaml-base")
- (version "0.11.1")
+ (version "0.12-preview.120.18+252")
(home-page "https://github.com/janestreet/base")
(source
(origin
(method git-fetch)
(uri (git-reference
(url (string-append home-page ".git"))
- (commit (string-append "v" version))))
+ (commit "170e96604ea81a44354a7508d168eb341a92e060")))
(file-name (git-file-name name version))
(sha256
(base32
- "0j6xb4265jr41vw4fjzak6yr8s30qrnzapnc6rl1dxy8bjai0nir"))))
+ "166dhrgkwp2iy5cipzalvkyln94f73la1rnqkb07p3wz8yl41gb5"))))
(build-system dune-build-system)
(inputs
`(("ocaml-sexplib0" ,ocaml-sexplib0)))
@@ -5032,7 +5032,14 @@ functionality for parsing and pretty-printing s-expressions.")
(replace 'build
;; make warnings non fatal (jbuilder behaviour)
(lambda _
- (invoke "dune" "build" "@install" "--profile=release"))))))
+ (invoke "dune" "build" "@install" "--profile=release")))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (invoke "dune" "install"
+ (string-append "--prefix=" out)
+ (string-append "--libdir=" out
+ "/lib/ocaml/site-lib"))))))))
(synopsis
"Full standard library replacement for OCaml")
(description
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Thu, 31 Jan 2019 17:16:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
* gnu/packages/ocaml.scm (ocaml-migrate-parsetree): Update to 1.2.0.
---
gnu/packages/ocaml.scm | 37 ++++++++++++++++++++++++-------------
1 file changed, 24 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 4c2579975..bf12cc85c 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1419,24 +1419,35 @@ following a very simple s-expression syntax.")
(define-public ocaml-migrate-parsetree
(package
(name "ocaml-migrate-parsetree")
- (version "1.1.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://github.com/ocaml-ppx/"
- "ocaml-migrate-parsetree/releases/download/v"
- version "/ocaml-migrate-parsetree-"
- version ".tbz"))
- (sha256
- (base32
- "01zjp1q4hryqaxv4apkjd868fycz2kf887r6lkb6x2a545h1lh7f"))))
+ (version "1.2.0")
+ (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (sha256
+ (base32
+ "16kas19iwm4afijv3yxd250s08absabmdcb4yj57wc8r4fmzv5dm"))))
(build-system dune-build-system)
(arguments
`(#:tests? #f
- #:jbuild? #t))
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'install
+ ;; set libdir to use ocaml-site
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (invoke "dune" "install"
+ (string-append "--prefix=" out)
+ (string-append "--libdir=" out
+ "/lib/ocaml/site-lib")))
+ #t)))))
(propagated-inputs
- `(("ocamlbuild" ,ocamlbuild)
+ `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
+ ("ocamlbuild" ,ocamlbuild)
("ocaml-result" ,ocaml-result)))
- (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
(synopsis "OCaml parsetree convertor")
(description "This library converts between parsetrees of different OCaml
versions. For each version, there is a snapshot of the parsetree and conversion
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Thu, 31 Jan 2019 17:17:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
---
gnu/packages/ocaml.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index bf12cc85c..8abbbab71 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5082,7 +5082,18 @@ provided by companion libraries such as
"03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
(build-system dune-build-system)
(arguments
- '(#:tests? #f)) ;no tests
+ '(#:tests? #f ;no tests
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'install
+ ;; set libdir to use ocaml-site
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (invoke "dune" "install"
+ (string-append "--prefix=" out)
+ (string-append "--libdir=" out
+ "/lib/ocaml/site-lib")))
+ #t)))))
(synopsis "Compiler libraries repackaged")
(description "This packaeg simply repackages the OCaml compiler libraries
so they don't expose everything at toplevel. For instance, @code{Ast_helper}
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Thu, 31 Jan 2019 17:18:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
* gnu/packages/ocaml.scm (ocaml-ppxlib): Update to 0.5.0.
---
gnu/packages/ocaml.scm | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 8abbbab71..66a200520 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5177,7 +5177,7 @@ as part of the same ocaml-migrate-parsetree driver.")
(define-public ocaml-ppxlib
(package
(name "ocaml-ppxlib")
- (version "0.4.0")
+ (version "0.5.0")
(home-page "https://github.com/ocaml-ppx/ppxlib")
(source
(origin
@@ -5188,7 +5188,7 @@ as part of the same ocaml-migrate-parsetree driver.")
(file-name (git-file-name name version))
(sha256
(base32
- "1nr4igf5m4prvigvv470dnhfdhdw0p6hz6zw8gnm5bzcv7s2lg5l"))))
+ "0d2nyp4mlx7m3vdvcdhs51x570vw30j645yfbwlhjpwdd8243fya"))))
(build-system dune-build-system)
(inputs
`(("ocaml-base" ,ocaml-base)
@@ -5218,6 +5218,14 @@ as part of the same ocaml-migrate-parsetree driver.")
(("#use \"topfind\";;" all)
(string-append "#directory \"" findlib-libdir "\"\n"
all))))
+ #t))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (invoke "dune" "install"
+ (string-append "--prefix=" out)
+ (string-append "--libdir=" out
+ "/lib/ocaml/site-lib/")))
#t)))))
(synopsis
"Base library and tools for ppx rewriters")
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Thu, 31 Jan 2019 17:23:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
* gnu/packages/ocaml.scm (ocaml-ppx-inline-test): New variable.
---
gnu/packages/ocaml.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 66a200520..efbd8da18 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4705,6 +4705,47 @@ Dedukti files.")
syntax checking on dedukti files.")
(license license:cecill-b))))
+(define-public ocaml-ppx-inline-test
+ (package
+ (name "ocaml-ppx-inline-test")
+ (version "0.12-preview.120.18+252")
+ (home-page "https://github.com/janestreet/ppx_inline_test")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit "f594c2d98c9ef03009893cbddb1ad061e883bf7f")))
+ (sha256
+ (base32
+ "0b1n5xs429d93ysdq6vhg73rkh3r69fx78si8ls8jjgzg2svxald"))))
+ (build-system dune-build-system)
+ (arguments
+ `(#:tests? #f ;see home page README for further information
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (invoke "dune" "install"
+ (string-append "--prefix=" out)
+ (string-append "--libdir=" out
+ "/lib/ocaml/site-lib")))
+ #t)))))
+ (inputs
+ `(("ocaml-base" ,ocaml-base)
+ ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
+ ("ocaml-compiler-libs" ,ocaml-compiler-libs)
+ ("ocaml-sexplib0" ,ocaml-sexplib0)
+ ("ocaml-stdio" ,ocaml-stdio)
+ ("ocaml-ppxlib" ,ocaml-ppxlib)))
+ (synopsis
+ "Syntax extension for writing in-line tests in ocaml code")
+ (description
+ "Part of the Jane Street's PPX rewriters collection.")
+ (license license:expat)))
+
(define-public ocaml-biniou
(package
(name "ocaml-biniou")
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Thu, 31 Jan 2019 17:29:01 GMT)
Full text and
rfc822 format available.
Message #32 received at 34265 <at> debbugs.gnu.org (full text, mbox):
Le 31 janvier 2019 17:20:24 GMT+01:00, Gabriel Hondet <gabrielhondet <at> gmail.com> a écrit :
>
>* gnu/packages/ocaml.scm (sexplib0): Update to 0.12-preview.120.18+252.
>---
> gnu/packages/ocaml.scm | 20 +++++++++++++++-----
> 1 file changed, 15 insertions(+), 5 deletions(-)
>
>diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
>index 986e435f4..5f95591d9 100644
>--- a/gnu/packages/ocaml.scm
>+++ b/gnu/packages/ocaml.scm
>@@ -4903,27 +4903,37 @@ exclusion algorithms are typical examples of
>such systems.")
> (define-public ocaml-sexplib0
> (package
> (name "ocaml-sexplib0")
>- (version "0.11.0")
>+ (version "0.12-preview.120.18+252")
> (home-page "https://github.com/janestreet/sexplib0")
> (source
> (origin
> (method git-fetch)
> (uri (git-reference
> (url (string-append home-page ".git"))
>- (commit (string-append "v" version))))
>+ (commit "7e602a00a9b7c037f3717cc60577a2aad8941830")))
> (file-name (git-file-name name version))
> (sha256
> (base32
>- "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
>+ "0hrxy52nbnrd9l9v66klghsdy7xnbsjk85fb1rdkhcjcr38jnmad"))))
> (build-system dune-build-system)
> (arguments
>- '(#:tests? #f)) ;no tests
>+ '(#:tests? #f ;no tests
>+ #:phases
>+ (modify-phases %standard-phases
>+ (replace 'install
>+ (lambda* (#:key outputs #:allow-other-keys)
>+ (invoke "dune" "install"
>+ (string-append "--libdir="
>+ (assoc-ref outputs "out")
>+ "/lib/ocaml/site-lib")
>+ (string-append "--prefix="
>+ (assoc-ref outputs "out"))))))))
> (synopsis "Library containing the definition of S-expressions and some
> base converters")
> (description "Part of Jane Street's Core library The Core suite of
>libraries is an industrial strength alternative to OCaml's standard
>library
>that was developed by Jane Street, the largest industrial user of
>OCaml.")
>-(license license:expat)))
>+ (license license:expat)))
>
> (define-public ocaml-parsexp
> (package
Hi Gabriel, thanks for these patches!
We usually don't use beta,preview or otherwise unreleased software in guix. The opam website still has 0.11.0 as the latest version. What's the reason behind this change?
Tge libdir thing is worrying. Is it now needed with newer versions of dune? Shouldn't we rather modify the dure-build-system?
These questions apply to other packages in the series, so I'll refrain from pushing anything for now.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Thu, 31 Jan 2019 17:51:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Julien,
On Thu 31 Jan 2019 at 18:28 Julien Lepiller wrote:
> We usually don't use beta,preview or otherwise unreleased software in guix. The opam website still has 0.11.0 as the latest version. What's the reason behind this change?
Some packages still use jbuilder things and other use dune ones in the
0.11.x versions of jane street packages. It resulted in errors with, for
instance ppxlib, who kept files in jbuilder syntax (although the file
was named ppxlib.dune). In the 0.12 preview, everything uses dune.
> Tge libdir thing is worrying.
Concerning the =libdir=, it seems that Jane Street installs by default
everything to e.g. =lib/sexplib0/= directly (or =lib/ocaml/sexplib0= I
don't remember), but not in =lib/ocaml/site-lib/=, resulting in
libraries not found.
> Is it now needed with newer versions of dune?
Curiously, this was already an issue, as the ~janestreet-origin~
function shows in =ocaml.scm= but it disappeared in the 0.10/0.11
series, as I packaged ~ocaml-sexplib0~ &c. without any issue; and it
reappeared when upgrading dune to 1.6.3. So it seems that it is needed
with the new version of dune.
> Shouldn't we rather modify the dure-build-system?
It would seem to be a better idea. I can give it a try.
> These questions apply to other packages in the series, so I'll refrain from pushing anything for now.
Indeed.
Gabriel
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Fri, 01 Feb 2019 08:23:02 GMT)
Full text and
rfc822 format available.
Message #38 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
On Thu 31 Jan 2019 at 18:49 Gabriel Hondet wrote:
>> Tge libdir thing is worrying.
>
> Concerning the =libdir=, it seems that Jane Street installs by default
> everything to e.g. =lib/sexplib0/= directly (or =lib/ocaml/sexplib0= I
> don't remember), but not in =lib/ocaml/site-lib/=, resulting in
> libraries not found.
The new behaviour of dune is to follow the prefix given, see
[[https://dune.readthedocs.io/en/latest/usage.html#destination]].
As the prefix is given, findlib is not consulted and everything is
installed directly into =out/lib=.
So I guess we have to add the flag ~--libdir=(string-append (assoc-ref
%outputs "out") "/lib/ocaml/site-lib/")~ during the install phase
Or we can keep the installation process but modify the OCAMLPATH
variable to search not in =lib/ocaml/site-lib= but in =lib/=.
Gabriel
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Fri, 01 Feb 2019 08:48:02 GMT)
Full text and
rfc822 format available.
Message #41 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
* gnu/packages/ocaml.scm (dune): Update to 1.6.3.
* guix/build/dune-build-system.scm
---
gnu/packages/ocaml.scm | 4 ++--
guix/build/dune-build-system.scm | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index a32cee44d..986e435f4 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1391,14 +1391,14 @@ coverage information.")
(define-public dune
(package
(name "dune")
- (version "1.2.1")
+ (version "1.6.3")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/ocaml/dune/releases/"
"download/" version "/dune-" version ".tbz"))
(sha256
(base32
- "00c5dbm4hkdapc2i7pg07b2lj8sv6ly38qr7zid58cdmbmzq21z9"))))
+ "0dmf0wbfmgdy5plz1bjiisc2hjgblvxsnrqjmw2c8y45v1h23mdz"))))
(build-system ocaml-build-system)
(arguments
`(#:tests? #f; require odoc
diff --git a/guix/build/dune-build-system.scm b/guix/build/dune-build-system.scm
index fcc2d6567..00b0c7c40 100644
--- a/guix/build/dune-build-system.scm
+++ b/guix/build/dune-build-system.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Julien Lepiller <julien <at> lepiller.eu>
+;;; Copyright © 2019 Gabriel Hondet <gabrielhondet <at> gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -49,7 +50,8 @@
"Install the given package."
(let ((out (assoc-ref outputs "out"))
(program (if jbuild? "jbuilder" "dune")))
- (invoke program install-target "--prefix" out))
+ (invoke program install-target "--prefix" out "--libdir"
+ (string-append out "/lib/ocaml/site-lib")))
#t)
(define %standard-phases
--
2.20.1
On Fri 01 Feb 2019 at 09:22 Gabriel Hondet wrote:
> So I guess we have to add the flag ~--libdir=(string-append (assoc-ref
> %outputs "out") "/lib/ocaml/site-lib/")~ during the install phase
So I have tried, and it works like a charm. So here is a 3-patch-only
version of my 9 previous patches, without any beta version.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Fri, 01 Feb 2019 08:50:02 GMT)
Full text and
rfc822 format available.
Message #44 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
* gnu/packages/ocaml.scm (ocaml-migrate-parsetree): Update to 1.2.0.
---
gnu/packages/ocaml.scm | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 986e435f4..a1f9e7996 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1419,24 +1419,24 @@ following a very simple s-expression syntax.")
(define-public ocaml-migrate-parsetree
(package
(name "ocaml-migrate-parsetree")
- (version "1.1.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://github.com/ocaml-ppx/"
- "ocaml-migrate-parsetree/releases/download/v"
- version "/ocaml-migrate-parsetree-"
- version ".tbz"))
- (sha256
- (base32
- "01zjp1q4hryqaxv4apkjd868fycz2kf887r6lkb6x2a545h1lh7f"))))
+ (version "1.2.0")
+ (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (sha256
+ (base32
+ "16kas19iwm4afijv3yxd250s08absabmdcb4yj57wc8r4fmzv5dm"))))
(build-system dune-build-system)
(arguments
- `(#:tests? #f
- #:jbuild? #t))
+ `(#:tests? #f))
(propagated-inputs
- `(("ocamlbuild" ,ocamlbuild)
+ `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
+ ("ocamlbuild" ,ocamlbuild)
("ocaml-result" ,ocaml-result)))
- (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
(synopsis "OCaml parsetree convertor")
(description "This library converts between parsetrees of different OCaml
versions. For each version, there is a snapshot of the parsetree and conversion
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34265
; Package
guix-patches
.
(Fri, 01 Feb 2019 08:51:01 GMT)
Full text and
rfc822 format available.
Message #47 received at 34265 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
* gnu/packages/ocaml.scm (ocaml-ppx-inline-test): New variable.
---
gnu/packages/ocaml.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index a1f9e7996..2d33db1c0 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4694,6 +4694,39 @@ Dedukti files.")
syntax checking on dedukti files.")
(license license:cecill-b))))
+(define-public ocaml-ppx-inline-test
+ (package
+ (name "ocaml-ppx-inline-test")
+ (version "0.11.0")
+ (home-page "https://github.com/janestreet/ppx_inline_test")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (sha256
+ (base32
+ "0b1n5xs429d93ysdq6vhg73rkh3r69fx78si8ls8jjgzg2svxald"))))
+ (build-system dune-build-system)
+ (arguments
+ `(#:tests? #f ;see home page README for further information
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure))))
+ (inputs
+ `(("ocaml-base" ,ocaml-base)
+ ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
+ ("ocaml-compiler-libs" ,ocaml-compiler-libs)
+ ("ocaml-sexplib0" ,ocaml-sexplib0)
+ ("ocaml-stdio" ,ocaml-stdio)
+ ("ocaml-ppxlib" ,ocaml-ppxlib)))
+ (synopsis
+ "Syntax extension for writing in-line tests in ocaml code")
+ (description
+ "Part of the Jane Street's PPX rewriters collection.")
+ (license license:expat)))
+
(define-public ocaml-biniou
(package
(name "ocaml-biniou")
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Julien Lepiller <julien <at> lepiller.eu>
:
You have taken responsibility.
(Mon, 04 Feb 2019 21:13:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Gabriel Hondet <gabrielhondet <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 04 Feb 2019 21:13:02 GMT)
Full text and
rfc822 format available.
Message #52 received at 34265-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Pushed as 625a3daa12217d7cd162149dcba5657237bb9455 and following. Thank
you!
[Message part 2 (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 05 Mar 2019 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 45 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.