Your message dated Thu, 29 Dec 2022 17:55:01 +0000
with message-id <e1pax7n-0062mq...@fasolo.debian.org>
and subject line Bug#1026040: fixed in ipe-tools 1:7.2.24.1-3
has caused the Debian Bug report #1026040,
regarding pdftoipe: Fix build with Poppler >= 22.09
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1026040: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026040
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: pdftoipe
Severity: wishlist
Tags: patch
X-Debbugs-Cc: nathan.teodo...@canonical.com

Hi, ipe-tools fails to build with Poppler 22.09.

The attached patch fixes the build (log available at [1]).

[1]: https://launchpad.net/~nteodosio/+archive/ubuntu/poppler/+build/24935610
diff -Nru ipe-tools-7.2.24.1/debian/changelog 
ipe-tools-7.2.24.1/debian/changelog
--- ipe-tools-7.2.24.1/debian/changelog 2022-10-16 21:05:46.000000000 -0300
+++ ipe-tools-7.2.24.1/debian/changelog 2022-12-13 13:45:51.000000000 -0300
@@ -1,3 +1,9 @@
+ipe-tools (1:7.2.24.1-3) unstable; urgency=medium
+
+  * Add patch to fix build with poppler 22.09.
+
+ -- Nathan Pratta Teodosio <nathan.teodo...@canonical.com>  Tue, 13 Dec 2022 
13:45:51 -0300
+
 ipe-tools (1:7.2.24.1-2) unstable; urgency=medium
 
   [ Sam Q ]
diff -Nru ipe-tools-7.2.24.1/debian/patches/build-with-poppler-22.09.patch 
ipe-tools-7.2.24.1/debian/patches/build-with-poppler-22.09.patch
--- ipe-tools-7.2.24.1/debian/patches/build-with-poppler-22.09.patch    
1969-12-31 21:00:00.000000000 -0300
+++ ipe-tools-7.2.24.1/debian/patches/build-with-poppler-22.09.patch    
2022-12-13 13:42:16.000000000 -0300
@@ -0,0 +1,33 @@
+From: Jonathan Chang <m...@jonathanchang.org>
+Date: Wed, 23 Nov 2022 16:22:50 -0800
+Subject: [PATCH] pdftoipe: fix for poppler >= 2.09
+Origin: https://github.com/otfried/ipe-tools/pull/55.patch
+
+---
+ pdftoipe/xmloutputdev.cpp | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/pdftoipe/xmloutputdev.cpp b/pdftoipe/xmloutputdev.cpp
+index 291eb5f..17bac2a 100644
+--- a/pdftoipe/xmloutputdev.cpp
++++ b/pdftoipe/xmloutputdev.cpp
+@@ -149,15 +149,15 @@ void XmlOutputDev::stroke(GfxState *state)
+   writeColor("<path stroke=", rgb, 0);
+   writePSFmt(" pen=\"%g\"", state->getTransformedLineWidth());
+ 
+-  double *dash;
+   double start;
+-  int length, i;
++  std::vector<double> dash = state->getLineDash(&start);
++  int length = dash.size();
++  int i;
+ 
+-  state->getLineDash(&dash, &length, &start);
+   if (length) {
+     writePS(" dash=\"[");
+     for (i = 0; i < length; ++i)
+-      writePSFmt("%g%s", state->transformWidth(dash[i]), 
++      writePSFmt("%g%s", state->transformWidth(dash.at(i)),
+                (i == length-1) ? "" : " ");
+     writePSFmt("] %g\"", state->transformWidth(start));
+   }
diff -Nru ipe-tools-7.2.24.1/debian/patches/series 
ipe-tools-7.2.24.1/debian/patches/series
--- ipe-tools-7.2.24.1/debian/patches/series    2022-10-16 21:05:46.000000000 
-0300
+++ ipe-tools-7.2.24.1/debian/patches/series    2022-12-13 13:45:51.000000000 
-0300
@@ -1,2 +1,3 @@
 build-with-poppler-22.03.patch
+build-with-poppler-22.09.patch
 cross.patch

--- End Message ---
--- Begin Message ---
Source: ipe-tools
Source-Version: 1:7.2.24.1-3
Done: Steve M. Robbins <s...@debian.org>

We believe that the bug you reported is fixed in the latest version of
ipe-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1026...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steve M. Robbins <s...@debian.org> (supplier of updated ipe-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 29 Dec 2022 10:27:31 -0600
Source: ipe-tools
Architecture: source
Version: 1:7.2.24.1-3
Distribution: experimental
Urgency: medium
Maintainer: Debian Science Team 
<debian-science-maintain...@lists.alioth.debian.org>
Changed-By: Steve M. Robbins <s...@debian.org>
Closes: 1026040
Changes:
 ipe-tools (1:7.2.24.1-3) experimental; urgency=medium
 .
   [ Nathan Pratta Teodosio ]
   * Add patch to fix build with poppler 22.09.  Closes: #1026040.
Checksums-Sha1:
 c93156410b06b375281b2416adce328114cb5667 2310 ipe-tools_7.2.24.1-3.dsc
 4b0ae4ca24b6c8bbe8d8f0ee8d498f3a109e8ce8 5972 
ipe-tools_7.2.24.1-3.debian.tar.xz
 e8d9c526776fd8e2e4158df44b8129a7693d2f0d 8797 
ipe-tools_7.2.24.1-3_amd64.buildinfo
Checksums-Sha256:
 93418453558250cd0c59cafe76aa9c97a2b737db8d962826aac20550ba5176a2 2310 
ipe-tools_7.2.24.1-3.dsc
 f0aa549d21cd3bec1d447d1465359cf3d48f40cb55224e79f34b972482095d30 5972 
ipe-tools_7.2.24.1-3.debian.tar.xz
 53ee6978bff80a0b4f6233f176038b900dbb14aeb23937176a897457f0a62f3d 8797 
ipe-tools_7.2.24.1-3_amd64.buildinfo
Files:
 fcaf135e033581a81b7428a2b0003a0d 2310 graphics optional 
ipe-tools_7.2.24.1-3.dsc
 0f5ced9058b4461964c9e33bd987405f 5972 graphics optional 
ipe-tools_7.2.24.1-3.debian.tar.xz
 d9c728d604e8de1d4fed35b02bac3f08 8797 graphics optional 
ipe-tools_7.2.24.1-3_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJDBAEBCAAtFiEEy89k8fa3rclNjyokyeVeL63I9LkFAmOtye0PHHNtckBkZWJp
YW4ub3JnAAoJEMnlXi+tyPS5bngP/0aki1kvvrNiuFB85tLT8T6XMGS1UVNaAhJS
t49dD35ct3tV3YU5Q13tSwTzpy8qOY57avSSHAJPznO1IgRAO37uFpXKh7tAQLjR
Kp0NdNK4ErVFbG7lnNZzJ4MalPggHxCfUCOyIOO1MVPvGXdcTvXmUqeqWBiAOBVq
k05LMghrQFzx9sgG/Abyase9J4jiEu/T9lqZ99hlA4AZdmcS2vNfnmWEQ4G4Vytw
OmJVIgx47EPMgRbYCQlR6K7e+h8QjeSx2+jfAPhR3EgHr3oEZDI0hIwkNvITGXUo
aj2oXaDd3C49LAAq6p9i8Dg/20G+Y3+k/0xF5zn0RoH9e1e0N7v8Cmn/nDqzOEBq
7LjyALUhZsEVkr28bV57c3wFCaslcGwDUd3sRlbt2xtSBpe7ufqu4wxzjhFQBrh2
FxaYftrUSEjvOa0ushHGEyuNdrJ+qUhXdVMFR5x2NxT+dfv829U8jNfmotsonrzO
T/fc4BL/9C+sIK0xA8jWYcqoLCvAZmaZqpMbeB2AFu2uQbEf9b4YhWUotsXlRNSL
7WPVIG2XN4CSLVRCKzU1uybYWF9w9EZm9I7fJ3y/sVYSlB/D7ipYOTpxZVaWuaAV
CIA4z4r/5viUuhcm99VPZdMRjF9Vdhu+dnz8ESfTCPU7ecjqfMgR1HMxpUPZNUpH
C9RA4v0l
=ssGT
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to