Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 568348 Details for
Bug 679868
=app-text/texlive-core-2017-r4 fails with >=app-text/poppler-0.74.0: error: 'const class GooString' has no member named 'getCString';
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
texlive-core-2017-poppler074.patch
texlive-core-2017-poppler074.patch (text/plain), 6.75 KB, created by
maurerpe
on 2019-03-09 19:40:16 UTC
(
hide
)
Description:
texlive-core-2017-poppler074.patch
Filename:
MIME Type:
Creator:
maurerpe
Created:
2019-03-09 19:40:16 UTC
Size:
6.75 KB
patch
obsolete
>--- a/texk/web2c/luatexdir/image/pdftoepdf.w 2019-03-09 13:45:27.684857019 -0500 >+++ b/texk/web2c/luatexdir/image/pdftoepdf.w 2019-03-09 13:46:08.436792254 -0500 >@@ -29,7 +29,7 @@ > the functions of poppler, which happens to be written in C++. > */ > >-extern void md5(Guchar *msg, int msgLen, Guchar *digest); >+extern void md5(unsigned char *msg, int msgLen, unsigned char *digest); > > static bool isInit = false; > >@@ -366,7 +366,7 @@ > const char *p; > unsigned char c; > size_t i, l; >- p = string->getCString(); >+ p = string->c_str(); > l = (size_t) string->getLength(); > if (pdf->cave) > pdf_out(pdf, ' '); >--- a/texk/web2c/pdftexdir/pdftosrc.cc 2019-03-09 13:36:54.933702197 -0500 >+++ b/texk/web2c/pdftexdir/pdftosrc.cc 2019-03-09 13:37:08.109677498 -0500 >@@ -105,7 +105,7 @@ > fprintf(stderr, "No SourceName found\n"); > exit(1); > } >- outname = (char *)srcName.getString()->getCString(); >+ outname = (char *)srcName.getString()->c_str(); > // We cannot free srcName, as objname shares its string. > // srcName.free(); > } else if (objnum > 0) { >@@ -114,7 +114,7 @@ > fprintf(stderr, "Not a Stream object\n"); > exit(1); > } >- sprintf(buf, "%s", fileName->getCString()); >+ sprintf(buf, "%s", fileName->c_str()); > if ((p = strrchr(buf, '.')) == 0) > p = strchr(buf, 0); > if (objgen == 0) >@@ -124,7 +124,7 @@ > outname = buf; > } else { // objnum < 0 means we are extracting the XRef table > extract_xref_table = true; >- sprintf(buf, "%s", fileName->getCString()); >+ sprintf(buf, "%s", fileName->c_str()); > if ((p = strrchr(buf, '.')) == 0) > p = strchr(buf, 0); > sprintf(p, ".xref"); >@@ -156,7 +156,7 @@ > Object objStr, obj1, obj2; > int nObjects, first, n; > int localOffset = 0; >- Guint firstOffset; >+ unsigned int firstOffset; > > objStr = xref->fetch(e->offset, 0); > assert(objStr.isStream()); >--- a/texk/web2c/pdftexdir/pdftoepdf.cc 2019-03-09 13:42:59.008093306 -0500 >+++ b/texk/web2c/pdftexdir/pdftoepdf.cc 2019-03-09 13:43:07.472079854 -0500 >@@ -422,7 +422,7 @@ > charset = fontdesc.dictLookup("CharSet"); > if (!charset.isNull() && > charset.isString() && is_subsetable(fontmap)) >- epdf_mark_glyphs(fd, (char *)charset.getString()->getCString()); >+ epdf_mark_glyphs(fd, (char *)charset.getString()->c_str()); > else > embed_whole_font(fd); > addFontDesc(fontdescRef.getRef(), fd); >@@ -561,7 +561,7 @@ > pdf_printf("%s", convertNumToPDF(obj->getNum())); > } else if (obj->isString()) { > s = (GooString *)obj->getString(); >- p = s->getCString(); >+ p = s->c_str(); > l = s->getLength(); > if (strlen(p) == (unsigned int) l) { > pdf_puts("("); >--- a/texk/web2c/luatexdir/lua/lepdflib.cc 2019-03-09 13:42:10.897169767 -0500 >+++ b/texk/web2c/luatexdir/lua/lepdflib.cc 2019-03-09 13:43:40.936026672 -0500 >@@ -523,7 +523,7 @@ > pdfdoc_changed_error(L); \ > gs = (GooString *)((in *) uin->d)->function(); \ > if (gs != NULL) \ >- lua_pushlstring(L, gs->getCString(), gs->getLength()); \ >+ lua_pushlstring(L, gs->c_str(), gs->getLength()); \ > else \ > lua_pushnil(L); \ > return 1; \ >@@ -758,7 +758,7 @@ > if (i > 0 && i <= len) { > gs = new GooString(); > if (((Array *) uin->d)->getString(i - 1, gs)) >- lua_pushlstring(L, gs->getCString(), gs->getLength()); >+ lua_pushlstring(L, gs->c_str(), gs->getLength()); > else > lua_pushnil(L); > delete gs; >@@ -910,7 +910,7 @@ > if (i > 0 && i <= len) { > gs = ((Catalog *) uin->d)->getJS(i - 1); > if (gs != NULL) >- lua_pushlstring(L, gs->getCString(), gs->getLength()); >+ lua_pushlstring(L, gs->c_str(), gs->getLength()); > else > lua_pushnil(L); > delete gs; >@@ -1225,7 +1225,7 @@ > uin = (udstruct *) luaL_checkudata(L, 1, M_GooString); > if (uin->pd != NULL && uin->pd->pc != uin->pc) > pdfdoc_changed_error(L); >- lua_pushlstring(L, ((GooString *) uin->d)->getCString(), >+ lua_pushlstring(L, ((GooString *) uin->d)->c_str(), > ((GooString *) uin->d)->getLength()); > return 1; > } >@@ -1657,7 +1657,7 @@ > pdfdoc_changed_error(L); > if (((Object *) uin->d)->isString()) { > gs = (GooString *)((Object *) uin->d)->getString(); >- lua_pushlstring(L, gs->getCString(), gs->getLength()); >+ lua_pushlstring(L, gs->c_str(), gs->getLength()); > } else > lua_pushnil(L); > return 1; >@@ -2315,7 +2315,7 @@ > pdfdoc_changed_error(L); > gs = ((PdfDocument *) uin->d)->doc->getFileName(); > if (gs != NULL) >- lua_pushlstring(L, gs->getCString(), gs->getLength()); >+ lua_pushlstring(L, gs->c_str(), gs->getLength()); > else > lua_pushnil(L); > return 1; >@@ -2404,7 +2404,7 @@ > if (((PdfDocument *) uin->d)->doc->getCatalog()->isOk()) { > gs = ((PdfDocument *) uin->d)->doc->readMetadata(); > if (gs != NULL) >- lua_pushlstring(L, gs->getCString(), gs->getLength()); >+ lua_pushlstring(L, gs->c_str(), gs->getLength()); > else > lua_pushnil(L); > } else >@@ -2867,12 +2867,12 @@ > > static int m_Attribute_setRevision(lua_State * L) > { >- Guint i; >+ unsigned int i; > udstruct *uin; > uin = (udstruct *) luaL_checkudata(L, 1, M_Attribute); > if (uin->pd != NULL && uin->pd->pc != uin->pc) > pdfdoc_changed_error(L); >- i = (Guint) luaL_checkint(L, 2); >+ i = (unsigned int) luaL_checkint(L, 2); > ((Attribute *) uin->d)->setRevision(i); > return 0; > } >@@ -3057,12 +3057,12 @@ > > static int m_StructElement_setRevision(lua_State * L) > { >- Guint i; >+ unsigned int i; > udstruct *uin; > uin = (udstruct *) luaL_checkudata(L, 1, M_StructElement); > if (uin->pd != NULL && uin->pd->pc != uin->pc) > pdfdoc_changed_error(L); >- i = (Guint) luaL_checkint(L, 2); >+ i = (unsigned int) luaL_checkint(L, 2); > ((StructElement *) uin->d)->setRevision(i); > return 0; > } >@@ -3078,7 +3078,7 @@ > i = (bool) lua_toboolean(L, 2); > gs = ((StructElement *) uin->d)->getText(i); > if (gs != NULL) >- lua_pushlstring(L, gs->getCString(), gs->getLength()); >+ lua_pushlstring(L, gs->c_str(), gs->getLength()); > else > lua_pushnil(L); > return 1;
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 679868
: 568348 |
568350