commit:     5549bc0c928ed79d7126c0a334b3b7c549cde845
Author:     INODE64 <ffelix <AT> inode64 <DOT> com>
AuthorDate: Wed Jan 18 10:02:07 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 18 11:15:34 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5549bc0c

dev-python/weasyprint: add media-fonts/dejavu RDEP

The package needs media-fonts/dejavu to prevent a coredump if no fonts
are installed.

```
$ /usr/bin/weasyprint https://www.google.com google.pdf

WARNING: Ignored `overflow-y:scroll` at 1:59, unknown property.
WARNING: Ignored `display:inline-box` at 1:330, invalid value.

(process:843463): Pango-CRITICAL **: 10:28:18.166: pango_font_describe: 
assertion 'font != NULL' failed

(process:843463): Pango-CRITICAL **: 10:28:18.166: 
pango_font_description_unset_fields: assertion 'desc != NULL' failed

(process:843463): Pango-CRITICAL **: 10:28:18.166: pango_font_description_hash: 
assertion 'desc != NULL' failed

(process:843463): Pango-CRITICAL **: 10:28:18.166: pango_font_get_hb_font: 
assertion 'PANGO_IS_FONT (font)' failed
Segmentation fault ('core' dumped)
```

Signed-off-by: INODE64 <ffelix <AT> inode64.com>
Closes: https://github.com/gentoo/gentoo/pull/29155
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../weasyprint/{weasyprint-57.1.ebuild => weasyprint-57.1-r1.ebuild}    | 2 +-
 .../weasyprint/{weasyprint-57.2.ebuild => weasyprint-57.2-r1.ebuild}    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/weasyprint/weasyprint-57.1.ebuild 
b/dev-python/weasyprint/weasyprint-57.1-r1.ebuild
similarity index 98%
rename from dev-python/weasyprint/weasyprint-57.1.ebuild
rename to dev-python/weasyprint/weasyprint-57.1-r1.ebuild
index 92ed178dfd3a..df8f1a72c91c 100644
--- a/dev-python/weasyprint/weasyprint-57.1.ebuild
+++ b/dev-python/weasyprint/weasyprint-57.1-r1.ebuild
@@ -29,6 +29,7 @@ RDEPEND="
        >=dev-python/pydyf-0.5.0[${PYTHON_USEDEP}]
        >=dev-python/pyphen-0.9.1[${PYTHON_USEDEP}]
        >=dev-python/tinycss2-1.0.0[${PYTHON_USEDEP}]
+       media-fonts/dejavu
        x11-libs/pango
 "
 
@@ -39,7 +40,6 @@ BDEPEND="
                        <app-text/ghostscript-gpl-9.56.0
                )
                media-fonts/ahem
-               media-fonts/dejavu
        )
 "
 

diff --git a/dev-python/weasyprint/weasyprint-57.2.ebuild 
b/dev-python/weasyprint/weasyprint-57.2-r1.ebuild
similarity index 98%
rename from dev-python/weasyprint/weasyprint-57.2.ebuild
rename to dev-python/weasyprint/weasyprint-57.2-r1.ebuild
index 7b1485291755..c9362f1c7799 100644
--- a/dev-python/weasyprint/weasyprint-57.2.ebuild
+++ b/dev-python/weasyprint/weasyprint-57.2-r1.ebuild
@@ -29,6 +29,7 @@ RDEPEND="
        >=dev-python/pydyf-0.5.0[${PYTHON_USEDEP}]
        >=dev-python/pyphen-0.9.1[${PYTHON_USEDEP}]
        >=dev-python/tinycss2-1.0.0[${PYTHON_USEDEP}]
+       media-fonts/dejavu
        x11-libs/pango
 "
 
@@ -39,7 +40,6 @@ BDEPEND="
                        <app-text/ghostscript-gpl-9.56.0
                )
                media-fonts/ahem
-               media-fonts/dejavu
        )
 "
 

Reply via email to