-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from regro-cf-autotick-bot/rebuild-libxml2212-…
…0-1_hcbe940
- Loading branch information
Showing
12 changed files
with
59 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ libblas: | |
liblapack: | ||
- 3.9 *netlib | ||
libxml2: | ||
- '2.11' | ||
- '2.12' | ||
target_platform: | ||
- linux-64 | ||
zip_keys: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
__migrator: | ||
build_number: 1 | ||
kind: version | ||
migration_number: 1 | ||
libxml2: | ||
- '2.12' | ||
migrator_ts: 1700445986.2150207 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ libblas: | |
liblapack: | ||
- 3.9 *netlib | ||
libxml2: | ||
- '2.11' | ||
- '2.12' | ||
target_platform: | ||
- win-64 | ||
vc: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff --git a/src/io/graphml.c b/src/io/graphml.c | ||
index 402f8e472..c320a6c05 100644 | ||
--- a/src/io/graphml.c | ||
+++ b/src/io/graphml.c | ||
@@ -344,7 +344,11 @@ static void igraph_i_graphml_parser_state_set_error_from_varargs( | ||
} | ||
|
||
static void igraph_i_graphml_parser_state_set_error_from_xmlerror( | ||
+#if LIBXML_VERSION < 21200 /* Versions < 2.12.0: */ | ||
struct igraph_i_graphml_parser_state *state, const xmlErrorPtr error | ||
+#else /* Versions >= 2.12.0, introduces const errors: */ | ||
+ struct igraph_i_graphml_parser_state *state, const xmlError* error | ||
+#endif | ||
) { | ||
const size_t max_error_message_length = 4096; | ||
|
||
@@ -1530,7 +1534,14 @@ static void igraph_i_libxml_generic_error_handler(void* ctx, const char* msg, .. | ||
va_end(args); | ||
} | ||
|
||
-static void igraph_i_libxml_structured_error_handler(void* ctx, xmlErrorPtr error) { | ||
+#define STRING2(x) #x | ||
+#define STRING(x) STRING2(x) | ||
+#pragma message "LibXML version: " STRING(LIBXML_VERSION) | ||
+#if LIBXML_VERSION < 21200 /* Versions < 2.12.0: */ | ||
+ static void igraph_i_libxml_structured_error_handler(void* ctx, xmlErrorPtr error) { | ||
+#else /* Versions >= 2.12.0, introduces const errors: */ | ||
+ static void igraph_i_libxml_structured_error_handler(void* ctx, const xmlError* error) { | ||
+#endif | ||
struct igraph_i_graphml_parser_state* state = (struct igraph_i_graphml_parser_state*) ctx; | ||
igraph_i_graphml_parser_state_set_error_from_xmlerror(state, error); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters