unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37940: endless "try upgrading both" cycles
@ 2019-10-27  9:54 Arne Babenhauserheide
  2019-10-27 17:37 ` Mark H Weaver
  0 siblings, 1 reply; 6+ messages in thread
From: Arne Babenhauserheide @ 2019-10-27  9:54 UTC (permalink / raw)
  To: 37940

[-- Attachment #1: Type: text/plain, Size: 3112 bytes --]

Hi,


When installing a package while some packages are not up to date, guix
can require adding more and more packages to guix install:


$ LANG=C guix install gtk+ dbus dbus-c++ dbus-glib glib libsoup rest libnotify poppler pcre libffi
The following packages will be upgraded:
   dbus	1.12.12 -> 1.12.16	/gnu/store/nlb24nrrrkn2h9vflnqigcf2hx58rvyx-dbus-1.12.16
   dbus-c++	0.9.0 -> 0.9.0	/gnu/store/f67vzh5hp4jd2y34hiz8jdd9wymv1j8x-dbus-c++-0.9.0
   dbus-glib	0.108 -> 0.108	/gnu/store/0riy07j7njqf2avcr9n5asrdxapd2np4-dbus-glib-0.108
   glib	2.56.3 -> 2.60.6	/gnu/store/fbnpd7vjifm6ijyij4hi18mnsnf76983-glib-2.60.6
   libsoup	2.66.2 -> 2.68.2	/gnu/store/pabg3nkgmxg5cglimz7fklnk4n4dypb1-libsoup-2.68.2
   rest	0.8.1 -> 0.8.1	/gnu/store/xpvpfhf93rz4jkvi9pp2p5cvh4jcbv1h-rest-0.8.1
   libnotify	0.7.7 -> 0.7.7	/gnu/store/djpm5rvn35aaasfsgh7y3kqis71av5fy-libnotify-0.7.7
   poppler	0.72.0 -> 0.79.0	/gnu/store/8xysjsr4nh72m4334vff987x52pxyfmn-poppler-0.79.0
   pcre	8.42 -> 8.43	/gnu/store/5j6w0x3aq0i5r9565w92lrh016vlmv2d-pcre-8.43
   libffi	3.2.1 -> 3.2.1	/gnu/store/ain96mrdwqd4s9shdd3s7m4syp5icdx5-libffi-3.2.1

The following package will be installed:
   gtk+	3.24.10	/gnu/store/6x13nr57i1qml20kjl30l7b767cw0d0b-gtk+-3.24.10

guix install: error: profile contains conflicting entries for util-linux
guix install: error:   first entry: util-linux@2.34 /gnu/store/xymkwf57x988q8cny2is1dgzrbr9xdfi-util-linux-2.34
guix install: error:    ... propagated from glib@2.60.6
guix install: error:    ... propagated from poppler@0.79.0
guix install: error:   second entry: util-linux@2.32.1 /gnu/store/8k4pnixpz73kxvxbjqajgbprjjmmgpxy-util-linux-2.32.1
hint: Try upgrading both `poppler' and `util-linux', or remove one of them from the profile.


Since Guix already knows about these requirements, it would be great if
I could tell it to just pull in all additional updates to be able to
install the package. Or at least tell me about all the required upgrades
in one step. Something like

guix install: error: profile contains conflicting entries
guix install: error: conflict N: util-linux
guix install: error:   first entry: util-linux@2.34 /gnu/store/xymkwf57x988q8cny2is1dgzrbr9xdfi-util-linux-2.34
guix install: error:    ... propagated from glib@2.60.6
guix install: error:    ... propagated from poppler@0.79.0
guix install: error:   second entry: util-linux@2.32.1 /gnu/store/8k4pnixpz73kxvxbjqajgbprjjmmgpxy-util-linux-2.32.1
guix install: error: conflict N+1: util-linux
guix install: error:   first entry: util-linux@2.34 /gnu/store/xymkwf57x988q8cny2is1dgzrbr9xdfi-util-linux-2.34
guix install: error:   second entry: util-linux@2.32.1 /gnu/store/8k4pnixpz73kxvxbjqajgbprjjmmgpxy-util-linux-2.32.1
guix install: error:    ... propagated from fontconfig@2.13.1

hint: Try upgrading removing dbus from the profile or upgrading all
dependent packages with
hint: guix install gtk+ dbus dbus-c++ dbus-glib glib libsoup rest libnotify poppler pcre libffi util-linux  ...


Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1076 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#37940: endless "try upgrading both" cycles
  2019-10-27  9:54 bug#37940: endless "try upgrading both" cycles Arne Babenhauserheide
@ 2019-10-27 17:37 ` Mark H Weaver
  2019-10-27 22:46   ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Mark H Weaver @ 2019-10-27 17:37 UTC (permalink / raw)
  To: Arne Babenhauserheide; +Cc: 37940

Hi Arne,

Arne Babenhauserheide <arne_bab@web.de> writes:
> When installing a package while some packages are not up to date, guix
> can require adding more and more packages to guix install:
[...]
> guix install: error: profile contains conflicting entries for util-linux
> guix install: error:   first entry: util-linux@2.34 /gnu/store/xymkwf57x988q8cny2is1dgzrbr9xdfi-util-linux-2.34
> guix install: error:    ... propagated from glib@2.60.6
> guix install: error:    ... propagated from poppler@0.79.0
> guix install: error:   second entry: util-linux@2.32.1 /gnu/store/8k4pnixpz73kxvxbjqajgbprjjmmgpxy-util-linux-2.32.1
> hint: Try upgrading both `poppler' and `util-linux', or remove one of them from the profile.

I just wanted to briefly mention that if you use the "declarative
approach" to specifying user profiles, via the --manifest option to
"guix package", you will avoid this problem entirely.  I've been happily
using that approach for years, and I literally cannot remember the last
time I saw a "conflicting entries" message.  I heartily recommend it.

      Mark

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#37940: endless "try upgrading both" cycles
  2019-10-27 17:37 ` Mark H Weaver
@ 2019-10-27 22:46   ` Ludovic Courtès
  2019-10-28  0:03     ` Arne Babenhauserheide
  2019-10-30 11:20     ` Diego Nicola Barbato
  0 siblings, 2 replies; 6+ messages in thread
From: Ludovic Courtès @ 2019-10-27 22:46 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 37940

Hi Arne & Mark,

Mark H Weaver <mhw@netris.org> skribis:

> Arne Babenhauserheide <arne_bab@web.de> writes:
>> When installing a package while some packages are not up to date, guix
>> can require adding more and more packages to guix install:
> [...]
>> guix install: error: profile contains conflicting entries for util-linux
>> guix install: error:   first entry: util-linux@2.34 /gnu/store/xymkwf57x988q8cny2is1dgzrbr9xdfi-util-linux-2.34
>> guix install: error:    ... propagated from glib@2.60.6
>> guix install: error:    ... propagated from poppler@0.79.0
>> guix install: error:   second entry: util-linux@2.32.1 /gnu/store/8k4pnixpz73kxvxbjqajgbprjjmmgpxy-util-linux-2.32.1
>> hint: Try upgrading both `poppler' and `util-linux', or remove one of them from the profile.
>
> I just wanted to briefly mention that if you use the "declarative
> approach" to specifying user profiles, via the --manifest option to
> "guix package", you will avoid this problem entirely.  I've been happily
> using that approach for years, and I literally cannot remember the last
> time I saw a "conflicting entries" message.  I heartily recommend it.

Indeed.  Even if you don’t use the declarative approach, usually just
upgrade everything (“guix upgrade”) and you won’t have any problems
either.

Problems arise when you try to upgrade only part of the packages.

Now, it doesn’t sound right that ‘util-linux’ is propagated from glib
and from poppler…?

Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#37940: endless "try upgrading both" cycles
  2019-10-27 22:46   ` Ludovic Courtès
@ 2019-10-28  0:03     ` Arne Babenhauserheide
  2019-10-31  9:28       ` Danny Milosavljevic
  2019-10-30 11:20     ` Diego Nicola Barbato
  1 sibling, 1 reply; 6+ messages in thread
From: Arne Babenhauserheide @ 2019-10-28  0:03 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37940

[-- Attachment #1: Type: text/plain, Size: 1971 bytes --]


Hi Mark and Ludovic,

Ludovic Courtès <ludo@gnu.org> writes:

> Hi Arne & Mark,
>
> Mark H Weaver <mhw@netris.org> skribis:
>> Arne Babenhauserheide <arne_bab@web.de> writes:
>>> When installing a package while some packages are not up to date, guix
>>> can require adding more and more packages to guix install:
>> [...]
>>> guix install: error: profile contains conflicting entries for util-linux
>>> guix install: error:   first entry: util-linux@2.34 /gnu/store/xymkwf57x988q8cny2is1dgzrbr9xdfi-util-linux-2.34
>>> guix install: error:    ... propagated from glib@2.60.6
>>> guix install: error:    ... propagated from poppler@0.79.0
>>> guix install: error:   second entry: util-linux@2.32.1 /gnu/store/8k4pnixpz73kxvxbjqajgbprjjmmgpxy-util-linux-2.32.1
>>> hint: Try upgrading both `poppler' and `util-linux', or remove one of them from the profile.
>>
>> I just wanted to briefly mention that if you use the "declarative
>> approach" to specifying user profiles, via the --manifest option to
>> "guix package", you will avoid this problem entirely.  I've been happily
>> using that approach for years, and I literally cannot remember the last
>> time I saw a "conflicting entries" message.  I heartily recommend it.

I’m just using guix install when I need a new package and guix remove
to clean up. Shouldn’t that be equivalent?

> Indeed.  Even if you don’t use the declarative approach, usually just
> upgrade everything (“guix upgrade”) and you won’t have any problems
> either.
>
> Problems arise when you try to upgrade only part of the packages.

This problem cuts in when the system is not fully up to date and I use
guix install.

> Now, it doesn’t sound right that ‘util-linux’ is propagated from glib
> and from poppler…?

Poppler needs glib at runtime and glib needs tools from util-linux at
runtime?

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1076 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#37940: endless "try upgrading both" cycles
  2019-10-27 22:46   ` Ludovic Courtès
  2019-10-28  0:03     ` Arne Babenhauserheide
@ 2019-10-30 11:20     ` Diego Nicola Barbato
  1 sibling, 0 replies; 6+ messages in thread
From: Diego Nicola Barbato @ 2019-10-30 11:20 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37940

Hello Ludo,

Ludovic Courtès <ludo@gnu.org> writes:


[...]


> Now, it doesn’t sound right that ‘util-linux’ is propagated from glib
> and from poppler…?

Glib propagates 'util-linux' since it was updated to 2.58.1 (and poppler
propagates glib).  This isn't the first time it's caused trouble [0].
Marius has proposed a patch to fix it, which is intended for
'core-updates' (It hasn't been pushed yet AFAIK).

Regards,

Diego

[0]: http://issues.guix.gnu.org/issue/37732

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#37940: endless "try upgrading both" cycles
  2019-10-28  0:03     ` Arne Babenhauserheide
@ 2019-10-31  9:28       ` Danny Milosavljevic
  0 siblings, 0 replies; 6+ messages in thread
From: Danny Milosavljevic @ 2019-10-31  9:28 UTC (permalink / raw)
  To: Arne Babenhauserheide; +Cc: 37940

[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]

Hi,

On Mon, 28 Oct 2019 01:03:48 +0100
Arne Babenhauserheide <arne_bab@web.de> wrote:

> > Now, it doesn’t sound right that ‘util-linux’ is propagated from glib
> > and from poppler…?  
> 
> Poppler needs glib at runtime and glib needs tools from util-linux at
> runtime?

That doesn't mean glib has to propagate the thing into the profile.

Quite the opposite, Guix is one of the few projects which rightly make the
distinction whether some dependency is an internal implementation detail of
a package or whether it's required in the public interface.

With glib's goal of abstracting stuff from UNIX away I seriously doubt they
intend util-*linux*, of all things, to be part of their public interface.

But you are right that Guix's glib propagates util-linux.  That is most likely
a bug, or it's because of pkg-config files (which also could be solved another
way).

Checking glib-2.50.3, none of their pkg-config files (.pc) mention libmount,
so not sure what's going on.

glib-2.60.6 uses meson which apparently doesn't use pkg-config (?).

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-10-31  9:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-27  9:54 bug#37940: endless "try upgrading both" cycles Arne Babenhauserheide
2019-10-27 17:37 ` Mark H Weaver
2019-10-27 22:46   ` Ludovic Courtès
2019-10-28  0:03     ` Arne Babenhauserheide
2019-10-31  9:28       ` Danny Milosavljevic
2019-10-30 11:20     ` Diego Nicola Barbato

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).