public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/rrdtool/, net-analyzer/rrdtool/files/
Date: Sat, 11 Feb 2023 04:26:46 +0000 (UTC)	[thread overview]
Message-ID: <1676089137.09a27ff89060cfb08979f34a8c5fdfe4d1f79572.sam@gentoo> (raw)

commit:     09a27ff89060cfb08979f34a8c5fdfe4d1f79572
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 11 03:53:43 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 11 04:18:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09a27ff8

net-analyzer/rrdtool: fix configure w/ clang 16

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/rrdtool-1.8.0-configure-clang16.patch    | 34 ++++++++++++++++++++++
 ...ool-1.8.0-r2.ebuild => rrdtool-1.8.0-r3.ebuild} |  1 +
 2 files changed, 35 insertions(+)

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
similarity index 99%
rename from net-analyzer/rrdtool/rrdtool-1.8.0-r2.ebuild
rename to 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() {


             reply	other threads:[~2023-02-11  4:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-11  4:26 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-05-28 17:58 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/rrdtool/, net-analyzer/rrdtool/files/ Conrad Kostecki
2018-03-18 23:15 Jeroen Roovers
2016-04-23 11:42 Jeroen Roovers
2016-04-23 11:37 Jeroen Roovers
2016-01-30  9:24 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1676089137.09a27ff89060cfb08979f34a8c5fdfe4d1f79572.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox