forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit400928b
committed
Fix incompatibilities with libxml2 >= 2.12.0.
libxml2 changed the required signature of error handler callbacksto make the passed xmlError struct "const". This is causing buildfailures on buildfarm member caiman, and no doubt will start showingup in the field quite soon. Add a version check to adjust thedeclaration of xml_errorHandler() according to LIBXML_VERSION.2.12.x also produces deprecation warnings for contrib/xml2/xpath.c'sassignment to xmlLoadExtDtdDefaultValue. I see no good reason forthat to still be there, seeing that we disabled external DTDs (at alower level) years ago for security reasons. Let's just remove it.Back-patch to all supported branches, since they might all get builtwith newer libxml2 once it gets a bit more popular. (The backbranches produce another deprecation warning about xpath.c's use ofxmlSubstituteEntitiesDefault(). We ought to consider whether toback-patch all or part of commit65c5864 to silence that. It'sless urgent though, since it won't break the buildfarm.)Discussion:https://postgr.es/m/1389505.1706382262@sss.pgh.pa.us1 parent5de890e commit400928b
2 files changed
+12
-4
lines changedLines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
78 |
| - | |
79 | 77 |
| |
80 | 78 |
| |
81 | 79 |
| |
|
Lines changed: 12 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
70 | 80 |
| |
71 | 81 |
| |
72 | 82 |
| |
| |||
124 | 134 |
| |
125 | 135 |
| |
126 | 136 |
| |
127 |
| - | |
| 137 | + | |
128 | 138 |
| |
129 | 139 |
| |
130 | 140 |
| |
| |||
2024 | 2034 |
| |
2025 | 2035 |
| |
2026 | 2036 |
| |
2027 |
| - | |
| 2037 | + | |
2028 | 2038 |
| |
2029 | 2039 |
| |
2030 | 2040 |
| |
|
0 commit comments
Comments
(0)