texlive-bin won't compile against libpoppler 0.12

Bug #438031 reported by أحمد المحمودي (Ahmed El-Mahmoudy)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
texlive-bin (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When compiling texlive-bin against libpoppler 0.12 I got this error:

../../../../texk/web2c/pdftexdir/pdftoepdf.cc: In function 'integer read_pdf_info(char*, char*, integer, integer, integer, integer)':
../../../../texk/web2c/pdftexdir/pdftoepdf.cc:691: error: 'class PDFDoc' has no member named 'getPDFVersion'
../../../../texk/web2c/pdftexdir/pdftoepdf.cc: In function 'void write_epdf()':

By googling this error, I found this info on gentoo: http://bugs.gentoo.org/show_bug.cgi?id=282833 , that getPDFMajorVersion & getPDFMinorVersion should be used instead.

I suggest the following change in pdftoepdf.cc:

- pdf_version_found = pdf_doc->doc->getPDFVersion();
- pdf_version_wanted = 1 + (minor_pdf_version_wanted * 0.1);
- if (pdf_version_found > pdf_version_wanted) {
+ pdf_version_found = pdf_doc->doc->getPDFMinorVersion();
+ if (pdf_version_found > minor_pdf_version_wanted) {

Related branches

Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote :

This patch fixes the FTBFS by using getPDFMinorVersion & getPDFMajorVersion

Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote :

Please consider the merge request on https://bugs.launchpad.net/ubuntu/+source/texlive-bin/+bug/438092 first.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package texlive-bin - 2007.dfsg.2-7ubuntu1

---------------
texlive-bin (2007.dfsg.2-7ubuntu1) karmic; urgency=low

  * Merge from Debian unstable, remaining changes: (LP: #438092)
    + debian/patches/ubuntu_libpoppler-0.11: fix a FTBFS because of unuseful
      call to GfxFont destructor (virtual and protected) (LP: #383825)
    + debian/patches/65_fix_getline_glibc2.10.patch: fix FTBFS by renaming
      included getline-functions to not conflict with glibc provided getline.
    + debian/fix-manpages.sh: quote special chars in sed command
  * debian/patches/ubuntu_libpoppler-0.12: fix a FTBFS with libpoppler 0.12:
    use getPDFMinorVersion instead of getPDFVersion. (LP: #438031)

texlive-bin (2007.dfsg.2-7) unstable; urgency=low

  * bump build-dep on tex-common to 1.20 to get "fixed" postrm
    snippets from dh_installtex
  * add a patch to fmtutil that make warnings not exit fmtutil non-0
    exit code. This is needed to fix the 5-years is too old bug.
    (Closes: #531569, #531595)
  * build using g++4.4 on armel instead of g++4.2 (Closes: #533796)
  * make dependency libkpathsea-dev -> libkpathsea4 versioned (lintian error)
  * bump standards version to 3.8.3:
    - add dependency on install-info to texlive-base-bin-doc

 -- ALEFHAHMEEMDAL ALEFLAMMEEMHAHMEEMWAWDALYEH (Ahmed El-Mahmoudy) <email address hidden> Mon, 28 Sep 2009 09:36:06 +0000

Changed in texlive-bin (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.