Bug 162755 - [PATCH] graphics/evince: segfault on showing properties of some pdf files
Summary: [PATCH] graphics/evince: segfault on showing properties of some pdf files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 15:50 UTC by hiroto.kagotani
Modified: 2012-03-14 05:40 UTC (History)
1 user (show)

See Also:


Attachments
evince-2.32.0_6.patch (1.14 KB, patch)
2011-11-22 15:50 UTC, hiroto.kagotani
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description hiroto.kagotani 2011-11-22 15:50:01 UTC
poppler has changed its API for getting PDF properties since 0.15.1
after the release of evince-2.32.0.

From ChangeLog of poppler:
> commit d4a6c17255821925906c17b79b88eebed9edfee1
> Author: Carlos Garcia Campos <carlosgc@gnome.org>
> Date:   Fri Sep 17 13:04:33 2010 +0200
> 
>     [glib] Add accessor for all PopplerDocument properties
> 
>     PopplerDocument:linearized is now a boolean value rather than string,
>     so this commit breaks the API again.

This change causes evince segfault when showing properties of
some PDF files.  To avoid this, evince must handle ``linearized''
property as boolean.

Added file(s):
- files/patch-backend__pdf__ev-poppler.cc

Port maintainer (gnome@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99

Fix: This fix is borrowed from 
http://osdir.com/ml/general/2010-09/msg30460.html
Since poppler in FreeBSD is now 0.18.0, #ifdef's are not required.

This fix should be removed when evince is updated to 3.x.
How-To-Repeat: Download a PDF file from
http://www.opm.gov/forms/pdf_fill/of0306.pdf
and open it with evince.
Choose Properties from File menu.
Comment 1 Edwin Groothuis freebsd_committer 2011-11-22 15:50:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Jeremy Messenger freebsd_committer 2012-03-14 05:30:52 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 3 dfilter service freebsd_committer 2012-03-14 05:30:53 UTC
mezz        2012-03-14 05:30:38 UTC

  FreeBSD ports repository

  Modified files:
    graphics/evince      Makefile 
  Added files:
    graphics/evince/files patch-backend_pdf_ev-poppler.cc 
  Log:
  Fix the crash on some PDF files. Bump the PORTREVISION.
  
  PR:             ports/162755
  Obtained from:  http://osdir.com/ml/general/2010-09/msg30460.html
  Submitted by:   Hiroto Kagotani <hiroto.kagotani@gmail.com>
  Feature safe:   yes
  
  Revision  Changes    Path
  1.70      +1 -1      ports/graphics/evince/Makefile
  1.3       +28 -0     ports/graphics/evince/files/patch-backend_pdf_ev-poppler.cc (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"