environment container example in the manual does not work

  • Open
  • quality assurance status badge
Details
5 participants
  • Leo Prikler
  • Leo Famulari
  • Ludovic Courtès
  • Martin
  • zimoun
Owner
unassigned
Submitted by
zimoun
Severity
normal
Z
Z
zimoun wrote on 12 Mar 2021 11:56
eolie broken => unworking example from manual
(address . bug-guix@gnu.org)
86ft10iqsg.fsf@gmail.com
Hi,

The manual says:

guix environment --preserve='^DISPLAY$' --container --network \
--expose=/etc/machine-id \
--expose=/etc/ssl/certs/ \
--share=$HOME/.local/share/eolie/=$HOME/.local/share/eolie/ \
--ad-hoc eolie nss-certs dbus -- eolie

from

The result is:

Toggle snippet (11 lines)
Traceback (most recent call last):
File "/gnu/store/vd3j73jl7prq92w1343k9miiyzbiw2qz-eolie-0.9.101/bin/.eolie-real", line 20, in <module>
from eolie.application import Application
File "/gnu/store/vd3j73jl7prq92w1343k9miiyzbiw2qz-eolie-0.9.101/lib/python3.8/site-packages/eolie/application.py", line 19, in <module>
gi.require_version("Handy", "1")
File "/gnu/store/w2vbhjfbhiszlrjilnxniqrmkdpy0kr9-python-pygobject-3.34.0/lib/python3.8/site-packages/gi/__init__.py", line 129, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Handy not available


All the best,
simon
M
M
Martin wrote on 12 Mar 2021 12:44
48d28f8d-5347-69f2-38a0-39f900920eca@disroot.org
On 3/12/21 10:56 AM, zimoun wrote:
Toggle quote (13 lines)
> Hi,
>
> The manual says:
>
> guix environment --preserve='^DISPLAY$' --container --network \
> --expose=/etc/machine-id \
> --expose=/etc/ssl/certs/ \
> --share=$HOME/.local/share/eolie/=$HOME/.local/share/eolie/ \
> --ad-hoc eolie nss-certs dbus -- eolie
>
> from
> <https://guix.gnu.org/manual/devel/en/guix.html#Invoking-guix-environment>.

Btw. is it possible to enable sound for browsers in the guix container
like from above, for example by using the newest pipewire? Does anyone
ever test it?


Kind regards!
Martin
L
L
Leo Prikler wrote on 12 Mar 2021 18:55
[PATCH] gnu: eolie: Add missing inputs.
(address . 47097@debbugs.gnu.org)
20210312175541.22275-1-leo.prikler@student.tugraz.at
This fixes errors observed directly at launch of Eolie inside pure
environments. (See https://bugs.gnu.org/47097 for more information.)
It is still not possible to launch Eolie inside a container, however.

* gnu/packages/gnome.scm (eolie)[inputs]: Add libhandy and
gnome-settings-daemon.
---
gnu/packages/gnome.scm | 2 ++
1 file changed, 2 insertions(+)

Toggle diff (18 lines)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 5c6d247471..78dac0b357 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -6641,9 +6641,11 @@ almost all of them.")
("python-pygobject" ,python-pygobject)
("python-pycairo" ,python-pycairo)
("python-pycrypto" ,python-pycrypto)
+ ("libhandy" ,libhandy)
("libsecret" ,libsecret)
("gtkspell3" ,gtkspell3)
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
+ ("gnome-settings-daemon" ,gnome-settings-daemon) ; desktop-schemas are not enough
("webkitgtk" ,webkitgtk)))
(home-page "https://wiki.gnome.org/Apps/Eolie")
(synopsis "Web browser for GNOME")
--
2.30.1
L
L
Ludovic Courtès wrote on 18 Mar 2021 21:44
Re: bug#47097: eolie broken => unworking example from manual
(name . Leo Prikler)(address . leo.prikler@student.tugraz.at)(address . 47097@debbugs.gnu.org)
87czvwkx8e.fsf_-_@gnu.org
Hi,

Leo Prikler <leo.prikler@student.tugraz.at> skribis:

Toggle quote (8 lines)
> This fixes errors observed directly at launch of Eolie inside pure
> environments. (See <https://bugs.gnu.org/47097> for more information.)
> It is still not possible to launch Eolie inside a container, however.
> (See also <https://bugs.gnu.org/47106>.)
>
> * gnu/packages/gnome.scm (eolie)[inputs]: Add libhandy and
> gnome-settings-daemon.

LGTM, thanks!

Ludo’.
Z
Z
zimoun wrote on 24 Mar 2021 04:14
(name . Ludovic Courtès)(address . ludo@gnu.org)
868s6di6pz.fsf@gmail.com
Hi,

On Thu, 18 Mar 2021 at 21:44, Ludovic Courtès <ludo@gnu.org> wrote:
Toggle quote (12 lines)
> Leo Prikler <leo.prikler@student.tugraz.at> skribis:
>
>> This fixes errors observed directly at launch of Eolie inside pure
>> environments. (See <https://bugs.gnu.org/47097> for more information.)
>> It is still not possible to launch Eolie inside a container, however.
>> (See also <https://bugs.gnu.org/47106>.)
>>
>> * gnu/packages/gnome.scm (eolie)[inputs]: Add libhandy and
>> gnome-settings-daemon.
>
> LGTM, thanks!

I could have missed the commit, I guess this patch is not pushed. It
seems nice to have for the next release. Since it fixes an example from
the manual. :-)


Cheers,
simon
L
L
Leo Prikler wrote on 24 Mar 2021 09:07
(address . 47097@debbugs.gnu.org)
a999ae25c3d6ad99360887469c0d1cf38660ce0f.camel@student.tugraz.at
Am Mittwoch, den 24.03.2021, 04:14 +0100 schrieb zimoun:
Toggle quote (22 lines)
> Hi,
>
> On Thu, 18 Mar 2021 at 21:44, Ludovic Courtès <ludo@gnu.org> wrote:
> > Leo Prikler <leo.prikler@student.tugraz.at> skribis:
> >
> > > This fixes errors observed directly at launch of Eolie inside
> > > pure
> > > environments. (See <https://bugs.gnu.org/47097> for more
> > > information.)
> > > It is still not possible to launch Eolie inside a container,
> > > however.
> > > (See also <https://bugs.gnu.org/47106>;.)
> > >
> > > * gnu/packages/gnome.scm (eolie)[inputs]: Add libhandy and
> > > gnome-settings-daemon.
> >
> > LGTM, thanks!
>
> I could have missed the commit, I guess this patch is not pushed. It
> seems nice to have for the next release. Since it fixes an example
> from
> the manual. :-)
Sorry to disappoint you, but it only fixes *some* errors, not all of
them. I still haven't figured out how to meaningfully launch Eolie
inside a container, see https://bugs.gnu.org/47106 detailing my
bubblewrap-related issues doing so.

Regards,
Leo
Z
Z
zimoun wrote on 24 Mar 2021 10:23
block 47297 by 47097 and 47106
(address . control@debbugs.gnu.org)
86mtushpm3.fsf@gmail.com
block 47297 by 47097
block 47297 by 47106
thanks
L
L
Ludovic Courtès wrote on 24 Mar 2021 17:17
Re: bug#47097: eolie broken => unworking example from manual
(name . Leo Prikler)(address . leo.prikler@student.tugraz.at)
87y2eccyqw.fsf@gnu.org
Leo Prikler <leo.prikler@student.tugraz.at> skribis:

Toggle quote (26 lines)
> Am Mittwoch, den 24.03.2021, 04:14 +0100 schrieb zimoun:
>> Hi,
>>
>> On Thu, 18 Mar 2021 at 21:44, Ludovic Courtès <ludo@gnu.org> wrote:
>> > Leo Prikler <leo.prikler@student.tugraz.at> skribis:
>> >
>> > > This fixes errors observed directly at launch of Eolie inside
>> > > pure
>> > > environments. (See <https://bugs.gnu.org/47097> for more
>> > > information.)
>> > > It is still not possible to launch Eolie inside a container,
>> > > however.
>> > > (See also <https://bugs.gnu.org/47106>;.)
>> > >
>> > > * gnu/packages/gnome.scm (eolie)[inputs]: Add libhandy and
>> > > gnome-settings-daemon.
>> >
>> > LGTM, thanks!
>>
>> I could have missed the commit, I guess this patch is not pushed. It
>> seems nice to have for the next release. Since it fixes an example
>> from
>> the manual. :-)
> Sorry to disappoint you, but it only fixes *some* errors, not all of
> them.

Still worth pushing though, IMO.

Ludo’.
L
L
Leo Prikler wrote on 26 Mar 2021 13:32
(name . Ludovic Courtès)(address . ludo@gnu.org)
3f3862c99704e1ea8792fba5804f221015ef2707.camel@student.tugraz.at
Am Mittwoch, den 24.03.2021, 17:17 +0100 schrieb Ludovic Courtès:
Toggle quote (35 lines)
> Leo Prikler <leo.prikler@student.tugraz.at> skribis:
>
> > Am Mittwoch, den 24.03.2021, 04:14 +0100 schrieb zimoun:
> > > Hi,
> > >
> > > On Thu, 18 Mar 2021 at 21:44, Ludovic Courtès <ludo@gnu.org>
> > > wrote:
> > > > Leo Prikler <leo.prikler@student.tugraz.at> skribis:
> > > >
> > > > > This fixes errors observed directly at launch of Eolie inside
> > > > > pure
> > > > > environments. (See <https://bugs.gnu.org/47097> for more
> > > > > information.)
> > > > > It is still not possible to launch Eolie inside a container,
> > > > > however.
> > > > > (See also <https://bugs.gnu.org/47106>;;.)
> > > > >
> > > > > * gnu/packages/gnome.scm (eolie)[inputs]: Add libhandy and
> > > > > gnome-settings-daemon.
> > > >
> > > > LGTM, thanks!
> > >
> > > I could have missed the commit, I guess this patch is not
> > > pushed. It
> > > seems nice to have for the next release. Since it fixes an
> > > example
> > > from
> > > the manual. :-)
> > Sorry to disappoint you, but it only fixes *some* errors, not all
> > of
> > them.
>
> Still worth pushing though, IMO.
>
> Ludo’.
Pushed as 0dc9ad898180bd37aadfa23d23806b595e600c83. I assume this bug
is to be kept open until 47106 is resolved, am I correct?
L
L
Leo Famulari wrote on 10 Apr 2021 20:40
(name . Leo Prikler)(address . leo.prikler@student.tugraz.at)
YHHxMIWqrUVepuaT@jasmine.lan
On Wed, Mar 24, 2021 at 09:07:34AM +0100, Leo Prikler wrote:
Toggle quote (28 lines)
> Am Mittwoch, den 24.03.2021, 04:14 +0100 schrieb zimoun:
> > Hi,
> >
> > On Thu, 18 Mar 2021 at 21:44, Ludovic Courtès <ludo@gnu.org> wrote:
> > > Leo Prikler <leo.prikler@student.tugraz.at> skribis:
> > >
> > > > This fixes errors observed directly at launch of Eolie inside
> > > > pure
> > > > environments. (See <https://bugs.gnu.org/47097> for more
> > > > information.)
> > > > It is still not possible to launch Eolie inside a container,
> > > > however.
> > > > (See also <https://bugs.gnu.org/47106>;.)
> > > >
> > > > * gnu/packages/gnome.scm (eolie)[inputs]: Add libhandy and
> > > > gnome-settings-daemon.
> > >
> > > LGTM, thanks!
> >
> > I could have missed the commit, I guess this patch is not pushed. It
> > seems nice to have for the next release. Since it fixes an example
> > from
> > the manual. :-)
> Sorry to disappoint you, but it only fixes *some* errors, not all of
> them. I still haven't figured out how to meaningfully launch Eolie
> inside a container, see <https://bugs.gnu.org/47106> detailing my
> bubblewrap-related issues doing so.

We are aiming for a new release on April 18. Should we just remove this
example from the manual?
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAmBx8TAACgkQJkb6MLrK
fwhsrhAAqxlyUpJ5GyrW09XsBXjtPMdh5BoyBrUG9P5lgxIlKdJy5wqQ+etfSxSj
e+IZ+INIkIujjtJQder/0vnjYdU/D4SKPj93eI1G77YcUJ352hDztoZf/TLCyRJ6
nKL6FN9uhrOudpkK1G4iNYzVvV7dCQ5hsQbHx8UHaFjVLKV8IZFQWcCr/ygYqhG5
cW6kFR3eRudYBYhZKAOKJmuGDfdbYX/Y3j2B3fkY0JA+rVf04JhakRgRoSDnS2xE
IJn3EJeAtFE2QGHwrfCVakw2Jm/ZgaELlgGa1u7OybuQNZL9BBZZDlJ4Q2gM0/in
SQwPcUsP0RqT8/CaaWdR4z0/31BpKJgt+6pdRIXWoLftX6P2thmSF2e+d6ccRSBu
7N3DMdN3jMEQi7QSGdYtpzGHpjaA+1W4QoU1IMr1ha+8LyFNpI1eucKZZLnboUIZ
kF960sI9cNs7JSoyKcCzps4HIJYXVyehJthVSxZmkS5oL0QDM1A0r7+r8XYPAH1N
UGUl9ChI1UIqGMEtm+7Eg5oQw8hppT37lIp6XhgpSe7CB2qkfuowYoAu9LQHMP3o
x2mpkn13oi0AT/BNIqke36ksBaMAx710YiDQzrI4uIsLowAqvd62sF4bbJV6V0dZ
AtUkYCijIboft0pyr9clFmvVoeKJFdtIrzYzkPEhBhiGVcXNshk=
=QkoS
-----END PGP SIGNATURE-----


L
L
Leo Famulari wrote on 10 Apr 2021 21:21
(no subject)
(name . GNU bug tracker automated control server)(address . control@debbugs.gnu.org)
YHH6nC9WFz0gspa4@jasmine.lan
retitle 47097 "environment container example in the manual does not work"
L
L
Leo Famulari wrote on 10 Apr 2021 21:38
(name . GNU bug tracker automated control server)(address . control@debbugs.gnu.org)
YHH+yqj2KDLTlWkC@jasmine.lan
retitle 47097 environment container example in the manual does not work
L
L
Leo Prikler wrote on 10 Apr 2021 22:24
Re: bug#47097: eolie broken => unworking example from manual
(name . Leo Famulari)(address . leo@famulari.name)
a54d213bb51ca7191b5c8aa7ea2ca444fb6b58ee.camel@student.tugraz.at
Am Samstag, den 10.04.2021, 14:40 -0400 schrieb Leo Famulari:
Toggle quote (36 lines)
> On Wed, Mar 24, 2021 at 09:07:34AM +0100, Leo Prikler wrote:
> > Am Mittwoch, den 24.03.2021, 04:14 +0100 schrieb zimoun:
> > > Hi,
> > >
> > > On Thu, 18 Mar 2021 at 21:44, Ludovic Courtès <ludo@gnu.org>
> > > wrote:
> > > > Leo Prikler <leo.prikler@student.tugraz.at> skribis:
> > > >
> > > > > This fixes errors observed directly at launch of Eolie inside
> > > > > pure
> > > > > environments. (See <https://bugs.gnu.org/47097> for more
> > > > > information.)
> > > > > It is still not possible to launch Eolie inside a container,
> > > > > however.
> > > > > (See also <https://bugs.gnu.org/47106>;;.)
> > > > >
> > > > > * gnu/packages/gnome.scm (eolie)[inputs]: Add libhandy and
> > > > > gnome-settings-daemon.
> > > >
> > > > LGTM, thanks!
> > >
> > > I could have missed the commit, I guess this patch is not
> > > pushed. It
> > > seems nice to have for the next release. Since it fixes an
> > > example
> > > from
> > > the manual. :-)
> > Sorry to disappoint you, but it only fixes *some* errors, not all
> > of
> > them. I still haven't figured out how to meaningfully launch Eolie
> > inside a container, see <https://bugs.gnu.org/47106> detailing my
> > bubblewrap-related issues doing so.
>
> We are aiming for a new release on April 18. Should we just remove
> this
> example from the manual?
Since the aim is to showcase how to "run security-sensitive
applications such as a web browser", perhaps we might try to use icecat
for this purpose instead?
L
L
Leo Famulari wrote on 10 Apr 2021 22:31
(name . Leo Prikler)(address . leo.prikler@student.tugraz.at)
YHILJVbR0aSSG6vu@jasmine.lan
On Sat, Apr 10, 2021 at 10:24:11PM +0200, Leo Prikler wrote:
Toggle quote (4 lines)
> Since the aim is to showcase how to "run security-sensitive
> applications such as a web browser", perhaps we might try to use icecat
> for this purpose instead?

Sure, whatever is appropriate. The important thing is to not include
broken examples in the manual.
L
L
Leo Famulari wrote on 14 Apr 2021 22:03
(name . Leo Prikler)(address . leo.prikler@student.tugraz.at)
YHdKhAu8ciYp8mpU@jasmine.lan
Unfortunately, we have entered "string freeze" for the upcoming release.
This means the manual cannot be changed. So, we will release with the
broken example :(

I should have been more proactive about removing it.
L
L
Leo Famulari wrote on 14 Apr 2021 22:03
(no subject)
(name . GNU bug tracker automated control server)(address . control@debbugs.gnu.org)
YHdKn3wxEMgHBQ79@jasmine.lan
unblock 47297 with 47097
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 47097@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 47097
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch