From cc7c560f55acc9951eecd4acd80a5dcc32d32142 Mon Sep 17 00:00:00 2001 From: Mazi Lo Date: Sun, 26 Oct 2014 00:02:04 -0400 Subject: [PATCH] FreeSWITHC: git HASH 12b6940644a68ea444c0e430412d419ae368d4a8 1. libs/srtp/configure.ac: DO NOT check for urandom when cross_compiling. Signed-off-by: Mazi Lo --- net/freeswitch/Makefile | 2 +- .../patches/1130800-libs-srtp-configure-ac.patch | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 net/freeswitch/patches/1130800-libs-srtp-configure-ac.patch diff --git a/net/freeswitch/Makefile b/net/freeswitch/Makefile index e3b19b9..53fe22e 100644 --- a/net/freeswitch/Makefile +++ b/net/freeswitch/Makefile @@ -18,7 +18,7 @@ PKG_VERSION:=1.5.15b # The latest FS git hash in PKG_SOURCE_VERSION can be obtained from # http://fisheye.freeswitch.org # -FS_WITH_DEFAULT_HEAD:=cf332d7cdccfa1e37f31c4f240714937d9f650f9 +FS_WITH_DEFAULT_HEAD:=12b6940644a68ea444c0e430412d419ae368d4a8 PKG_SOURCE_URL:=https://stash.$(PKG_NAME).org/scm/fs/$(PKG_NAME).git PKG_SOURCE_VERSION:=$(if $(CONFIG_FS_WITH_LATEST_HEAD),$(shell git ls-remote $(PKG_SOURCE_URL) HEAD|cut -f1),$(FS_WITH_DEFAULT_HEAD)) FS_WITH_DEFAULT_HEAD_SHORT:=$(shell echo $(FS_WITH_DEFAULT_HEAD)|cut -b -7) diff --git a/net/freeswitch/patches/1130800-libs-srtp-configure-ac.patch b/net/freeswitch/patches/1130800-libs-srtp-configure-ac.patch new file mode 100644 index 0000000..01e63e0 --- /dev/null +++ b/net/freeswitch/patches/1130800-libs-srtp-configure-ac.patch @@ -0,0 +1,16 @@ +--- a/libs/srtp/configure.ac ++++ b/libs/srtp/configure.ac +@@ -130,9 +130,12 @@ if test "$enable_kernel_linux" = "yes"; + fi + AC_MSG_RESULT($enable_kernel_linux) + +-dnl Check for /dev/urandom ++ ++dnl Check for /dev/urandom ONLY when NOT cross compiling ++if test "$cross_compiling" != yes; then + AC_CHECK_FILE(/dev/urandom, DEV_URANDOM=/dev/urandom, + [AC_CHECK_FILE(/dev/random, DEV_URANDOM=/dev/random)]) ++fi + + dnl Checks for header files. + AC_HEADER_STDC -- 2.30.2