[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unresolable collision between ocaml packages

From: Julien Lepiller
Subject: Re: Unresolable collision between ocaml packages
Date: Thu, 06 Jun 2019 15:16:31 +0200
User-agent: K-9 Mail for Android

Le 6 juin 2019 08:06:42 GMT+02:00, Julien Lepiller <address@hidden> a écrit :
>Le 5 juin 2019 22:21:37 GMT+02:00, Brett Gilio <address@hidden> a
>écrit :
>>Hi all,
>>I like to make meta-packages that I can pass to `guix environment
>>--ad-hoc` for development. I have the following meta package for ocaml
>>(define-public meta-ocaml
>>  (package
>>   (inherit %meta-base)
>>   (name "meta-ocaml")
>>   (propagated-inputs
>>    `(("meta-emacs" ,meta-emacs)
>>      ("darcs" ,darcs)
>>      ("dune" ,dune)
>>      ("emacs-tuareg" ,emacs-tuareg)
>>      ("gcc-toolchain" ,gcc-toolchain)
>>      ("m4" ,m4)
>>      ("make" ,gnu-make)
>>      ("mercurial" ,mercurial)
>>      ("ocaml" ,ocaml)
>>      ("ocaml-base" ,ocaml-base)
>>      ("ocaml-core" ,ocaml-core)
>>      ("ocaml-ctypes" ,ocaml-ctypes)
>>      ("ocaml-findlib" ,ocaml-findlib)
>>      ("ocaml-merlin" ,ocaml-merlin)
>>      ("ocaml-ounit" ,ocaml-ounit)
>>      ("oocaml-parsexp"
>>       ,ocaml-parsexp)
>>      ("ocaml-utop" ,ocaml-utop)
>>      ("opam" ,opam)
>>      ("rsync" ,rsync)))))
>>When trying to use that in an environment, I am getting the following
>>backtrace claiming there is a collision that I assume is not getting
>>resolved in its usual fashion.
>>           6 (primitive-load
>>In guix/build/profiles.scm:
>>   157:2  5 (build-profile "/gnu/store/c2khaalrpy7cdyr8k4lawgqnbzs…"
>>In unknown file:
>>          4 (hash-for-each #<procedure 105c180 at guix/build/union…>
>>          3 (hash-for-each #<procedure 10b3900 at guix/build/union…>
>>          2 (hash-for-each #<procedure 110b180 at guix/build/union…>
>>          1 (hash-for-each #<procedure 14368c0 at guix/build/union…>
>>          0 (scm-error misc-error #f "~A ~S" ("union-build: col…" …)
>>ERROR: In procedure scm-error:
>>union-build: collision between file and directories ((files
>>If formatting is bad in this email, here are plaintext pastes.
>>meta-packages.scm :
>>backtrace :
>Looks like ocaml-num's stubslib is a file, but it should be a
>directory. I'll investigate, thanks for reporting this!

This is now fixed in master. I also found a reproducibility issue in cmdliner 
while making sure my change didn't break anything and it's also fixed in Guix, 
and a patch was sent upstream :)

So you can run guix pull and enjoy your metapackage!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]