Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 885882 Details for
Bug 923124
app-misc/recoll-1.36.2 - internfile/mh_xslt.cpp: error: invalid conversion from const xmlError {aka const _xmlError } to xmlError {aka _xmlError } [-f
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch based on suggestion in comment #10
0001-xslt-use-xmlCtxtUseOptions-instead-of-setting-deprec.patch (text/plain), 2.17 KB, created by
pass word
on 2024-02-24 16:44:40 UTC
(
hide
)
Description:
Patch based on suggestion in comment #10
Filename:
MIME Type:
Creator:
pass word
Created:
2024-02-24 16:44:40 UTC
Size:
2.17 KB
patch
obsolete
>From cf3cd5c830dfcb6e09073b56f827a2f9e094ea2e Mon Sep 17 00:00:00 2001 >From: Jean-Francois Dockes <jf@dockes.org> >Date: Sat, 6 Jan 2024 09:28:15 +0100 >Subject: [PATCH] xslt: use xmlCtxtUseOptions instead of setting deprecated > globals > >--- > src/internfile/mh_xslt.cpp | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > >diff --git src/internfile/mh_xslt.cpp src/internfile/mh_xslt.cpp >index 1bd8f893..4783be76 100644 >--- src/internfile/mh_xslt.cpp >+++ src/internfile/mh_xslt.cpp >@@ -66,7 +66,7 @@ public: > xmlDocPtr getDoc() { > int ret; > if ((ret = xmlParseChunk(ctxt, nullptr, 0, 1))) { >- xmlError *error = xmlGetLastError(); >+ const xmlError *error = xmlGetLastError(); > LOGERR("FileScanXML: final xmlParseChunk failed with error " << > ret << " error: " << > (error ? error->message : >@@ -82,6 +82,10 @@ public: > LOGERR("FileScanXML: xmlCreatePushParserCtxt failed\n"); > return false; > } else { >+ // Replaces setting global variables through the following in the module init: >+ // xmlSubstituteEntitiesDefault(0); // No XML_PARSE_NOENT >+ // xmlLoadExtDtdDefaultValue = 0; // No XML_PARSE_DTDLOAD >+ xmlCtxtUseOptions(ctxt, 0); > return true; > } > } >@@ -95,7 +99,7 @@ public: > } > int ret; > if ((ret = xmlParseChunk(ctxt, buf, cnt, 0))) { >- xmlError *error = xmlGetLastError(); >+ const xmlError *error = xmlGetLastError(); > LOGERR("FileScanXML: xmlParseChunk failed with error " << > ret << " for [" << buf << "] error " << > (error ? error->message : >@@ -159,9 +163,6 @@ MimeHandlerXslt::MimeHandlerXslt(RclConfig *cnf, const std::string& id, > LOGDEB("MimeHandlerXslt: params: " << stringsToString(params) << endl); > m->filtersdir = path_cat(cnf->getDatadir(), "filters"); > >- xmlSubstituteEntitiesDefault(0); >- xmlLoadExtDtdDefaultValue = 0; >- > // params can be "xslt stylesheetall" or > // "xslt meta/body memberpath stylesheetnm [... ... ...] ... > if (params.size() == 2) { >-- >2.43.2 >
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 923124
:
883441
|
883442
|
883443
|
883444
|
883445
|
883446
|
883447
|
883448
|
883449
| 885882