| OLD | NEW |
| 1 Name: libxml | 1 Name: libxml |
| 2 URL: http://xmlsoft.org | 2 URL: http://xmlsoft.org |
| 3 Version: 2.9.3 | 3 Version: 8effcb578e0590cc01bbcab0f9dccefc6bdbcdbd |
| 4 License: MIT | 4 License: MIT |
| 5 License File: src/Copyright | 5 License File: src/Copyright |
| 6 Security Critical: yes | 6 Security Critical: yes |
| 7 | 7 |
| 8 Description: | 8 Description: |
| 9 | 9 |
| 10 libxml2 from libxml.org. | 10 libxml2 from libxml.org. |
| 11 | 11 |
| 12 Modifications: | 12 Modifications: |
| 13 - Import https://git.gnome.org/browse/libxml2/commit/?id=a7a94612aa3b16779e2c74e
1fa353b5d9786c602 from upstream | |
| 14 - Add helper classes in chromium/libxml_utils.cc and | 13 - Add helper classes in chromium/libxml_utils.cc and |
| 15 chromium/include/libxml/libxml_utils.h. | 14 chromium/include/libxml/libxml_utils.h. |
| 16 - Include fix for runtime blowups on larger xpath expressions, https://bugzilla.
gnome.org/show_bug.cgi?id=760325 | |
| 17 - Fix printf format specifiers, https://chromium.googlesource.com/chromium/src/+
/d31995076e55f1aac2f935c53b585a90ece27a11 | 15 - Fix printf format specifiers, https://chromium.googlesource.com/chromium/src/+
/d31995076e55f1aac2f935c53b585a90ece27a11 |
| 18 - Add second workaround for VS 2015 Update 2 code-gen bug - crbug.com/599427 | 16 - Add second workaround for VS 2015 Update 2 code-gen bug - crbug.com/599427 |
| 19 - Add patch from https://bugzilla.gnome.org/show_bug.cgi?id=758588 for | 17 - Add patch from https://bugzilla.gnome.org/show_bug.cgi?id=758588 for |
| 20 https://crbug.com/595262#c16 | 18 https://crbug.com/595262#c16 |
| 21 - Fix integer overflow https://crbug.com/602280 | 19 - Fix integer overflow https://crbug.com/602280 |
| 22 | 20 |
| 23 To import a new snapshot: | 21 To import a new snapshot: |
| 24 | 22 |
| 25 On Linux, get the latest tar, untar, and replace src/ with libxml2-X.Y.Z/. | 23 1. git clone git://git.gnome.org/libxml2 |
| 26 | 24 |
| 27 Generate config.h, include/libxml/xmlversion.h, and xml2-config: | 25 2. Note the commit and export the repository to third_party/libxml/src |
| 28 | 26 |
| 29 cd linux | 27 3. Update README.chromium with the commit |
| 30 ../src/configure --without-iconv --with-icu --without-ftp --without-http \ | |
| 31 --without-lzma | |
| 32 cd .. | |
| 33 Patch config.h to not define HAVE_RAND_R since we use this file on Android | |
| 34 and it does not have it. | |
| 35 | 28 |
| 36 On a Mac, do the same in the mac/ subdir for config.h and | 29 4. Apply the patches mentioned above; for fixes that have flowed in |
| 37 include/libxml/xmlversion.h and copy those to the Linux box in mac/ | 30 from upstream updates, remove them from README.chromium. |
| 38 | 31 |
| 39 On a Windows box: | 32 5. Generate config.h, include/libxml/xmlversion.h, and xml2-config: |
| 40 cd libxml2-2.9.2\win32 | |
| 41 cscript //E:jscript configure.js compiler=msvc iconv=no icu=yes ftp=no http=no | |
| 42 Then copy VC10/config.h and include/libxml/xmlversion.h to win32/ on Linux. | |
| 43 Patch win32/config.h to wrap the #define snprintf with: | |
| 44 #if _MSC_VER < 1900 | |
| 45 #endif | |
| 46 | 33 |
| 47 Remove: | 34 cd linux |
| 48 src/doc/ | 35 ../src/configure --without-iconv --with-icu --without-ftp \ |
| 49 src/example/ | 36 --without-http --without-lzma |
| 50 src/macos/libxml2.mcp.xml.sit.hqx | |
| 51 src/os400/ | |
| 52 src/python/ | |
| 53 src/result/ | |
| 54 src/test/ | |
| 55 src/vms/ | |
| 56 src/win32/wince | |
| 57 src/VxWorks/ | |
| 58 | 37 |
| 59 Update BUILD.gn and libxml.gyp as necessary to add/remove files, etc. | 38 6. Patch config.h to not define HAVE_RAND_R since we use this file on |
| 39 Android which does not have it. |
| 40 |
| 41 7. On a Mac, do the same in the mac/ subdir for config.h and |
| 42 include/libxml/xmlversion.h and copy those to the Linux box in mac/ |
| 43 |
| 44 8. On a Windows box: |
| 45 |
| 46 cd win32 |
| 47 cscript //E:jscript configure.js compiler=msvc iconv=no icu=yes \ |
| 48 ftp=no http=no |
| 49 |
| 50 Then copy VC10/config.h and include/libxml/xmlversion.h to win32/ |
| 51 on Linux. |
| 52 |
| 53 9. Remove the following, and any other new unneeded files: |
| 54 |
| 55 src/doc/ |
| 56 src/example/ |
| 57 src/macos/libxml2.mcp.xml.sit.hqx |
| 58 src/os400/ |
| 59 src/python/ |
| 60 src/result/ |
| 61 src/test/ |
| 62 src/vms/ |
| 63 src/win32/wince |
| 64 src/VxWorks/ |
| 65 |
| 66 10. Update BUILD.gn and libxml.gyp as necessary to add/remove files, |
| 67 etc. |
| OLD | NEW |