[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Processing of luatex_0.43.0-1_amd64.changes



On Mon, Oct 12, 2009 at 05:55:35AM +0000, Archive Administrator wrote:
> luatex_0.43.0-1_amd64.changes uploaded successfully to localhost
---end quoted text---

Since luatex is uploaded to experimental I think the libpoppler patches 
in bug #548878 should be used, in order for luatex to sucessfully get 
built (since experimental has libpoppler 0.12).

I just checked the build log on PTS [1], and amazingly luatex did build 
successfully, the reason is that actually libpoppler 0.10.6 was pulled 
during build rather that libpoppler 0.12, I don't understand the reason 
though.

Anyways, I've attached them here (yet refreshed for luatex) for 
convenience.

[1] 
http://experimental.debian.net/fetch.php?pkg=luatex&arch=i386&ver=0.43.0-1&stamp=1255369765&file=log&as=raw

-- 
 ‎أحمد المحمودي (Ahmed El-Mahmoudy)
  Digital design engineer
 GPG KeyID: 0xEDDDA1B7 (@ subkeys.pgp.net)
 GPG Fingerprint: 8206 A196 2084 7E6D 0DF8  B176 BC19 6A94 EDDD A1B7
Fix a FTBFS with libpoppler 0.11: the destructor of GfxFont is virtual, and it doesn't make sense to call it.
--- a/source/texk/web2c/luatexdir/image/pdftoepdf.cc
+++ b/source/texk/web2c/luatexdir/image/pdftoepdf.cc
@@ -672,7 +672,7 @@
     }
     for (r = encodingList; r != NULL; r = n) {
         n = r->next;
-        delete r->font;
+//        delete r->font;
         delete r;
     }
 }
Fix a FTBFS with libpoppler 0.12: use getPDFMinorVersion instead of getPDFVersion
--- a/source/texk/web2c/luatexdir/image/pdftoepdf.cc
+++ b/source/texk/web2c/luatexdir/image/pdftoepdf.cc
@@ -712,6 +712,7 @@
     Page *page;
     int rotate;
     PDFRectangle *pagebox;
+    int minor_pdf_version_found, major_pdf_version_found;
     float pdf_version_found, pdf_version_wanted, xsize, ysize, xorig, yorig;
     assert(idict != NULL);
     assert(img_type(idict) == IMG_TYPE_PDF);
@@ -727,8 +728,11 @@
     // this works only for PDF 1.x -- but since any versions of PDF newer
     // than 1.x will not be backwards compatible to PDF 1.x, pdfTeX will
     // then have to changed drastically anyway.
-    pdf_version_found = pdf_doc->doc->getPDFVersion();
+    minor_pdf_version_found = pdf_doc->doc->getPDFMinorVersion();
+    major_pdf_version_found = pdf_doc->doc->getPDFMajorVersion();
+    pdf_version_found = major_pdf_version_found + (minor_pdf_version_found * 0.1);
     pdf_version_wanted = 1 + (minor_pdf_version_wanted * 0.1);
+
     if (pdf_version_found > pdf_version_wanted + 0.01) {
         char msg[] =
             "PDF inclusion: found PDF version <%.1f>, but at most version <%.1f> allowed";

Reply to: