unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: divoplade <d@divoplade.fr>
Cc: 44452@debbugs.gnu.org
Subject: bug#44452: Clash between guile-3.0 and guile-3.0-latest
Date: Wed, 02 Dec 2020 12:11:12 +0100	[thread overview]
Message-ID: <86v9dk1mzz.fsf@gmail.com> (raw)
In-Reply-To: <2b467f85aaed6c1a2178278678da648e2170d6a1.camel@divoplade.fr>

Hi,

On Wed, 02 Dec 2020 at 10:10, divoplade <d@divoplade.fr> wrote:
> Le mardi 01 décembre 2020 à 23:19 +0100, zimoun a écrit :
>> Moreover, %base-packages already contains Guile (’guile-3.0-latest’),
>> therefore I am not sure to understand what the bug is about
>> specifically.
>
> That's the problem. I need to remove it from %base-packages, otherwise
> the packages that propagate guile 3.0.2 can't be installed.

Sorry if I am slow, but I do not see why this use-case should be a bug.
For example,

--8<---------------cut here---------------start------------->8---
$ cat /tmp/manif.scm
(use-modules (gnu packages guile))
(packages->manifest
 (list
  guile-3.0-latest
  guile-3.0))

$ guix package -m /tmp/manif.scm -p /tmp/bug
The following packages will be installed:
   guile 3.0.2
   guile 3.0.4

guix package: error: profile contains conflicting entries for guile
guix package: error:   first entry: guile@3.0.4 /gnu/store/ah16zr8mmfkqy23rr7jy5a842ca1q9h1-guile-3.0.4
guix package: error:   second entry: guile@3.0.2 /gnu/store/18hp7flyb3yid3yp49i6qcdq0sbi5l1n-guile-3.0.2
hint: You cannot have two different versions or variants of `guile' in the same profile.
--8<---------------cut here---------------end--------------->8---

And this appends for any package providing multiversions (gcc, clang,
guile, etc.).  From my understanding, it is a feature. :-)

Using the option ’--allow-collisions’ avoids the error but then the
version you get is the first in the list, which could be prone error.
That’s why I am not convinced it makes sense here.

Said explicitly, if you do not want in your profile the package X
belonging to %base-packages , do not add the %base-packages list. :-) Or
create your custom list (remove the ones you do not want). I do not see
what could done on this side.  The list %base-packages is 40 packages
considered as “kind of minimal” to be able to do minimal stuff.


In one of your message, you were speaking about propagated inputs.
Which is the use-case for the option ’--allow-collisions’, IIUC.  Do you
have examples of such use-cases?  Something where:

--8<---------------cut here---------------start------------->8---
    (packages (append (list
                      pkg-1
                      pkg-2
                      …
                      %base-packages))
--8<---------------cut here---------------end--------------->8---

leads to an error or an unexpected result?


All the best,
simon




  reply	other threads:[~2020-12-02 11:29 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-04 18:47 bug#44452: Clash between guile-3.0 and guile-3.0-latest divoplade
2020-11-04 20:15 ` zimoun
2020-11-05  7:02   ` divoplade
2020-11-05  7:39   ` divoplade
2020-11-05 10:29 ` Leo Prikler
2020-11-05 14:48   ` divoplade
2020-11-05 15:29     ` zimoun
2020-11-06 10:07 ` Ludovic Courtès
2020-11-06 10:22   ` divoplade
2020-12-01 21:41     ` zimoun
2020-12-01 21:56       ` divoplade
2020-12-01 22:19         ` zimoun
2020-12-02  9:10           ` divoplade
2020-12-02 11:11             ` zimoun [this message]
2020-12-02 11:48               ` divoplade
2020-12-02 12:50                 ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86v9dk1mzz.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=44452@debbugs.gnu.org \
    --cc=d@divoplade.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).