From 0b748b1e095f9751ec1daaac39906ddeb3371e47 Mon Sep 17 00:00:00 2001 From: boogie Date: Sun, 23 Jun 2024 01:09:22 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20build=20of=20zvbi:=20FTBFS:=20io-sim.?= =?UTF-8?q?c:128:1:=20error:=20static=20declaration=20of=20=E2=80=98sincos?= =?UTF-8?q?=E2=80=99=20follows=20non-static=20declaration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://github.com/zapping-vbi/zvbi/issues/49 --- depends/common/libzvbi/0011-fix-zvbi.patch | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 depends/common/libzvbi/0011-fix-zvbi.patch diff --git a/depends/common/libzvbi/0011-fix-zvbi.patch b/depends/common/libzvbi/0011-fix-zvbi.patch new file mode 100644 index 00000000..a799ddc7 --- /dev/null +++ b/depends/common/libzvbi/0011-fix-zvbi.patch @@ -0,0 +1,42 @@ +diff --git a/configure.ac b/configure.ac +index 3737442..72760a9 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -82,7 +82,7 @@ + inet_ntoa localtime_r memmove memset mkdir modf munmap \ + nl_langinfo putenv select setenv setlocale socket strcasecmp \ + strchr strdup strerror strncasecmp strndup strrchr strstr \ +- strtol strtoul tzset strptime getaddrinfo]) ++ strtol strtoul tzset strptime getaddrinfo sincos]) + + AM_CONDITIONAL(HAVE_STRPTIME, [test "x$HAVE_STRPTIME" = xyes]) + +@@ -103,28 +103,6 @@ + dnl "Noteworthy changes in autoconf version 2.66 through 2.68" + dnl + +-dnl sincos() is a GNU extension (a macro, not a function). +-dnl If not present we use a replacement. +-AC_MSG_CHECKING([for sincos]) +-AC_LINK_IFELSE([AC_LANG_SOURCE([ +-#include +-#include +-int main (void) { +-double s, c; +-/* Make sure the compiler does not optimize sincos() away +- so the linker can confirm its availability. */ +-scanf ("%f", &s); +-sincos (s, &s, &c); +-printf ("%f %f", s, c); +-return 0; +-} +-])],[ +- AC_MSG_RESULT([yes]) +- AC_DEFINE(HAVE_SINCOS, 1, [Define if the sincos() function is available]) +-],[ +- AC_MSG_RESULT([no]) +-]) +- + dnl log2() is a GNU extension (a macro, not a function). + dnl If not present we use a replacement. + AC_MSG_CHECKING([for log2]) From fbc0a4e545fe018e98878b5b201c561fdae1509b Mon Sep 17 00:00:00 2001 From: boogie Date: Sun, 23 Jun 2024 01:10:45 +0200 Subject: [PATCH 2/2] Fix build of gnutls: When static linking hogweed interferes with nettle Fixes: https://github.com/xbmc/inputstream.ffmpegdirect/issues/299 --- .../gnutls/0004-hogweed-nettle-link-order.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 depends/common/gnutls/0004-hogweed-nettle-link-order.patch diff --git a/depends/common/gnutls/0004-hogweed-nettle-link-order.patch b/depends/common/gnutls/0004-hogweed-nettle-link-order.patch new file mode 100644 index 00000000..d6f88a94 --- /dev/null +++ b/depends/common/gnutls/0004-hogweed-nettle-link-order.patch @@ -0,0 +1,13 @@ +diff --git a/configure b/configure +index e7bb291..a621557 100644 +--- a/configure ++++ b/configure +@@ -12611,7 +12611,7 @@ + printf "%s\n" "#define HAVE_LIBNETTLE 1" >>confdefs.h + + +- GNUTLS_REQUIRES_PRIVATE="Requires.private: nettle, hogweed" ++ GNUTLS_REQUIRES_PRIVATE="Requires.private: hogweed, nettle" + + + # Check whether --with-nettle-mini was given.