mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
app-office/dia: fix build with poppler-25.11
Closes: https://bugs.gentoo.org/965768 Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44524 Closes: https://github.com/gentoo/gentoo/pull/44524 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
3e439610e8
commit
bdc2e1a66c
@ -53,6 +53,7 @@ PATCHES=(
|
|||||||
"${WORKDIR}"/dia-0.98-patches/${PN}-0.98-revert_xpm_replacement.patch
|
"${WORKDIR}"/dia-0.98-patches/${PN}-0.98-revert_xpm_replacement.patch
|
||||||
"${WORKDIR}"/dia-0.98-patches/${PN}-0.98-use_gtkfontbutton.patch
|
"${WORKDIR}"/dia-0.98-patches/${PN}-0.98-use_gtkfontbutton.patch
|
||||||
"${WORKDIR}"/dia-0.98-patches/${PN}-0.98-deps_optional.patch
|
"${WORKDIR}"/dia-0.98-patches/${PN}-0.98-deps_optional.patch
|
||||||
|
"${FILESDIR}"/${PN}-0.98-fix_poppler_2510.patch #965768
|
||||||
)
|
)
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
|
|||||||
18
app-office/dia/files/dia-0.98-fix_poppler_2510.patch
Normal file
18
app-office/dia/files/dia-0.98-fix_poppler_2510.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
fix compile with >=poppler-25.10
|
||||||
|
see https://bugs.gentoo.org/965768
|
||||||
|
reported https://gitlab.gnome.org/GNOME/dia/-/issues/572
|
||||||
|
--- a/plug-ins/pdf/pdf-import.cpp
|
||||||
|
+++ b/plug-ins/pdf/pdf-import.cpp
|
||||||
|
@@ -776,7 +776,11 @@ void
|
||||||
|
DiaOutputDev::drawString(GfxState *state, GooString *s)
|
||||||
|
{
|
||||||
|
Color text_color = this->fill_color;
|
||||||
|
- int len = s->getLength();
|
||||||
|
+#if POPPLER_VERSION_MAJOR > 25 || (POPPLER_VERSION_MAJOR == 25 && POPPLER_VERSION_MINOR >= 10)
|
||||||
|
+ int len = s->size();
|
||||||
|
+#else
|
||||||
|
+ int len = s->getLength();
|
||||||
|
+#endif
|
||||||
|
DiaObject *obj;
|
||||||
|
gchar *utf8 = NULL;
|
||||||
|
DiaFont *font;
|
||||||
Loading…
x
Reference in New Issue
Block a user