gst* plugins in non-default profile not found by webkitgtk browsers (e.g. epiphany)

  • Open
  • quality assurance status badge
Details
3 participants
  • Leo Prikler
  • Pierre Neidhardt
  • Marius Bakke
Owner
unassigned
Submitted by
Pierre Neidhardt
Severity
normal
P
P
Pierre Neidhardt wrote on 26 Oct 2019 12:48
(address . bug-guix@gnu.org)
87mudnaike.fsf@ambrevar.xyz
Recipe that fails:

Toggle snippet (5 lines)
guix remove gst-libav gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly
guix package -p foo -i gst-libav gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly epiphany
foo/bin/epiphany https://archive.org/details/guix-videos

Recipe that works

Toggle snippet (4 lines)
guix package -i gst-libav gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly epiphany
foo/bin/epiphany https://archive.org/details/guix-videos

--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl20JIEACgkQm9z0l6S7
zH82Ywf+LY5fpN+Tn7xjyb9g7mYgjJo7dWsELsL4ylg0nDxztiyS5/J6rINhCswd
KRQX3q7kn4F6SPi6E4KfVhTpvADgEJmZGnYgDk1Zr8iXU9kp98YnZQ5q0Qk5UuOa
9Z0qynutr9GBe7+yEf31ufkdgqAH/6VWcCtUiZbDsIDgNN/wpFkxWLkbQi2KrdOj
B2PrluKxRqoZniRMvysf9iWK3fWWzpRMrfMKO0UQl5W+8tl/J+ok6yfp9NtuIL8J
irIv/BBU0lRob0Tgqt4Il2hBXe0qnlxNvzWtnZnXFsMPjn40ZxbeQstccR1c7zK8
ayb4riSRifUehyIbj2WI4uJWnzG++w==
=Im+5
-----END PGP SIGNATURE-----

M
M
Marius Bakke wrote on 28 Oct 2019 23:53
87ftjctrce.fsf@devup.no
Pierre Neidhardt <mail@ambrevar.xyz> writes:

Toggle quote (15 lines)
> Recipe that fails:
>
> --8<---------------cut here---------------start------------->8---
> guix remove gst-libav gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly
> guix package -p foo -i gst-libav gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly epiphany
> foo/bin/epiphany https://archive.org/details/guix-videos
> --8<---------------cut here---------------end--------------->8---
>
> Recipe that works
>
> --8<---------------cut here---------------start------------->8---
> guix package -i gst-libav gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly epiphany
> foo/bin/epiphany https://archive.org/details/guix-videos
> --8<---------------cut here---------------end--------------->8---

This only works when you already have 'gstreamer' in the profile, right?

I don't think the first example can ever work short of wrapping the
executable?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl23cVEACgkQoqBt8qM6
VPorAQf8CdnFBwnrUDa71lnvCijN2jDHL9H02WELi65/JRE7V/NpbLYqZFMA7Tu/
MAKEvxz3YHsO6mue+16d+cLK2DLFMkP69l0m7ZUi3+HmKr1DiWr3mdC+aFK7+RQs
0930lIaiMPLSTFrP35JX4Za5ZSkScr1WRvZQBTrMcODuJO/MRIQV026j7kRzUyNY
dQ/i2aCs735FT07qm5x3bHsSZMK7PE2xb1RKL3GY8ojc/ptg/j4zrlqEK5w3Eb1c
ZbS9uvE4FZBibVG9xsgoZAeOKqY9C0mJhrHIRqMVchTC+LY/RlKNdtn+OPqHD+p/
4cdgGLqqhxT94+Eknp9AXAMXMYQTiw==
=XnRQ
-----END PGP SIGNATURE-----

P
P
Pierre Neidhardt wrote on 29 Oct 2019 13:13
874kzru4v7.fsf@ambrevar.xyz
Hi Marius!

Toggle quote (2 lines)
> This only works when you already have 'gstreamer' in the profile, right?

`gstreamer' is propagated by the gst plugins.

Toggle quote (3 lines)
> I don't think the first example can ever work short of wrapping the
> executable?

WebKitGTK-based browsers look for the plugins in the GST_PLUGIN_PATH
and the GST_PLUGIN_SYSTEM_PATH environment variables.



I retested today: actually I realized that it works if I clear
~/.cache/gstreamer-1.0 :p

The problem is that the cache goes stale when the path to the plugins
changes.
It's a rather general problem with Guix, I think it's been discussed
before.

If we had a way to test for the cache staleness, we could add some code
to the Epiphany wrapper that clears the cache if stale.

--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl24LNwACgkQm9z0l6S7
zH9HFQf+P+YHpKwYFPPFt1VwXZvClb5Le7kudmOAL0nz+rzmw29nyO+43M/96W+3
SMe3RRhWWqs6Ppy1RO4bOCG+xV8ovDsy7nvv8E47nJrprobUpOJjFua3+BbhYyUm
QdG/JwhYCoEobaeQt8oYDj7ln7kG7FoNH1Hrs4ZrG+XyAtquV965bf4ecI5LR9wj
Bix+bycgOsjeg9aqP8/qAXqqMHPE0+pGohjZTmdOEovcsLoj0jWoixF5tZB0xC1i
HBolpA2aglf5Z5TYBSLVP9S+0LIjJaRssmeZwkcMp9XgB1hxfIBYT2BDuzp0s6Li
IZ0nbJa+MJn+BmQLaeOTO21hYR+2uw==
=uoKV
-----END PGP SIGNATURE-----

L
L
Leo Prikler wrote on 11 May 2021 17:00
Re: gst* plugins in non-default profile not found by webkitgtk browsers (e.g. epiphany)
3793ca4f2e6335136462bd832a7d7dddd7d6dced.camel@student.tugraz.at
Am Samstag, den 26.10.2019, 12:48 +0200 schrieb Pierre Neidhardt:
Toggle quote (9 lines)
> Recipe that fails:
>
> --8<---------------cut here---------------start------------->8---
> guix remove gst-libav gst-plugins-bad gst-plugins-base gst-plugins-
> good gst-plugins-ugly
> guix package -p foo -i gst-libav gst-plugins-bad gst-plugins-base
> gst-plugins-good gst-plugins-ugly epiphany
> foo/bin/epiphany https://archive.org/details/guix-videos
> --8<---------------cut here---------------end--------------->8---
How is this recipe supposed to work?
You ought to source foo/etc/profile first.

Toggle quote (8 lines)
> Recipe that works
>
> --8<---------------cut here---------------start------------->8---
> guix package -i gst-libav gst-plugins-bad gst-plugins-base gst-
> plugins-good gst-plugins-ugly epiphany
> foo/bin/epiphany https://archive.org/details/guix-videos
> --8<---------------cut here---------------end--------------->8---
>
P
P
Pierre Neidhardt wrote on 12 May 2021 12:33
87tun8xmug.fsf@ambrevar.xyz
Hi Leo,

Toggle quote (3 lines)
> How is this recipe supposed to work?
> You ought to source foo/etc/profile first.

I forgot to mention this, but you are right, the profile must be sourced
first.

Anyways, as hinted above, the issue might be with the GStreamer cache
going stale.

I can't reproduce right now though.

--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----

iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAmCbrxcSHG1haWxAYW1i
cmV2YXIueHl6AAoJEJvc9Jeku8x/OJMH/jniMSVnoGEq8bnuUwZGEepSvgNdJTQY
21H2vh+s4TTUmLjGFRs9Eeh82n6ZxWVQANJrqBMhMZHg/WDjMLW8E5S7GIAa8nnu
cj+jLQ/VURPRWg17Wv7/Z54DVl039/4pCy14K48v/hBBJ8pszE433jkX4UYwt6YY
ri3ZCAmzRTSWP4PbHPVY/IH50HOqe7EdUA43hhhRmjZhcqTvJf/+1KZQdtlTrkCk
dfxAt5hhvXR4wPJSclVrrCImgW898STtPJn7AjHHZDDX9wXpJk01oplDjLYIy9it
oYSlr4fi2gQKKH7DjK+4sqiGpPYI6/U2WZrzhfb4KKsrpZspsTDYShs=
=KsIf
-----END PGP SIGNATURE-----

?