commit:     5e1af15dc3180bad9cc46ec25f6dc0786df68f58
Author:     Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 10 15:58:12 2023 +0000
Commit:     Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
CommitDate: Sat Jun 10 15:58:12 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e1af15d

media-sound/upmpdcli: patch config-time implicit decl

Closes: https://bugs.gentoo.org/904997
Signed-off-by: Erik Mackdanz <stasibear <AT> gentoo.org>

 media-sound/upmpdcli/files/configure.patch    | 11 +++++++++++
 media-sound/upmpdcli/upmpdcli-1.7.9-r1.ebuild |  3 +++
 2 files changed, 14 insertions(+)

diff --git a/media-sound/upmpdcli/files/configure.patch 
b/media-sound/upmpdcli/files/configure.patch
new file mode 100644
index 000000000000..d708186f652b
--- /dev/null
+++ b/media-sound/upmpdcli/files/configure.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac     2023-06-10 10:21:38.770760698 -0500
++++ b/configure.ac     2023-06-10 10:22:01.670904090 -0500
+@@ -86,7 +86,7 @@
+ 
+ #### Functions
+ AC_LINK_IFELSE(
+-    [AC_LANG_PROGRAM([#include <math.h>], [double x = exp10(1.0);])],
++    [AC_LANG_PROGRAM([#include <math.h>], [double exp10(double x);], [double 
x = exp10(1.0);])],
+     [AC_DEFINE([HAVE_EXP10], [1], [Define to 1 if you have the 'exp10' 
function])],
+   [])
+ 

diff --git a/media-sound/upmpdcli/upmpdcli-1.7.9-r1.ebuild 
b/media-sound/upmpdcli/upmpdcli-1.7.9-r1.ebuild
index c38f8d283050..bba4fa0a43cb 100644
--- a/media-sound/upmpdcli/upmpdcli-1.7.9-r1.ebuild
+++ b/media-sound/upmpdcli/upmpdcli-1.7.9-r1.ebuild
@@ -30,6 +30,7 @@ RDEPEND="
 
 PATCHES=(
        "${FILESDIR}"/makefile.patch
+       "${FILESDIR}"/configure.patch
 )
 
 src_prepare() {
@@ -39,6 +40,8 @@ src_prepare() {
 
 src_configure() {
 
+       eautoconf
+
        ./configure \
                --prefix=/usr \
                --sysconfdir=/etc \

Reply via email to