Skip to content

Commit

Permalink
xournalpp: fix build with poppler 24.10.0.
Browse files Browse the repository at this point in the history
pkglint cleanup while here.
  • Loading branch information
0-wiz-0 committed Oct 18, 2024
1 parent 67592f5 commit f977d92
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
4 changes: 2 additions & 2 deletions editors/xournalpp/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.70 2024/10/15 16:15:33 adam Exp $
# $NetBSD: Makefile,v 1.71 2024/10/18 20:38:24 wiz Exp $

DISTNAME= xournalpp-1.2.3
PKGREVISION= 6
Expand All @@ -15,7 +15,7 @@ USE_TOOLS+= pkg-config
USE_TOOLS+= msgfmt msgmerge xgettext
USE_LANGUAGES= c c++

BUILD_TARGET= translations xournalpp
BUILD_TARGET= translations xournalpp
CMAKE_CONFIGURE_ARGS+= -DPKGSRC_CMAKE_MODS=${BUILDLINK_DIR}/cmake-Modules

USE_CXX_FEATURES+= c++17 filesystem
Expand Down
3 changes: 2 additions & 1 deletion editors/xournalpp/distinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.15 2024/03/03 11:32:40 wiz Exp $
$NetBSD: distinfo,v 1.16 2024/10/18 20:38:24 wiz Exp $

BLAKE2s (xournalpp-1.2.3.tar.gz) = d50e04aaf4c1f7cbed031c50a3c546a76b72584e0084f4513e1746596ab8ee42
SHA512 (xournalpp-1.2.3.tar.gz) = 17303314d49001f492469d855155a019659cdafc67509d4e176f60a93322f4ee1d4b999e8a25a9a23bde27b878012c06aa11f15bc2a54a730098964053834d1f
Expand All @@ -7,3 +7,4 @@ SHA1 (patch-CMakeLists.txt) = 87ba10a924e3eb092dd9816ff38dea8c0b112b10
SHA1 (patch-po_CMakeLists.txt) = 897b4f9507b48be394409deda8170fe7d39f008c
SHA1 (patch-src_core_control_DeviceListHelper.cpp) = 069fae3eb58798406e4fa8dbff0d02aa8e0a27ef
SHA1 (patch-src_core_control_settings_Settings.cpp) = 19cf2b2ceedc3d59c0290ea81727cb0c27e02ba5
SHA1 (patch-src_core_view_TexImageView.cpp) = b38f4d589d4291e753d66c2d3b0555c86e58ec9f
17 changes: 17 additions & 0 deletions editors/xournalpp/patches/patch-src_core_view_TexImageView.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$NetBSD: patch-src_core_view_TexImageView.cpp,v 1.1 2024/10/18 20:38:24 wiz Exp $

Compatibility with poppler 24.10.0.

--- src/core/view/TexImageView.cpp.orig 2024-10-18 20:36:17.087214090 +0000
+++ src/core/view/TexImageView.cpp
@@ -4,9 +4,7 @@

#include <cairo.h> // for cairo_paint_with_alpha, cairo_scale
#include <glib.h> // for g_warning
-#include <poppler-document.h> // for poppler_document_get_n_pages, poppler_...
-#include <poppler-page.h> // for poppler_page_render, poppler_page_get_...
-#include <poppler.h> // for PopplerPage, PopplerDocument, g_clear_...
+#include <poppler.h> // for poppler, poppler_...

#include "model/TexImage.h" // for TexImage
#include "view/View.h" // for Context, OPACITY_NO_AUDIO, view

0 comments on commit f977d92

Please sign in to comment.