diff options
author | Sam James <sam@gentoo.org> | 2023-02-11 03:53:43 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-02-11 04:18:57 +0000 |
commit | 09a27ff89060cfb08979f34a8c5fdfe4d1f79572 (patch) | |
tree | 805502d44bb66bfe42d6e4c153342fa248f6e9eb /net-analyzer | |
parent | net-proxy/cntlm: fix configure w/ clang 16 (diff) | |
download | gentoo-09a27ff89060cfb08979f34a8c5fdfe4d1f79572.tar.gz gentoo-09a27ff89060cfb08979f34a8c5fdfe4d1f79572.tar.bz2 gentoo-09a27ff89060cfb08979f34a8c5fdfe4d1f79572.zip |
net-analyzer/rrdtool: fix configure w/ clang 16
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/rrdtool/files/rrdtool-1.8.0-configure-clang16.patch | 34 | ||||
-rw-r--r-- | net-analyzer/rrdtool/rrdtool-1.8.0-r3.ebuild (renamed from net-analyzer/rrdtool/rrdtool-1.8.0-r2.ebuild) | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/net-analyzer/rrdtool/files/rrdtool-1.8.0-configure-clang16.patch b/net-analyzer/rrdtool/files/rrdtool-1.8.0-configure-clang16.patch new file mode 100644 index 000000000000..355436cb82f2 --- /dev/null +++ b/net-analyzer/rrdtool/files/rrdtool-1.8.0-configure-clang16.patch @@ -0,0 +1,34 @@ +https://github.com/oetiker/rrdtool-1.x/commit/f3334fcbde0a77aa48938ba38602bff91c09cf85 + +From f3334fcbde0a77aa48938ba38602bff91c09cf85 Mon Sep 17 00:00:00 2001 +From: Ryan Schmidt <git@ryandesign.com> +Date: Sun, 20 Mar 2022 16:29:10 -0500 +Subject: [PATCH] acinclude.m4: Include <stdlib.h> when using exit + +Fixes: + +conftest.c:124:33: error: implicitly declaring library function 'exit' +with type 'void (int) __attribute__((noreturn))' +--- a/m4/acinclude.m4 ++++ b/m4/acinclude.m4 +@@ -582,7 +582,8 @@ AC_DEFUN([GC_TIMEZONE], [ + AC_REQUIRE([AC_STRUCT_TM]) + AC_CACHE_CHECK([tm_gmtoff in struct tm], gq_cv_have_tm_gmtoff, + gq_cv_have_tm_gmtoff=no +- AC_TRY_COMPILE([#include <time.h> ++ AC_TRY_COMPILE([#include <stdlib.h> ++ #include <time.h> + #include <$ac_cv_struct_tm> + ], + [struct tm t; +@@ -595,7 +596,8 @@ AC_DEFUN([GC_TIMEZONE], [ + + AC_CACHE_CHECK([__tm_gmtoff in struct tm], gq_cv_have___tm_gmtoff, + gq_cv_have___tm_gmtoff=no +- AC_TRY_COMPILE([#include <time.h> ++ AC_TRY_COMPILE([#include <stdlib.h> ++ #include <time.h> + #include <$ac_cv_struct_tm> + ], + [struct tm t; + diff --git a/net-analyzer/rrdtool/rrdtool-1.8.0-r2.ebuild b/net-analyzer/rrdtool/rrdtool-1.8.0-r3.ebuild index 06f1d9e0cf3b..57e9b04d676a 100644 --- a/net-analyzer/rrdtool/rrdtool-1.8.0-r2.ebuild +++ b/net-analyzer/rrdtool/rrdtool-1.8.0-r3.ebuild @@ -74,6 +74,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.4.9-disable-rrd_graph-perl.patch "${FILESDIR}"/${PN}-1.7.0-disable-rrd_graph-cgi.patch "${FILESDIR}"/${PN}-1.7.1-configure.ac.patch + "${FILESDIR}"/${P}-configure-clang16.patch ) pkg_setup() { |