From 44b5b1fcbaa205729336bd5934880b2390e3f749469a1423723d4fe724cfec84 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 14 May 2024 06:31:21 +0000 Subject: [PATCH] Accepting request 1173871 from home:pgajdos - added patches fix build with gcc14 https://github.com/zapping-vbi/zvbi/commit/ae74ae513714f81b9b8abdb12e1b235d16fad74e + zvbi-gcc14.patch OBS-URL: https://build.opensuse.org/request/show/1173871 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/zvbi?expand=0&rev=38 --- zvbi-gcc14.patch | 42 ++++++++++++++++++++++++++++++++++++++++++ zvbi.changes | 8 ++++++++ zvbi.spec | 4 +++- 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 zvbi-gcc14.patch diff --git a/zvbi-gcc14.patch b/zvbi-gcc14.patch new file mode 100644 index 0000000..96b7c18 --- /dev/null +++ b/zvbi-gcc14.patch @@ -0,0 +1,42 @@ +Index: zvbi-0.2.42/configure.ac +=================================================================== +--- zvbi-0.2.42.orig/configure.ac ++++ zvbi-0.2.42/configure.ac +@@ -82,7 +82,7 @@ AC_CHECK_FUNCS([alarm dup2 gethostbyaddr + 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]) + +@@ -105,28 +105,6 @@ dnl autoconf 2.71 required additional qu + 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]) diff --git a/zvbi.changes b/zvbi.changes index 6fc2971..3ef6175 100644 --- a/zvbi.changes +++ b/zvbi.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue May 14 06:04:33 UTC 2024 - pgajdos@suse.com + +- added patches + fix build with gcc14 + https://github.com/zapping-vbi/zvbi/commit/ae74ae513714f81b9b8abdb12e1b235d16fad74e + + zvbi-gcc14.patch + ------------------------------------------------------------------- Tue Feb 20 12:12:49 UTC 2024 - Dominique Leuenberger diff --git a/zvbi.spec b/zvbi.spec index c323c34..0fc672a 100644 --- a/zvbi.spec +++ b/zvbi.spec @@ -1,7 +1,7 @@ # # spec file for package zvbi # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,8 @@ Group: Productivity/Multimedia/Other URL: https://github.com/zapping-vbi/zvbi/ Source: https://github.com/zapping-vbi/zvbi/archive/refs/tags/v%{version}.tar.gz Source2: baselibs.conf +# https://github.com/zapping-vbi/zvbi/commit/ae74ae513714f81b9b8abdb12e1b235d16fad74e +Patch0: zvbi-gcc14.patch Patch10: 10_fix_private_libs.patch BuildRequires: autoconf BuildRequires: automake