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/argus/files/, net-analyzer/argus/
Date: Thu,  1 Dec 2022 04:23:21 +0000 (UTC)	[thread overview]
Message-ID: <1669867740.83d8d592d9ead4682680138e973c0211bffe835e.sam@gentoo> (raw)

commit:     83d8d592d9ead4682680138e973c0211bffe835e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  1 04:09:00 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec  1 04:09:00 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83d8d592

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

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

 ...s-3.0.8.3-r1.ebuild => argus-3.0.8.3-r2.ebuild} |  7 ++--
 .../files/argus-3.0.8.3-configure-clang16.patch    | 41 ++++++++++++++++++++++
 2 files changed, 45 insertions(+), 3 deletions(-)

diff --git a/net-analyzer/argus/argus-3.0.8.3-r1.ebuild b/net-analyzer/argus/argus-3.0.8.3-r2.ebuild
similarity index 93%
rename from net-analyzer/argus/argus-3.0.8.3-r1.ebuild
rename to net-analyzer/argus/argus-3.0.8.3-r2.ebuild
index a4176cf571c4..e316b6bc37ef 100644
--- a/net-analyzer/argus/argus-3.0.8.3-r1.ebuild
+++ b/net-analyzer/argus/argus-3.0.8.3-r2.ebuild
@@ -1,13 +1,14 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit autotools toolchain-funcs
 
 DESCRIPTION="network Audit Record Generation and Utilization System"
 HOMEPAGE="https://openargus.org/"
 SRC_URI="https://www.qosient.com/argus/dev/${P/_rc/.rc.}.tar.gz"
+S="${WORKDIR}"/${P/_rc/.rc.}
 
 LICENSE="GPL-3"
 SLOT="0"
@@ -35,8 +36,8 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-3.0.7.3-DLT_IPNET.patch
 	"${FILESDIR}"/${PN}-3.0.8.3-ar.patch
 	"${FILESDIR}"/${PN}-3.0.8.3-as-needed.patch
+	"${FILESDIR}"/${PN}-3.0.8.3-configure-clang16.patch
 )
-S=${WORKDIR}/${P/_rc/.rc.}
 
 src_prepare() {
 	find . -type f -execdir chmod +w {} \; #561360

diff --git a/net-analyzer/argus/files/argus-3.0.8.3-configure-clang16.patch b/net-analyzer/argus/files/argus-3.0.8.3-configure-clang16.patch
new file mode 100644
index 000000000000..2e9720c04326
--- /dev/null
+++ b/net-analyzer/argus/files/argus-3.0.8.3-configure-clang16.patch
@@ -0,0 +1,41 @@
+https://github.com/openargus/argus/pull/5
+
+From dd987328bd2b99977a1a686a1a6b36d1a3155ff7 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 25 Nov 2022 19:03:24 +0100
+Subject: [PATCH] configure (AC_LBL_UNALIGNED_ACCESS): Avoid implicit function
+ decls
+
+Implicit function declarations were removed from the C language
+in 1999.  Include the relevant header files to ensure that the
+check still works with future compilers.  C99 also requires
+to declare the return types of all functions.
+--- a/acsite.m4
++++ b/acsite.m4
+@@ -298,8 +298,10 @@ AC_DEFUN([AC_LBL_UNALIGNED_ACCESS],
+ #      include <sys/types.h>
+ #      include <sys/wait.h>
+ #      include <stdio.h>
++#      include <stdlib.h>
++#      include <unistd.h>
+       unsigned char a[[5]] = { 1, 2, 3, 4, 5 };
+-      main() {
++      int main() {
+       unsigned int i;
+       pid_t pid;
+       int status;
+--- a/configure
++++ b/configure
+@@ -5791,8 +5791,10 @@ else
+ #      include <sys/types.h>
+ #      include <sys/wait.h>
+ #      include <stdio.h>
++#      include <stdlib.h>
++#      include <unistd.h>
+       unsigned char a[5] = { 1, 2, 3, 4, 5 };
+-      main() {
++      int main() {
+       unsigned int i;
+       pid_t pid;
+       int status;
+


             reply	other threads:[~2022-12-01  4:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-01  4:23 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-01-27 18:40 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/argus/files/, net-analyzer/argus/ Jeroen Roovers
2017-11-01 22:05 Andreas Hüttel

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=1669867740.83d8d592d9ead4682680138e973c0211bffe835e.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