www/hurl: fix build with libxml2 2.14.1
Reported by: dizzy PR: 285899
This commit is contained in:
parent
aeec2cd1d0
commit
69d7f196c3
@ -1,6 +1,6 @@
|
||||
PORTNAME= hurl
|
||||
DISTVERSION= 6.1.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= www
|
||||
|
||||
MAINTAINER= rodrigo@FreeBSD.org
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
--- cargo-crates/libxml-0.3.3/src/bindings.rs.orig 2025-04-19 21:03:10 UTC
|
||||
+++ cargo-crates/libxml-0.3.3/src/bindings.rs
|
||||
@@ -5666,9 +5666,6 @@
|
||||
pub fn xmlSetGenericErrorFunc(ctx: *mut ::std::os::raw::c_void, handler: xmlGenericErrorFunc);
|
||||
}
|
||||
extern "C" {
|
||||
- pub fn initGenericErrorDefaultFunc(handler: *mut xmlGenericErrorFunc);
|
||||
-}
|
||||
-extern "C" {
|
||||
pub fn xmlSetStructuredErrorFunc(
|
||||
ctx: *mut ::std::os::raw::c_void,
|
||||
handler: xmlStructuredErrorFunc,
|
||||
29
www/hurl/files/patch-packages__hurl__src__runner__xpath.rs
Normal file
29
www/hurl/files/patch-packages__hurl__src__runner__xpath.rs
Normal file
@ -0,0 +1,29 @@
|
||||
--- packages/hurl/src/runner/xpath.rs.orig 2025-03-24 12:39:25 UTC
|
||||
+++ packages/hurl/src/runner/xpath.rs
|
||||
@@ -129,14 +129,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
-extern "C" {
|
||||
- pub fn silentErrorFunc(
|
||||
- ctx: *mut ::std::os::raw::c_void,
|
||||
- msg: *const ::std::os::raw::c_char,
|
||||
- ...
|
||||
- );
|
||||
-}
|
||||
-
|
||||
/// Registers all XML namespaces from a document `doc` to a `context`.
|
||||
fn register_namespaces(doc: &libxml::tree::Document, context: &libxml::xpath::Context) {
|
||||
// We walk through the xml document to register each namespace,
|
||||
@@ -165,11 +157,6 @@
|
||||
support_ns: bool,
|
||||
) -> Result<Value, XPathError> {
|
||||
let context = libxml::xpath::Context::new(doc).expect("error setting context in xpath module");
|
||||
-
|
||||
- // libxml2 prints to stdout warning and errors, so we mut it.
|
||||
- unsafe {
|
||||
- libxml::bindings::initGenericErrorDefaultFunc(&mut Some(silentErrorFunc));
|
||||
- }
|
||||
|
||||
if support_ns {
|
||||
register_namespaces(doc, &context);
|
||||
Loading…
x
Reference in New Issue
Block a user