Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 557486 Details for
Bug 672854
=app-text/texlive-core-2017-r4 with >=app-text/poppler-0.71.0 - .../work/texlive-20170524-source/texk/web2c/pdftexdir/pdftosrc.cc:170:76: error: 'gTrue' was not declared in this scope
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
texlive-core-2017-poppler071.patch
texlive-core-2017-poppler071.patch (text/plain), 7.81 KB, created by
maurerpe
on 2018-12-10 01:22:02 UTC
(
hide
)
Description:
texlive-core-2017-poppler071.patch
Filename:
MIME Type:
Creator:
maurerpe
Created:
2018-12-10 01:22:02 UTC
Size:
7.81 KB
patch
obsolete
>--- a/texk/web2c/luatexdir/lua/lepdflib.cc 2018-12-09 19:34:16.159584025 -0500 >+++ b/texk/web2c/luatexdir/lua/lepdflib.cc 2018-12-09 19:56:44.042442283 -0500 >@@ -238,7 +238,7 @@ > if (uobj->pd != NULL && uobj->pd->pc != uobj->pc) > pdfdoc_changed_error(L); > uout = new_Attribute_userdata(L); >- uout->d = new Attribute(n, nlen, (Object *)uobj->d); >+ uout->d = new Attribute(GooString(n, nlen), (Object *)uobj->d); > uout->atype = ALLOC_LEPDF; > uout->pc = uobj->pc; > uout->pd = uobj->pd; >@@ -443,7 +443,7 @@ > uin = (udstruct *) luaL_checkudata(L, 1, M_##in); \ > if (uin->pd != NULL && uin->pd->pc != uin->pc) \ > pdfdoc_changed_error(L); \ >- o = ((in *) uin->d)->function(); \ >+ o = (out *) ((in *) uin->d)->function(); \ > if (o != NULL) { \ > uout = new_##out##_userdata(L); \ > uout->d = o; \ >@@ -972,12 +972,12 @@ > > static int m_Dict_add(lua_State * L) > { >- char *s; >+ const char *s; > udstruct *uin, *uobj; > uin = (udstruct *) luaL_checkudata(L, 1, M_Dict); > if (uin->pd != NULL && uin->pd->pc != uin->pc) > pdfdoc_changed_error(L); >- s = copyString(luaL_checkstring(L, 2)); >+ s = luaL_checkstring(L, 2); > uobj = (udstruct *) luaL_checkudata(L, 3, M_Object); > ((Dict *) uin->d)->add(s, std::move(*((Object *) uobj->d))); > return 0; >@@ -1894,7 +1894,7 @@ > pdfdoc_changed_error(L); > if (!((Object *) uin->d)->isDict()) > luaL_error(L, "Object is not a Dict"); >- ((Object *) uin->d)->dictAdd(copyString(s), std::move(*((Object *) uobj->d))); >+ ((Object *) uin->d)->dictAdd(s, std::move(*((Object *) uobj->d))); > return 0; > } > >@@ -2308,7 +2308,7 @@ > > static int m_PDFDoc_getFileName(lua_State * L) > { >- GooString *gs; >+ const GooString *gs; > udstruct *uin; > uin = (udstruct *) luaL_checkudata(L, 1, M_PDFDoc); > if (uin->pd != NULL && uin->pd->pc != uin->pc) >@@ -2396,7 +2396,7 @@ > > static int m_PDFDoc_readMetadata(lua_State * L) > { >- GooString *gs; >+ const GooString *gs; > udstruct *uin; > uin = (udstruct *) luaL_checkudata(L, 1, M_PDFDoc); > if (uin->pd != NULL && uin->pd->pc != uin->pc) >@@ -2414,7 +2414,7 @@ > > static int m_PDFDoc_getStructTreeRoot(lua_State * L) > { >- StructTreeRoot *obj; >+ const StructTreeRoot *obj; > udstruct *uin, *uout; > uin = (udstruct *) luaL_checkudata(L, 1, M_PDFDoc); > if (uin->pd != NULL && uin->pd->pc != uin->pc) >@@ -2422,7 +2422,7 @@ > if (((PdfDocument *) uin->d)->doc->getCatalog()->isOk()) { > obj = ((PdfDocument *) uin->d)->doc->getStructTreeRoot(); > uout = new_StructTreeRoot_userdata(L); >- uout->d = obj; >+ uout->d = (StructTreeRoot *) obj; > uout->pc = uin->pc; > uout->pd = uin->pd; > } else >--- a/texk/web2c/luatexdir/image/pdftoepdf.w 2018-12-09 19:50:21.946305648 -0500 >+++ b/texk/web2c/luatexdir/image/pdftoepdf.w 2018-12-09 19:58:06.094397916 -0500 >@@ -363,7 +363,7 @@ > > static void copyString(PDF pdf, GooString * string) > { >- char *p; >+ const char *p; > unsigned char c; > size_t i, l; > p = string->getCString(); >@@ -393,7 +393,7 @@ > pdf->cave = true; > } > >-static void copyName(PDF pdf, char *s) >+static void copyName(PDF pdf, const char *s) > { > pdf_out(pdf, '/'); > for (; *s != 0; s++) { >@@ -527,7 +527,7 @@ > > /* get the pagebox coordinates according to the pagebox_spec */ > >-static PDFRectangle *get_pagebox(Page * page, int pagebox_spec) >+static const PDFRectangle *get_pagebox(Page * page, int pagebox_spec) > { > switch (pagebox_spec) { > case PDF_BOX_SPEC_MEDIA: >@@ -584,7 +584,7 @@ > Catalog *catalog; > Page *page; > int rotate; >- PDFRectangle *pagebox; >+ const PDFRectangle *pagebox; > int pdf_major_version_found, pdf_minor_version_found; > float xsize, ysize, xorig, yorig; > if (isInit == false) { >@@ -721,7 +721,7 @@ > Ref *pageref; > Dict *pageDict; > Object obj1, contents, pageobj, pagesobj1, pagesobj2, *op1, *op2, *optmp; >- PDFRectangle *pagebox; >+ const PDFRectangle *pagebox; > int i, l; > double bbox[4]; > /* char s[256]; */ >--- a/texk/web2c/xetexdir/pdfimage.cpp 2018-12-09 20:00:16.936732540 -0500 >+++ b/texk/web2c/xetexdir/pdfimage.cpp 2018-12-09 20:00:19.295702514 -0500 >@@ -78,7 +78,7 @@ > > Page* page = doc->getCatalog()->getPage(page_num); > >- PDFRectangle* r; >+ const PDFRectangle* r; > switch (pdf_box) { > default: > case pdfbox_crop: >--- a/texk/web2c/pdftexdir/pdftex-common.h 2018-12-09 19:22:43.382355030 -0500 >+++ b/texk/web2c/pdftexdir/pdftex-common.h 2018-12-09 19:22:46.891310604 -0500 >@@ -101,7 +101,7 @@ > extern void write_epdf(void); > > /* writeenc.c */ >-extern void epdf_write_enc(char **, int); >+extern void epdf_write_enc(const char **, int); > > /* writeimg.c */ > extern float epdf_width; >--- a/texk/web2c/pdftexdir/pdftoepdf.cc 2018-12-09 19:10:38.428478463 -0500 >+++ b/texk/web2c/pdftexdir/pdftoepdf.cc 2018-12-09 19:19:20.654914283 -0500 >@@ -270,7 +270,7 @@ > > static void copyObject(Object *); > >-static void copyName(char *s) >+static void copyName(const char *s) > { > pdf_puts("/"); > for (; *s != 0; s++) { >@@ -305,7 +305,7 @@ > static void copyFontDict(Object * obj, InObj * r) > { > int i, l; >- char *key; >+ const char *key; > if (!obj->isDict()) > pdftex_fail("PDF inclusion: invalid dict type <%s>", > obj->getTypeName()); >@@ -377,7 +377,7 @@ > return false; > } > >-static void copyFont(char *tag, Object * fontRef) >+static void copyFont(const char *tag, Object * fontRef) > { > Object fontdict, subtype, basefont, fontdescRef, fontdesc, charset, > stemV; >@@ -462,7 +462,7 @@ > pdf_puts(">>\n"); > } > >-static void copyOtherResources(Object * obj, char *key) >+static void copyOtherResources(Object * obj, const char *key) > { > // copies all other resources (write_epdf handles Fonts and ProcSets), > >@@ -549,7 +549,7 @@ > Object obj1; > int i, l, c; > Ref ref; >- char *p; >+ const char *p; > GString *s; > if (obj->isBool()) { > pdf_printf("%s", obj->getBool()? "true" : "false"); >@@ -650,7 +650,7 @@ > static void writeEncodings() > { > UsedEncoding *r, *n; >- char *glyphNames[256], *s; >+ const char *glyphNames[256], *s; > int i; > for (r = encodingList; r != 0; r = r->next) { > for (i = 0; i < 256; i++) { >@@ -678,7 +678,7 @@ > } > > // get the pagebox according to the pagebox_spec >-static PDFRectangle *get_pagebox(Page * page, int pagebox_spec) >+static const PDFRectangle *get_pagebox(Page * page, int pagebox_spec) > { > if (pagebox_spec == pdfboxspecmedia) > return page->getMediaBox(); >@@ -710,7 +710,7 @@ > { > PdfDocument *pdf_doc; > Page *page; >- PDFRectangle *pagebox; >+ const PDFRectangle *pagebox; > #ifdef POPPLER_VERSION > int pdf_major_version_found, pdf_minor_version_found; > #else >@@ -829,7 +829,7 @@ > Object groupDict; > bool writeSepGroup = false; > Object info; >- char *key; >+ const char *key; > char s[256]; > int i, l; > int rotate; >@@ -856,7 +856,7 @@ > pageObj = xref->fetch(pageRef->num, pageRef->gen); > pageDict = pageObj.getDict(); > rotate = page->getRotate(); >- PDFRectangle *pagebox; >+ const PDFRectangle *pagebox; > // write the Page header > pdf_puts("/Type /XObject\n"); > pdf_puts("/Subtype /Form\n"); >--- a/texk/web2c/pdftexdir/writeenc.c 2018-12-09 19:22:54.330216423 -0500 >+++ b/texk/web2c/pdftexdir/writeenc.c 2018-12-09 19:22:56.843184607 -0500 >@@ -83,7 +83,7 @@ > > /**********************************************************************/ > >-void epdf_write_enc(char **glyph_names, int fe_objnum) >+void epdf_write_enc(const char **glyph_names, int fe_objnum) > { > int i, i_old; > assert(glyph_names != NULL);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 672854
:
557482
|
557484
| 557486 |
557488