GNU bug report logs - #36632
ungoogled-chromium needs font-gnu-freefont-ttf

Previous Next

Package: guix;

Reported by: Martin Becze <mjbecze <at> riseup.net>

Date: Sat, 13 Jul 2019 00:23:02 UTC

Severity: normal

To reply to this bug, email your comments to 36632 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#36632; Package guix. (Sat, 13 Jul 2019 00:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Martin Becze <mjbecze <at> riseup.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 13 Jul 2019 00:23:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Martin Becze <mjbecze <at> riseup.net>
To: bug-guix <at> gnu.org
Subject: ungoogled-chromium needs font-gnu-freefont-ttf
Date: Fri, 12 Jul 2019 19:22:16 -0500
[Message part 1 (text/plain, inline)]
ungoogled-chromium will crash until font-gnu-freefont-ttf is installed.


[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#36632; Package guix. (Mon, 29 Jul 2019 18:00:02 GMT) Full text and rfc822 format available.

Message #8 received at 36632 <at> debbugs.gnu.org (full text, mbox):

From: mjbecze <at> riseup.net
To: 36632 <at> debbugs.gnu.org
Subject: [Patch] add font-gnu-freefont-ttf propagated-inputs
Date: Mon, 29 Jul 2019 10:59:50 -0700
hi this fixes bug 36632

---
 gnu/packages/chromium.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
index d072fc58ad..04ce780be0 100644
--- a/gnu/packages/chromium.scm
+++ b/gnu/packages/chromium.scm
@@ -35,6 +35,7 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages cups)
   #:use-module (gnu packages curl)
+  #:use-module (gnu packages fonts)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gcc)
@@ -763,6 +764,8 @@ from forcing GEXP-PROMISE."
        ("udev" ,eudev)
        ("valgrind" ,valgrind)
        ("vulkan-headers" ,vulkan-headers)))
+    (propagated-inputs
+      `(("font-gnu-freefont-ttf" ,font-gnu-freefont-ttf)))
 
     ;; Building Chromium takes ... a very long time.  On a single core,
a busy
     ;; mid-end x86 system may need more than 24 hours to complete the
build.
-- 
2.22.0





Information forwarded to bug-guix <at> gnu.org:
bug#36632; Package guix. (Thu, 01 Aug 2019 22:17:02 GMT) Full text and rfc822 format available.

Message #11 received at 36632 <at> debbugs.gnu.org (full text, mbox):

From: Martin Becze <mjbecze <at> riseup.net>
To: 36632 <at> debbugs.gnu.org
Date: Thu, 1 Aug 2019 17:16:37 -0500
bump :)





Information forwarded to bug-guix <at> gnu.org:
bug#36632; Package guix. (Mon, 05 Aug 2019 01:26:02 GMT) Full text and rfc822 format available.

Message #14 received at 36632 <at> debbugs.gnu.org (full text, mbox):

From: mjbecze <at> riseup.net
To: 36632 <at> debbugs.gnu.org
Subject: Re: [Patch] add font-gnu-freefont-ttf propagated-inputs
Date: Sun, 04 Aug 2019 18:25:35 -0700
On 2019-07-29 13:59, mjbecze <at> riseup.net wrote:
> hi this fixes bug 36632
> 
> ---
>  gnu/packages/chromium.scm | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
> index d072fc58ad..04ce780be0 100644
> --- a/gnu/packages/chromium.scm
> +++ b/gnu/packages/chromium.scm
> @@ -35,6 +35,7 @@
>    #:use-module (gnu packages compression)
>    #:use-module (gnu packages cups)
>    #:use-module (gnu packages curl)
> +  #:use-module (gnu packages fonts)
>    #:use-module (gnu packages fontutils)
>    #:use-module (gnu packages freedesktop)
>    #:use-module (gnu packages gcc)
> @@ -763,6 +764,8 @@ from forcing GEXP-PROMISE."
>         ("udev" ,eudev)
>         ("valgrind" ,valgrind)
>         ("vulkan-headers" ,vulkan-headers)))
> +    (propagated-inputs
> +      `(("font-gnu-freefont-ttf" ,font-gnu-freefont-ttf)))
>  
>      ;; Building Chromium takes ... a very long time.  On a single core,
> a busy
>      ;; mid-end x86 system may need more than 24 hours to complete the
> build.


bump bump :)




Information forwarded to bug-guix <at> gnu.org:
bug#36632; Package guix. (Mon, 05 Aug 2019 19:37:02 GMT) Full text and rfc822 format available.

Message #17 received at 36632 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Martin Becze <mjbecze <at> riseup.net>
Cc: 36632 <at> debbugs.gnu.org
Subject: Re: bug#36632: ungoogled-chromium needs font-gnu-freefont-ttf
Date: Mon, 05 Aug 2019 21:36:24 +0200
Hi Martin,

> ungoogled-chromium will crash until font-gnu-freefont-ttf is installed.

Thank you for reporting this problem and proposing a patch.

I’d prefer not to propagate any fonts.  Do you happen to know what the
mechanism underlying the fix is?  Why does this fix the problem?  Why
does it crash in the first place?

Is this at all related to a stale font cache, perhaps?

-- 
Ricardo





Information forwarded to bug-guix <at> gnu.org:
bug#36632; Package guix. (Wed, 21 Aug 2019 10:35:01 GMT) Full text and rfc822 format available.

Message #20 received at 36632 <at> debbugs.gnu.org (full text, mbox):

From: Martin Becze <mjbecze <at> riseup.net>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 36632 <at> debbugs.gnu.org
Subject: Re: bug#36632: ungoogled-chromium needs font-gnu-freefont-ttf
Date: Wed, 21 Aug 2019 03:34:02 -0700
On 2019-08-05 15:36, Ricardo Wurmus wrote:
> Hi Martin,
> 
>> ungoogled-chromium will crash until font-gnu-freefont-ttf is installed.
> 
> Thank you for reporting this problem and proposing a patch.
> 
> I’d prefer not to propagate any fonts.  Do you happen to know what the
> mechanism underlying the fix is?  Why does this fix the problem?  Why
> does it crash in the first place?
> 
> Is this at all related to a stale font cache, perhaps?

So i got a chance to dig into this a bit. chromium needs a ttf font and
there are no fonts installed yet, so defaintly not a stale cache issue.
Chrome is crashing here
https://chromium.googlesource.com/chromium/src/+/master/ui/gfx/platform_font_skia.cc#97
Its using fontconfig i think. I have no idea how to get chromium to read
fonts from a custom path.





Information forwarded to bug-guix <at> gnu.org:
bug#36632; Package guix. (Wed, 21 Aug 2019 20:54:01 GMT) Full text and rfc822 format available.

Message #23 received at 36632 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Martin Becze <mjbecze <at> riseup.net>
Cc: 36632 <at> debbugs.gnu.org
Subject: Re: bug#36632: ungoogled-chromium needs font-gnu-freefont-ttf
Date: Wed, 21 Aug 2019 22:38:33 +0200
Hi Martin,

> So i got a chance to dig into this a bit. chromium needs a ttf font and
> there are no fonts installed yet, so defaintly not a stale cache issue.
> Chrome is crashing here
> https://chromium.googlesource.com/chromium/src/+/master/ui/gfx/platform_font_skia.cc#97
> Its using fontconfig i think. I have no idea how to get chromium to read
> fonts from a custom path.

Can we arrange for a default font to be returned by fontconfig?  Perhaps
the fix is not needed in Chromium but in fontconfig or our profile hooks?

-- 
Ricardo





This bug report was last modified 5 years and 295 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.