Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449538 - dev-tex/luatex-0.70.1 fails to build with >=poppler-0.22.0
Summary: dev-tex/luatex-0.70.1 fails to build with >=poppler-0.22.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CVE-2013-1788
  Show dependency tree
 
Reported: 2013-01-01 02:58 UTC by Rafał Mużyło
Modified: 2013-03-10 21:27 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to build luatex against poppler 0.22 (poppler022.patch,967 bytes, patch)
2013-01-01 02:58 UTC, Rafał Mużyło
Details | Diff
poppler022.patch (poppler022.patch,12.81 KB, patch)
2013-03-10 21:17 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2013-01-01 02:58:16 UTC
Created attachment 333902 [details, diff]
patch to build luatex against poppler 0.22

Just like it was with poppler 0.20, this release breaks it again.

Unlike bug 416545, there's a pretty good chance the attached patch isn't quite correct, as a new argument needs to be added and I can't tell how exactly is luatex calling these functions (as they're all static), so I can't test these changes and - quite obviously - as this time an argument is added, instead of removed, anything that used to call this constructor *will* be broken.
Comment 1 James Cloos 2013-01-03 01:24:38 UTC
As a side note, luatex 0.72 is out; the announcement claims support for poppler 0.21.
Comment 2 Rafał Mużyło 2013-01-03 02:56:58 UTC
Given is says '0.21' makes it sound a bit fishy - while on odd number, some of the changes, including API tends to not make it out of the repo.

But good to know, even if the short gap between 0.72 and 0.74 makes me a bit suspicious given their usual release timing **cough**brown bag**cough**.
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2013-03-09 23:52:48 UTC
(In reply to comment #0)
> Unlike bug 416545, there's a pretty good chance the attached patch isn't
> quite correct, as a new argument needs to be added and I can't tell how
> exactly is luatex calling these functions (as they're all static), so I
> can't test these changes and - quite obviously - as this time an argument is
> added, instead of removed, anything that used to call this constructor
> *will* be broken.

Yep. (Actually the function is called nowhere in the luatex code.)
I conclude that we cannot do anything about it inside luatex, since the data has to come from somewhere and be placed onto the stack as 4th argument. E.g. in a lua script?

Since this is the last package blocking poppler upgrade and since poppler has a couple of sec bugs, I'm placing an explicit dep on <poppler-0.20 here for now.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2013-03-10 12:53:02 UTC
This should be fixed in luatex-0.70.1-r2.

(Upstream went a different way and basically removed that part of the exported lua interface completely.)
Comment 5 Sven 2013-03-10 14:19:32 UTC
(In reply to comment #4)
> This should be fixed in luatex-0.70.1-r2.
> 
> (Upstream went a different way and basically removed that part of the
> exported lua interface completely.)

Hey uhm, just saying, but, could you please commit a patch that actually applies?

 * Applying poppler022.patch ...

 * Failed Patch: poppler022.patch !
 *  ( /usr/portage/dev-tex/luatex/files/poppler022.patch )

And the excerpt from /var/tmp/portage/dev-tex/luatex-0.70.1-r2/temp/poppler022.patch.out:

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch  < '/usr/portage/dev-tex/luatex/files/poppler022.patch'

============================
patching file texk/web2c/luatexdir/lua/lepdflib.cc
Hunk #2 FAILED at 19.
1 out of 25 hunks FAILED -- saving rejects to file texk/web2c/luatexdir/lua/lepdflib.cc.rej
Comment 6 Andrew Savchenko gentoo-dev 2013-03-10 21:17:35 UTC
Created attachment 341604 [details, diff]
poppler022.patch

Corrected patch: second chunk is replaced by a proper data.
Comment 7 Dale Lukas Peterson 2013-03-10 21:27:58 UTC
This updated patch fixes the problem for me.  Thanks for the quick work.