Add METADATA to expat

1. Add METADATA
2. Add patches/config.diff
3. Run `tools/external_updater/updater.sh update expat` to clean things up.

The other changes are mainly from the differences between git repository
and release package. Previously the code is from repository directly. But
the update tool downloads the release package.

Test: cts-tradefed run cts -m CtsLibcoreTestCases -t
libcore.xml.ExpatSaxParserTest

Change-Id: Id3235b4f96a259900df52b137d18e502287f95f3
diff --git a/patches/config.diff b/patches/config.diff
new file mode 100644
index 0000000..58f29fe
--- /dev/null
+++ b/patches/config.diff
@@ -0,0 +1,52 @@
+Index: expat/expat_config.h
+===================================================================
+--- expat.orig/expat_config.h
++++ expat/expat_config.h
+@@ -5,10 +5,14 @@
+ #define BYTEORDER 1234
+ 
+ /* Define to 1 if you have the `arc4random' function. */
+-/* #undef HAVE_ARC4RANDOM */
++#if defined(__APPLE__) || defined(__BIONIC__)
++#define HAVE_ARC4RANDOM 1
++#endif
+ 
+ /* Define to 1 if you have the `arc4random_buf' function. */
+-/* #undef HAVE_ARC4RANDOM_BUF */
++#if defined(__APPLE__) || defined(__BIONIC__)
++#define HAVE_ARC4RANDOM_BUF 1
++#endif
+ 
+ /* Define to 1 if you have the `bcopy' function. */
+ #define HAVE_BCOPY 1
+@@ -23,7 +27,9 @@
+ #define HAVE_GETPAGESIZE 1
+ 
+ /* Define to 1 if you have the `getrandom' function. */
++#if defined(__BIONIC__)
+ #define HAVE_GETRANDOM 1
++#endif
+ 
+ /* Define to 1 if you have the <inttypes.h> header file. */
+ #define HAVE_INTTYPES_H 1
+@@ -53,7 +59,9 @@
+ #define HAVE_STRING_H 1
+ 
+ /* Define to 1 if you have `syscall' and `SYS_getrandom'. */
+-/* #undef HAVE_SYSCALL_GETRANDOM */
++#if defined(__BIONIC__)
++#define HAVE_SYSCALL_GETRANDOM 1
++#endif
+ 
+ /* Define to 1 if you have the <sys/param.h> header file. */
+ #define HAVE_SYS_PARAM_H 1
+@@ -105,7 +113,9 @@
+ #define XML_CONTEXT_BYTES 1024
+ 
+ /* Define to include code reading entropy from `/dev/urandom'. */
++#if defined(__GLIBC__)
+ #define XML_DEV_URANDOM 1
++#endif
+ 
+ /* Define to make parameter entity parsing functionality available. */
+ #define XML_DTD 1