Bug 1292449 - libconfig.pdf: evince says "PDF document is damaged"
Summary: libconfig.pdf: evince says "PDF document is damaged"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libconfig
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-17 13:43 UTC by Richard W.M. Jones
Modified: 2015-12-20 06:52 UTC (History)
2 users (show)

Fixed In Version: libconfig-1.5-3.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-20 06:52:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2015-12-17 13:43:11 UTC
Description of problem:

$ evince /usr/share/doc/libconfig-devel/libconfig.pdf

The evince command does not work.  evince prints a non-specific
error message saying just:

  PDF document is damaged

pdf2ps is a bit more specific:

$ pdf2ps libconfig.pdf 
   **** Warning:  An error occurred while reading an XREF table.
   **** The file has been damaged.  This may have been caused
   **** by a problem while converting or transfering the file.
   **** Ghostscript will attempt to recover the data.
   **** Error:  Trailer is not found.
   No pages will be processed (FirstPage > LastPage).

   **** This file had errors that were repaired or ignored.
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.

$ ls -l /usr/share/doc/libconfig-devel/libconfig.pdf
-rw-r--r--. 1 root root 315078 Jun 17  2015 /usr/share/doc/libconfig-devel/libconfig.pdf
$ md5sum /usr/share/doc/libconfig-devel/libconfig.pdf
947bda6c48bdc03b83879d6738daa661  /usr/share/doc/libconfig-devel/libconfig.pdf

Version-Release number of selected component (if applicable):

libconfig-devel-1.5-2.fc23.x86_64

How reproducible:

100%

Steps to Reproduce:
1. See steps above.

Comment 1 Richard W.M. Jones 2015-12-17 13:43:56 UTC
rpm -V checks out, so it doesn't seem to be due to local corruption.

Comment 2 Richard W.M. Jones 2015-12-17 13:45:21 UTC
Looking at the spec file, it's doing stuff like:

# Prevent multilib conflicts
sed -i '/^\/CreationDate/d' doc/libconfig.pdf
sed -i '/^\/ModDate/d' doc/libconfig.pdf
sed -i '/^\/ID /d' doc/libconfig.pdf

which doesn't look like a good idea :-(

Comment 3 Pavel Raiskup 2015-12-17 13:57:33 UTC
Thanks for the report.

Tom, could we use look-aside cache for the pdf?  We could  then pre-generate
PDFs locally.  This shouldn't be against PG.

Comment 4 Tom "spot" Callaway 2015-12-17 14:28:22 UTC
Yeah, I inherited that cruft, definitely not the right way to solve that issue. I'll just add the PDF as a source.

Comment 5 Fedora Update System 2015-12-17 18:25:26 UTC
libconfig-1.5-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-b33c875366

Comment 6 Fedora Update System 2015-12-18 11:55:16 UTC
libconfig-1.5-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update libconfig'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b33c875366

Comment 7 Fedora Update System 2015-12-20 06:52:02 UTC
libconfig-1.5-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.