all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Conflict with ffmpeg and mpv
@ 2024-10-04  9:22 Chris Keschnat
  2024-10-04 13:42 ` Felix Lechner via
  2024-10-04 15:15 ` Luis Felipe
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Keschnat @ 2024-10-04  9:22 UTC (permalink / raw)
  To: GUIX help list


Hello,
when upgrading a profile containing both mpv and ffmpeg, I get this
error:

#+begin_src sh
  guix package: error: profile contains conflicting entries for ffmpeg
  guix package: error:   first entry: ffmpeg@7.0.2 /gnu/store/xrllv211xv66hcyg19l3p9cd21yi9506-ffmpeg-7.0.2
  guix package: error:   second entry: ffmpeg@6.1.1 /gnu/store/0i6f7jaxs47yr0qk2l4dsm7ik0ag7w8d-ffmpeg-6.1.1
  guix package: error:    ... propagated from mpv@0.38.0
  hint: Try upgrading both `ffmpeg' and `mpv', or remove one of them from the profile.
#+end_src

This commit looks like it could be responsible, although I think I upgraded after 2024-09-07:
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=1ac27c7a66097cc5a3d445539bd45556a433e062

I am unsure about what the hint wants to tell me, because "upgrading
both" is exactly what I am trying to do.


Thank you


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

* Re: Conflict with ffmpeg and mpv
  2024-10-04  9:22 Conflict with ffmpeg and mpv Chris Keschnat
@ 2024-10-04 13:42 ` Felix Lechner via
  2024-10-04 15:15 ` Luis Felipe
  1 sibling, 0 replies; 3+ messages in thread
From: Felix Lechner via @ 2024-10-04 13:42 UTC (permalink / raw)
  To: Chris Keschnat; +Cc: GUIX help list

Hi Chris,

On Fri, Oct 04 2024, Chris Keschnat wrote:

>   guix package: error: profile contains conflicting entries for ffmpeg
>   guix package: error:   first entry: ffmpeg@7.0.2    [...]
>   guix package: error:   second entry: ffmpeg@6.1.1    [...]
>   guix package: error:    ... propagated from mpv@0.38.0

I believe your profile refers to both 'ffmpeg-7' and 'mpv'.  The latter
also propagates Ffmpeg but a lower version, namely 6.1.1. [1]

The versions cannot be used together in the same profile.  It's a simple
restriction because the /bin/ffmpeg path is already taken.

This is why many of us think that propagated inputs are "evil."  Mpv
should instead replace all invocations to Ffpmeg with the actual store
path to the version it requires.

As a solution, I would change "ffmpeg-7"---if that's what you have in
your profile---to "ffmpeg."  Alternatively, you could drop Ffmpeg from
your profile and rely on the version propagated by Mpv.

You can still use ffmpeg-7 via 'guix shell' if needed.

Kind regards
Felix

[1] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/video.scm#n1890


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

* Re: Conflict with ffmpeg and mpv
  2024-10-04  9:22 Conflict with ffmpeg and mpv Chris Keschnat
  2024-10-04 13:42 ` Felix Lechner via
@ 2024-10-04 15:15 ` Luis Felipe
  1 sibling, 0 replies; 3+ messages in thread
From: Luis Felipe @ 2024-10-04 15:15 UTC (permalink / raw)
  To: Chris Keschnat, GUIX help list


[-- Attachment #1.1.1: Type: text/plain, Size: 1591 bytes --]

Hi Chris,

On 4/10/24 9:22, Chris Keschnat wrote:
> Hello,
> when upgrading a profile containing both mpv and ffmpeg, I get this
> error:
>
> #+begin_src sh
>    guix package: error: profile contains conflicting entries for ffmpeg
>    guix package: error:   first entry: ffmpeg@7.0.2 /gnu/store/xrllv211xv66hcyg19l3p9cd21yi9506-ffmpeg-7.0.2
>    guix package: error:   second entry: ffmpeg@6.1.1 /gnu/store/0i6f7jaxs47yr0qk2l4dsm7ik0ag7w8d-ffmpeg-6.1.1
>    guix package: error:    ... propagated from mpv@0.38.0
>    hint: Try upgrading both `ffmpeg' and `mpv', or remove one of them from the profile.
> #+end_src
>
> This commit looks like it could be responsible, although I think I upgraded after 2024-09-07:
> https://git.savannah.gnu.org/cgit/guix.git/commit/?id=1ac27c7a66097cc5a3d445539bd45556a433e062
>
> I am unsure about what the hint wants to tell me, because "upgrading
> both" is exactly what I am trying to do.

The same happened to me in my recent profile upgrade. It was surprising 
to me as well because I thought that upgrading the whole profile 
using "guix package -m my-manifest.scm" would avoid these kinds of 
conflicts "entirely", as suggested in this related issue report, 
https://issues.guix.gnu.org/37940.

I'm not sure how useful the hint is. It has rarely worked for me to 
resolve any conflicts (https://issues.guix.gnu.org/42595#3). This case 
was no exception.

I ended up removing "ffmpeg" and "mpv" from my manifest to be able to 
upgrade the profile. After the profile was upgraded, I installed only 
"mpv" again.



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2881 bytes --]

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

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

end of thread, other threads:[~2024-10-04 15:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-04  9:22 Conflict with ffmpeg and mpv Chris Keschnat
2024-10-04 13:42 ` Felix Lechner via
2024-10-04 15:15 ` Luis Felipe

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.