Your message dated Sun, 24 Apr 2011 10:19:11 +0000
with message-id <[email protected]>
and subject line Bug#514332: fixed in paps 0.6.8-3
has caused the Debian Bug report #514332,
regarding paps: --cpi option does not work, scale miscalculated
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 [email protected]
immediately.)
--
514332: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514332
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: paps
Version: 0.6.8-2
Severity: important
Tags: patch
The --cpi option really doesn't do what it is supposed to do.
I went digging in the code and I found the bug. (I used the
last available source on SF, 0.6.8, and verified it had the same behavior)
There's this in paps.c:
scale = 1 / page_layout.cpi * 72.0 * PANGO_SCALE / max_width;
It mixes doubles with ints there. The result is that scale will be
zero for any cpi, except when cpi is around 1.
To fix that, change that line to:
scale = 1.0 / page_layout.cpi * 72.0 * (double)PANGO_SCALE /
(double)max_width;
The same error can be found some lines higher, where page_layout.scale_x is
calculated.
I already filed upstream, as I verified the bug is still present in the
most recent version they have there.
It would be great if the bug could be fixed in debian already, not waiting for
upstream to catch up. The patch is kinda trivial.
See:
https://sourceforge.net/tracker/index.php?func=detail&aid=2572267&group_id=153049&atid=786239
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing'), (800, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF8, LC_CTYPE=en_US.UTF8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF8)
Shell: /bin/sh linked to /bin/bash
Versions of packages paps depends on:
ii libc6 2.7-16 GNU C Library: Shared libraries
ii libfreetype6 2.3.7-2 FreeType 2 font engine, shared lib
ii libglib2.0-0 2.16.6-1 The GLib library of C routines
ii libpango1.0-0 1.20.5-3 Layout and rendering of internatio
paps recommends no packages.
paps suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: paps
Source-Version: 0.6.8-3
We believe that the bug you reported is fixed in the latest version of
paps, which is due to be installed in the Debian FTP archive:
libpaps-dev_0.6.8-3_amd64.deb
to main/p/paps/libpaps-dev_0.6.8-3_amd64.deb
paps_0.6.8-3.debian.tar.gz
to main/p/paps/paps_0.6.8-3.debian.tar.gz
paps_0.6.8-3.dsc
to main/p/paps/paps_0.6.8-3.dsc
paps_0.6.8-3_amd64.deb
to main/p/paps/paps_0.6.8-3_amd64.deb
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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Lior Kaplan <[email protected]> (supplier of updated paps 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 24 Apr 2011 01:02:21 +0300
Source: paps
Binary: libpaps-dev paps
Architecture: source amd64
Version: 0.6.8-3
Distribution: unstable
Urgency: low
Maintainer: Lior Kaplan <[email protected]>
Changed-By: Lior Kaplan <[email protected]>
Description:
libpaps-dev - Static development files for libpaps
paps - UTF-8 to PostScript converter using Pango
Closes: 514332 536761
Changes:
paps (0.6.8-3) unstable; urgency=low
.
* Switch to dpkg-source 3.0 (quilt) format
* debian/control: fix build-depends-on-1-revision lintain warning
* Fix scale miscalculation for cpi options with patch by Alexander Prinsier
(Closes: #514332)
* Implement --gutter-width option with patch by Arthur de Jong
(Closes: 536761)
Checksums-Sha1:
df0119423d27e0de0d19052cd518fefbc6c8f13b 1067 paps_0.6.8-3.dsc
9b7456b0c0c07c3d92f49249e2d879e7c1042c81 25585 paps_0.6.8-3.debian.tar.gz
7f427b65cc57e64896aaedc9d3de3f97468eed95 124324 libpaps-dev_0.6.8-3_amd64.deb
03215bad5e86d326484f0459630633471f1ff330 20736 paps_0.6.8-3_amd64.deb
Checksums-Sha256:
d5d4751a42aa571ec7cf4d52b536d1a94593da937e0090ecf3ae1b86eb7c93f2 1067
paps_0.6.8-3.dsc
47e89d93e0659b956c17bc69acf50947de8e75692f3e45520803fd54bd14c013 25585
paps_0.6.8-3.debian.tar.gz
379c874aa92fda49a76672be0b8490222b7b1c16c33be621cbf1ae0fb309d35f 124324
libpaps-dev_0.6.8-3_amd64.deb
caed78c4e7e9d7477d71a09943d21e77093b6644d0a204037b1345dd42a7a4b7 20736
paps_0.6.8-3_amd64.deb
Files:
27c09c6e66e8bddb2dae55ddaa1bc1e8 1067 libs optional paps_0.6.8-3.dsc
005ca85f2fa0440f8b8603e9884ded54 25585 libs optional paps_0.6.8-3.debian.tar.gz
5d6d41e29fdb962a37eb0711c70a0e31 124324 libdevel optional
libpaps-dev_0.6.8-3_amd64.deb
0e2d27553d3b7684f79e6477d5348b2d 20736 text optional paps_0.6.8-3_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk2z9PsACgkQFViURZnoHaAAZwCgnMIu6Rm7iamquRPW4WxuOrBM
gbAAn1+J+ycgCJJRdZGqZgeZDhqSKa3l
=0gZv
-----END PGP SIGNATURE-----
--- End Message ---