unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47092: Icecat sandbox causes issues with fonts in --pure env
@ 2021-03-12  9:03 Martin via Bug reports for GNU Guix
  2021-03-12  9:53 ` zimoun
  2021-10-28 11:15 ` Martin via Bug reports for GNU Guix
  0 siblings, 2 replies; 8+ messages in thread
From: Martin via Bug reports for GNU Guix @ 2021-03-12  9:03 UTC (permalink / raw)
  To: 47092

Hello,
whenever I'm trying to run 'guix environment --pure --ad-hoc icecat -- 
icecat' or similar commands in a --container I'm ending up with some 
tofu ugly font fallback box glyphs in the app. However everything works 
fine running 'guix environment --ad-hoc icecat -- icecat'. Moreover I've 
noticed that when I edit the default value of 
"security.sandbox.content.level" from 4 to 2 in "about:config" then the 
problem disappear and the fonts are properly displayed in --pure and 
--container env. I was trying to install all possible fonts, running 
'fc-cache -rfv' and analyze the icecat logs with "MOZ_SANDBOX_LOGGING=1" 
to include blocking paths into the 
"security.sandbox.content.read_path_whitelist" but still I couldn't fix 
this issue with the icecat default sandbox level. Any ideas how to solve 
it in Guix System and what are the side effects of using 
"security.sandbox.content.level=2" in --pure env?

Kind regards!
Martin

security.sandbox.content.read_path_whitelist






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

* bug#47092: Icecat sandbox causes issues with fonts in --pure env
  2021-03-12  9:03 bug#47092: Icecat sandbox causes issues with fonts in --pure env Martin via Bug reports for GNU Guix
@ 2021-03-12  9:53 ` zimoun
  2021-03-12 10:15   ` Martin via Bug reports for GNU Guix
       [not found]   ` <d45ebb57-fed2-e77a-804e-73d8cbcf4d76@disroot.org>
  2021-10-28 11:15 ` Martin via Bug reports for GNU Guix
  1 sibling, 2 replies; 8+ messages in thread
From: zimoun @ 2021-03-12  9:53 UTC (permalink / raw)
  To: Martin, 47092

Hi,

The example about ’eolie’ adapted to your usecase, does it not work?

See:
<https://guix.gnu.org/manual/devel/en/guix.html#Invoking-guix-environment>


All the best,
simon




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

* bug#47092: Icecat sandbox causes issues with fonts in --pure env
  2021-03-12  9:53 ` zimoun
@ 2021-03-12 10:15   ` Martin via Bug reports for GNU Guix
  2021-03-12 10:51     ` zimoun
       [not found]   ` <d45ebb57-fed2-e77a-804e-73d8cbcf4d76@disroot.org>
  1 sibling, 1 reply; 8+ messages in thread
From: Martin via Bug reports for GNU Guix @ 2021-03-12 10:15 UTC (permalink / raw)
  To: 47092

Hi Simon,
no it doesn't help in this case and in general eolie package seems to be 
broken because it doesn't work even with the simple 'guix environment 
--ad-hoc eolie --  eolie':

Traceback (most recent call last):
   File 
"/gnu/store/w47sa5q3vki5siwk5lb62ld4ksxa5gcn-eolie-0.9.101/bin/.eolie-real", 
line 20, in <module>
     from eolie.application import Application
   File 
"/gnu/store/w47sa5q3vki5siwk5lb62ld4ksxa5gcn-eolie-0.9.101/lib/python3.8/site-packages/eolie/application.py", 
line 19, in <module>
     gi.require_version("Handy", "1")
   File 
"/gnu/store/597f7p79vyxjhwsv2qqnn76hx107xgj1-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

Kind regards!
Martin

On 3/12/21 9:53 AM, zimoun wrote:
> Hi,
>
> The example about ’eolie’ adapted to your usecase, does it not work?
>
> See:
> <https://guix.gnu.org/manual/devel/en/guix.html#Invoking-guix-environment>
>
>
> All the best,
> simon





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

* bug#47092: Icecat sandbox causes issues with fonts in --pure env
       [not found]   ` <d45ebb57-fed2-e77a-804e-73d8cbcf4d76@disroot.org>
@ 2021-03-12 10:21     ` zimoun
  0 siblings, 0 replies; 8+ messages in thread
From: zimoun @ 2021-03-12 10:21 UTC (permalink / raw)
  To: Martin, 47092

Hi,

For discussion, please CC the bug.


On Fri, 12 Mar 2021 at 10:14, Martin <smartin@disroot.org> wrote:
> Hi Simon,
> no it doesn't help in this case and in general eolie package seems to be 
> broken because it doesn't work even with the simple 'guix environment 
> --ad-hoc eolie --  eolie':

The manual example is:

--8<---------------cut here---------------start------------->8---
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
--8<---------------cut here---------------end--------------->8---

from <https://guix.gnu.org/manual/devel/en/guix.html#Invoking-guix-environment>


Does it not work for you?

Then it should be adapted for your use-case.



All the best,
simon




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

* bug#47092: Icecat sandbox causes issues with fonts in --pure env
  2021-03-12 10:15   ` Martin via Bug reports for GNU Guix
@ 2021-03-12 10:51     ` zimoun
  2021-03-12 11:09       ` Martin via Bug reports for GNU Guix
  0 siblings, 1 reply; 8+ messages in thread
From: zimoun @ 2021-03-12 10:51 UTC (permalink / raw)
  To: Martin, 47092

Hi,

On Fri, 12 Mar 2021 at 10:15, Martin via Bug reports for GNU Guix <bug-guix@gnu.org> wrote:
> no it doesn't help in this case and in general eolie package seems to be 
> broken because it doesn't work even with the simple 'guix environment 
> --ad-hoc eolie --  eolie':

Indeed, the package eolie is broken; which is another issue–and BTW
thanks for pointing this out.  Back to your initial report about icecat,
what about something like that:

--8<---------------cut here---------------start------------->8---
   guix environment --preserve='^DISPLAY$' --container --network \
     --expose=/etc/machine-id \
     --expose=/etc/ssl/certs/ \
     --share=$HOME/.local/share/icecat/=$HOME/.local/share/icecat/ \
     --ad-hoc icecat nss-certs dbus --  icecat
--8<---------------cut here---------------end--------------->8---


All the best,
simon




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

* bug#47092: Icecat sandbox causes issues with fonts in --pure env
  2021-03-12 10:51     ` zimoun
@ 2021-03-12 11:09       ` Martin via Bug reports for GNU Guix
  0 siblings, 0 replies; 8+ messages in thread
From: Martin via Bug reports for GNU Guix @ 2021-03-12 11:09 UTC (permalink / raw)
  To: zimoun, 47092

On 3/12/21 10:51 AM, zimoun wrote:
> Indeed, the package eolie is broken; which is another issue–and BTW
> thanks for pointing this out.  Back to your initial report about icecat,
> what about something like that:
>
> --8<---------------cut here---------------start------------->8---
>     guix environment --preserve='^DISPLAY$' --container --network \
>       --expose=/etc/machine-id \
>       --expose=/etc/ssl/certs/ \
>       --share=$HOME/.local/share/icecat/=$HOME/.local/share/icecat/ \
>       --ad-hoc icecat nss-certs dbus --  icecat
> --8<---------------cut here---------------end--------------->8---
It's still not relevant to my issue. To run icecat using your example 
you should change one parameter to 
"--share=$HOME/.mozilla=$HOME/.mozilla" but again with the default 
"security.sandbox.content.level=4" the fonts will be tofued. I think 
once the issue could be fixed with simpler command, i.e. 'guix 
environment --pure --ad-hoc icecat -- icecat' than it would be easier to 
port the solution on the --container case.

Kind regards!
Martin





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

* bug#47092: Icecat sandbox causes issues with fonts in --pure env
  2021-03-12  9:03 bug#47092: Icecat sandbox causes issues with fonts in --pure env Martin via Bug reports for GNU Guix
  2021-03-12  9:53 ` zimoun
@ 2021-10-28 11:15 ` Martin via Bug reports for GNU Guix
  2021-10-28 18:49   ` Mark H Weaver
  1 sibling, 1 reply; 8+ messages in thread
From: Martin via Bug reports for GNU Guix @ 2021-10-28 11:15 UTC (permalink / raw)
  To: 47092

Problem fixed with the newest IceCat v91.2.0-guix0-preview1 in the
  guix c1ca853
     repository URL: https://git.savannah.gnu.org/git/guix.git
     branch: master
     commit: c1ca85323d5246fc805a31e03b4164b8da08e930




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

* bug#47092: Icecat sandbox causes issues with fonts in --pure env
  2021-10-28 11:15 ` Martin via Bug reports for GNU Guix
@ 2021-10-28 18:49   ` Mark H Weaver
  0 siblings, 0 replies; 8+ messages in thread
From: Mark H Weaver @ 2021-10-28 18:49 UTC (permalink / raw)
  To: Martin, 47092-done

Hi,

Martin via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

> Problem fixed with the newest IceCat v91.2.0-guix0-preview1 in the
>   guix c1ca853
>      repository URL: https://git.savannah.gnu.org/git/guix.git
>      branch: master
>      commit: c1ca85323d5246fc805a31e03b4164b8da08e930

Thanks for letting us know!  I'm closing this bug now.

     Regards,
       Mark

-- 
Disinformation flourishes because many people care deeply about injustice
but very few check the facts.  Ask me about <https://stallmansupport.org>.




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

end of thread, other threads:[~2021-10-28 18:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12  9:03 bug#47092: Icecat sandbox causes issues with fonts in --pure env Martin via Bug reports for GNU Guix
2021-03-12  9:53 ` zimoun
2021-03-12 10:15   ` Martin via Bug reports for GNU Guix
2021-03-12 10:51     ` zimoun
2021-03-12 11:09       ` Martin via Bug reports for GNU Guix
     [not found]   ` <d45ebb57-fed2-e77a-804e-73d8cbcf4d76@disroot.org>
2021-03-12 10:21     ` zimoun
2021-10-28 11:15 ` Martin via Bug reports for GNU Guix
2021-10-28 18:49   ` Mark H Weaver

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