Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685284 - app-text/texlive-core-2017-r4 fails to build with app-text/poppler 0.76.*
Summary: app-text/texlive-core-2017-r4 fails to build with app-text/poppler 0.76.*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on: 681338
Blocks: poppler-0.76
  Show dependency tree
 
Reported: 2019-05-07 20:55 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2019-05-08 22:56 UTC (History)
1 user (show)

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


Attachments
texlive-core-2017-luatex-poppler-0.76.patch (texlive-core-2017-luatex-poppler-0.76.patch,1.33 KB, patch)
2019-05-08 02:01 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
texlive-core-2017-pdftex-poppler-0.76.patch (texlive-core-2017-pdftex-poppler-0.76.patch,1.21 KB, patch)
2019-05-08 02:02 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2019-05-07 20:55:29 UTC
app-text/texlive-core-2017-r4 fails to build with app-text/poppler 0.76.*.

Errors in 4 files:

・・・ texk/web2c/luatexdir/image/pdftoepdf.w ・・・

texk/web2c/luatexdir/image/pdftoepdf.w: In function ‘void read_pdf_info(image_dict*)’:
texk/web2c/luatexdir/image/pdftoepdf.w:631:54: error: no matching function for call to ‘Catalog::findPage(int&, int&)’
         img_pagenum(idict) = catalog->findPage(ref.num, ref.gen);
                                                      ^
In file included from texk/web2c/luatexdir/image/epdf.h:50,
                 from texk/web2c/luatexdir/image/pdftoepdf.w:25:
/usr/include/poppler/Catalog.h:149:7: note: candidate: ‘int Catalog::findPage(Ref)’
   int findPage(const Ref pageRef);
       ^~~~~~~~
/usr/include/poppler/Catalog.h:149:7: note:   candidate expects 1 argument, 2 provided


・・・ texk/web2c/luatexdir/lua/lepdflib.cc ・・・

texk/web2c/luatexdir/lua/lepdflib.cc: In function ‘int m_Catalog_findPage(lua_State*)’:
texk/web2c/luatexdir/lua/lepdflib.cc:843:48: error: no matching function for call to ‘Catalog::findPage(int&, int&)’
     i = ((Catalog *) uin->d)->findPage(num, gen);
                                                ^
In file included from texk/web2c/luatexdir/image/epdf.h:50,
                 from texk/web2c/luatexdir/lua/lepdflib.cc:22:
/usr/include/poppler/Catalog.h:149:7: note: candidate: ‘int Catalog::findPage(Ref)’
   int findPage(const Ref pageRef);
       ^~~~~~~~
/usr/include/poppler/Catalog.h:149:7: note:   candidate expects 1 argument, 2 provided
texk/web2c/luatexdir/lua/lepdflib.cc: In function ‘int m_PDFDoc_findPage(lua_State*)’:
texk/web2c/luatexdir/lua/lepdflib.cc:2438:61: error: no matching function for call to ‘PDFDoc::findPage(int&, int&)’
         i = ((PdfDocument *) uin->d)->doc->findPage(num, gen);
                                                             ^
In file included from texk/web2c/luatexdir/image/epdf.h:55,
                 from texk/web2c/luatexdir/lua/lepdflib.cc:22:
/usr/include/poppler/PDFDoc.h:221:7: note: candidate: ‘int PDFDoc::findPage(Ref)’
   int findPage(const Ref ref) { return catalog->findPage(ref); }
       ^~~~~~~~
/usr/include/poppler/PDFDoc.h:221:7: note:   candidate expects 1 argument, 2 provided


・・・ texk/web2c/pdftexdir/pdftoepdf.cc ・・・

texk/web2c/pdftexdir/pdftoepdf.cc: In function ‘int read_pdf_info(char*, char*, int, int, int, int)’:
texk/web2c/pdftexdir/pdftoepdf.cc:769:73: error: no matching function for call to ‘Catalog::findPage(int&, int&)’
         page_num = pdf_doc->doc->getCatalog()->findPage(ref.num, ref.gen);
                                                                         ^
In file included from texk/web2c/pdftexdir/pdftoepdf.cc:55:
/usr/include/poppler/Catalog.h:149:7: note: candidate: ‘int Catalog::findPage(Ref)’
   int findPage(const Ref pageRef);
       ^~~~~~~~
/usr/include/poppler/Catalog.h:149:7: note:   candidate expects 1 argument, 2 provided


・・・ texk/web2c/pdftexdir/pdftosrc.cc ・・・

texk/web2c/pdftexdir/pdftosrc.cc: In function 'int main(int, char**)':
texk/web2c/pdftexdir/pdftosrc.cc:172:70: error: no matching function for call to 'Parser::Parser(XRef*&, Lexer*, bool)'
                 parser = new Parser(xref, new Lexer(xref, str), false);
                                                                      ^
In file included from texk/web2c/pdftexdir/pdftosrc.cc:46:
/usr/include/poppler/Parser.h:41:3: note: candidate: 'Parser::Parser(XRef*, Object*, bool)'
   Parser(XRef *xrefA, Object *objectA, bool allowStreamsA);
   ^~~~~~
/usr/include/poppler/Parser.h:41:3: note:   no known conversion for argument 2 from 'Lexer*' to 'Object*'
/usr/include/poppler/Parser.h:40:3: note: candidate: 'Parser::Parser(XRef*, Stream*, bool)'
   Parser(XRef *xrefA, Stream *streamA, bool allowStreamsA);
   ^~~~~~
/usr/include/poppler/Parser.h:40:3: note:   no known conversion for argument 2 from 'Lexer*' to 'Stream*'
Comment 1 Arfrever Frehtes Taifersar Arahesis 2019-05-08 02:01:49 UTC
Created attachment 575490 [details, diff]
texlive-core-2017-luatex-poppler-0.76.patch
Comment 2 Arfrever Frehtes Taifersar Arahesis 2019-05-08 02:02:51 UTC
Created attachment 575492 [details, diff]
texlive-core-2017-pdftex-poppler-0.76.patch

Patches need to be applied conditionally:
--- app-text/texlive-core/texlive-core-2017-r4.ebuild
+++ app-text/texlive-core/texlive-core-2017-r4.ebuild
@@ -169,3 +169,11 @@ src_prepare() {
 	if has_version ">=app-text/poppler-0.69.0"; then
 		epatch "${FILESDIR}"/${P}-poppler0{69,71,72,73}.patch # bugs #672854, 675448
 	fi
+	if has_version ">=app-text/poppler-0.75.0"; then
+		epatch "${FILESDIR}/${P}-luatex-poppler-0.75.patch"
+		epatch "${FILESDIR}/${P}-pdftex-poppler-0.75.patch"
+	fi
+	if has_version ">=app-text/poppler-0.76.0"; then
+		epatch "${FILESDIR}/${P}-luatex-poppler-0.76.patch"
+		epatch "${FILESDIR}/${P}-pdftex-poppler-0.76.patch"
+	fi
Comment 3 Larry the Git Cow gentoo-dev 2019-05-08 22:56:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a790d0f672d6f7f2e2afc0ec6c0f69fe77b86644

commit a790d0f672d6f7f2e2afc0ec6c0f69fe77b86644
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-05-08 22:45:17 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-05-08 22:56:15 +0000

    app-text/texlive-core: Fix build w/ poppler-0.75 and poppler-0.76
    
    Closes: https://bugs.gentoo.org/681338
    Closes: https://bugs.gentoo.org/685284
    Thanks-to: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
    Package-Manager: Portage-2.3.66, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 app-text/texlive-core/Manifest                     |   1 +
 .../files/texlive-core-2017-poppler064.patch       | 118 ---------
 .../files/texlive-core-2017-poppler069.patch       | 216 ----------------
 .../files/texlive-core-2017-poppler071.patch       | 281 ---------------------
 .../files/texlive-core-2017-poppler072.patch       | 157 ------------
 .../files/texlive-core-2017-poppler073.patch       |  74 ------
 app-text/texlive-core/texlive-core-2017-r4.ebuild  |  11 +-
 7 files changed, 10 insertions(+), 848 deletions(-)