external/expat/UnpackedTarball_expat.mk | 1 external/expat/expat.getrandom_detection.patch.1 | 40 +++++++++++++++++++++++ 2 files changed, 41 insertions(+)
New commits: commit 9c2b09a6f162cf350709eb48675819a110f88ef6 Author: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> Date: Thu Jul 13 15:23:32 2017 +0200 fix getrandom check in expat's configure https://github.com/libexpat/libexpat/issues/52 fixes /usr/include/sys/random.h:37:22: error: expected ')' misdetection of random.h feature, already fixed upstream: https://github.com/libexpat/libexpat/commit/602e6c78ca750c082b72f8cdf4a38839b312959f (cherry picked from commit f78ed1ec528604f6db9bdd2a07462c5e99e0ab99) Change-Id: I65e4aebaa838d2931a60cb34806d87b88861c4d8 Reviewed-on: https://gerrit.libreoffice.org/39909 Reviewed-by: Michael Stahl <mst...@redhat.com> Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> diff --git a/external/expat/UnpackedTarball_expat.mk b/external/expat/UnpackedTarball_expat.mk index 60e933d76090..5d803dcf303a 100644 --- a/external/expat/UnpackedTarball_expat.mk +++ b/external/expat/UnpackedTarball_expat.mk @@ -13,6 +13,7 @@ $(eval $(call gb_UnpackedTarball_set_tarball,expat,$(EXPAT_TARBALL))) $(eval $(call gb_UnpackedTarball_add_patches,expat,\ external/expat/expat-winapi.patch \ + external/expat/expat.getrandom_detection.patch.1 \ )) # This is a bit hackish. diff --git a/external/expat/expat.getrandom_detection.patch.1 b/external/expat/expat.getrandom_detection.patch.1 new file mode 100644 index 000000000000..eaf25df767dd --- /dev/null +++ b/external/expat/expat.getrandom_detection.patch.1 @@ -0,0 +1,40 @@ +https://github.com/libexpat/libexpat/issues/52 + +fixes /usr/include/sys/random.h:37:22: error: expected ')' +misdetection of random.h feature, already fixed upstream: +https://github.com/libexpat/libexpat/commit/602e6c78ca750c082b72f8cdf4a38839b312959f + +diff -ur expat.org/configure expat/configure +--- expat.org/configure 2017-07-12 17:04:34.000000000 +0200 ++++ expat/configure 2017-07-12 17:05:59.000000000 +0200 +@@ -16341,7 +16341,7 @@ + } + + _ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : ++if ac_fn_c_try_link "$LINENO"; then : + + + $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h +@@ -16386,7 +16386,8 @@ + conftest$ac_exeext conftest.$ac_ext + + fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext conftest.$ac_ext + + + for ac_header in fcntl.h unistd.h +diff -ur expat.org/configure.ac expat/configure.ac +--- expat.org/configure.ac 2017-07-12 17:04:34.000000000 +0200 ++++ expat/configure.ac 2017-07-12 17:05:31.000000000 +0200 +@@ -130,7 +130,7 @@ + + + AC_MSG_CHECKING([for getrandom (Linux 3.17+, glibc 2.25+)]) +-AC_COMPILE_IFELSE([AC_LANG_SOURCE([ ++AC_LINK_IFELSE([AC_LANG_SOURCE([ + #include <stdlib.h> /* for NULL */ + #include <sys/random.h> + int main() { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits