From b09bf60c8732826eab7ef68ca25c2561dba3a3d1 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 7 Mar 2017 01:39:26 +0100 Subject: [PATCH] postgresql: Patch zic.c --- .../postgresql/src-timezone-zic.c.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 disabled-packages/postgresql/src-timezone-zic.c.patch diff --git a/disabled-packages/postgresql/src-timezone-zic.c.patch b/disabled-packages/postgresql/src-timezone-zic.c.patch new file mode 100644 index 000000000..dddd9b8fb --- /dev/null +++ b/disabled-packages/postgresql/src-timezone-zic.c.patch @@ -0,0 +1,20 @@ +diff -u -r ../postgresql-9.6.2/src/timezone/zic.c ./src/timezone/zic.c +--- ../postgresql-9.6.2/src/timezone/zic.c 2017-02-06 21:45:25.000000000 +0000 ++++ ./src/timezone/zic.c 2017-03-06 02:22:14.841276917 +0000 +@@ -881,8 +881,16 @@ + progname, directory, fromfield, strerror(EPERM)); + exit(EXIT_FAILURE); + } ++#ifdef __ANDROID__ ++ /* ++ * Android does not support hard links starting from 6.0 ++ * so always use symlinks. ++ */ ++ staysymlink = true; ++#else + if (staysymlink) + staysymlink = itssymlink(tofield); ++#endif + if (remove(tofield) == 0) + todirs_made = true; + else if (errno != ENOENT)