Bug#818363: Uses unreproducible internal font IDs

Damyan Ivanov dmn at debian.org
Wed Mar 16 13:00:40 UTC 2016


Package: libpdf-api2-perl
Version: 2.025-1
Severity: wishlist
Tags: patch upstream

The TrueType, BdFont, CoreFont and Postscript subclasses of 
PDF::API2::Resource::Font append '~'.time() to the resource identifiers they 
generate. This is unnecessary because the identifier already includes the 
result of the pdfkey() function, which gives increasing numbers through a 
process lifetime.

Adding time() is in itself not enough to guarantee unique IDs, but only 
introduces unreproducible output and poses a slight performance penalty for the 
syscall needed to get the current time.

The attached patch removes time() from the resource IDs, which is sufficient to 
get reproducible output.

-- dam


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libpdf-api2-perl depends on:
ii  libfont-ttf-perl  1.05-1
ii  perl              5.22.1-9

libpdf-api2-perl recommends no packages.

libpdf-api2-perl suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reproducible-resources.patch
Type: text/x-diff
Size: 2859 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20160316/8da90ef5/attachment.patch>


More information about the pkg-perl-maintainers mailing list