From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7E527138359 for ; Wed, 28 Oct 2020 07:51:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 62D7DE0951; Wed, 28 Oct 2020 07:51:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3C511E094F for ; Wed, 28 Oct 2020 07:51:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D289B335DAE for ; Wed, 28 Oct 2020 07:51:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8CEBC3BF for ; Wed, 28 Oct 2020 07:51:21 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1603871467.e20fff237b4292f8f82d57e7dbbfcc8a32c675e7.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/gvmd/, net-analyzer/gvmd/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/gvmd/files/gvmd-9.0.1-glibc_siglist.patch net-analyzer/gvmd/gvmd-9.0.1.ebuild X-VCS-Directories: net-analyzer/gvmd/ net-analyzer/gvmd/files/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: e20fff237b4292f8f82d57e7dbbfcc8a32c675e7 X-VCS-Branch: master Date: Wed, 28 Oct 2020 07:51:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1492184b-7c67-4143-a562-910a89a0f796 X-Archives-Hash: 7950b740769e3d70d915336687ec4ad0 commit: e20fff237b4292f8f82d57e7dbbfcc8a32c675e7 Author: CyriusGentoo linog-consulting com> AuthorDate: Tue Oct 27 18:44:31 2020 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed Oct 28 07:51:07 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e20fff23 net-analyzer/gvmd: Replace deprecated sys_siglist with strsignal Signed-off-by: François Logier linog-consulting.com> Closes: https://bugs.gentoo.org/740558 Closes: https://github.com/gentoo/gentoo/pull/18050 Signed-off-by: Joonas Niilola gentoo.org> .../gvmd/files/gvmd-9.0.1-glibc_siglist.patch | 82 ++++++++++++++++++++++ net-analyzer/gvmd/gvmd-9.0.1.ebuild | 5 ++ 2 files changed, 87 insertions(+) diff --git a/net-analyzer/gvmd/files/gvmd-9.0.1-glibc_siglist.patch b/net-analyzer/gvmd/files/gvmd-9.0.1-glibc_siglist.patch new file mode 100644 index 00000000000..6b8ed7dfe1c --- /dev/null +++ b/net-analyzer/gvmd/files/gvmd-9.0.1-glibc_siglist.patch @@ -0,0 +1,82 @@ +# Solve Gentoo Bug 740558 : Replace deprecated sys_siglist with strsignal +--- ./src/manage.c 2020-05-12 18:54:26.000000000 +0200 ++++ ./src/manage.c 2020-10-27 13:32:20.423421085 +0100 +@@ -3283,7 +3283,7 @@ + { + g_debug ("%s: Received %s signal.", + __FUNCTION__, +- sys_siglist[get_termination_signal()]); ++ strsignal(get_termination_signal())); + } + if (global_current_report) + { +@@ -3305,7 +3305,7 @@ + { + g_debug ("%s: Received %s signal.", + __FUNCTION__, +- sys_siglist[get_termination_signal()]); ++ strsignal(get_termination_signal())); + if (global_current_report) + { + set_report_scan_run_status (global_current_report, +--- ./src/gvmd.c 2020-05-12 18:54:26.000000000 +0200 ++++ ./src/gvmd.c 2020-10-27 13:34:47.606424207 +0100 +@@ -922,7 +922,7 @@ + if (sigaction (signal, &action, NULL) == -1) + { + g_critical ("%s: failed to register %s handler", +- __FUNCTION__, sys_siglist[signal]); ++ __FUNCTION__, strsignal(termination_signal)); + exit (EXIT_FAILURE); + } + } +@@ -953,7 +953,7 @@ + if (sigaction (signal, &action, NULL) == -1) + { + g_critical ("%s: failed to register %s handler", +- __FUNCTION__, sys_siglist[signal]); ++ __FUNCTION__, strsignal(termination_signal)); + exit (EXIT_FAILURE); + } + } +@@ -1258,7 +1258,7 @@ + if (termination_signal) + { + g_debug ("Received %s signal", +- sys_siglist[termination_signal]); ++ strsignal(termination_signal)); + cleanup (); + /* Raise signal again, to exit with the correct return value. */ + setup_signal_handler (termination_signal, SIG_DFL, 0); +@@ -1347,7 +1347,7 @@ + if (termination_signal) + { + g_debug ("Received %s signal", +- sys_siglist[termination_signal]); ++ strsignal(termination_signal)); + cleanup (); + /* Raise signal again, to exit with the correct return value. */ + setup_signal_handler (termination_signal, SIG_DFL, 0); +--- ./src/manage_sql.c 2020-05-12 18:54:26.000000000 +0200 ++++ ./src/manage_sql.c 2020-10-27 13:36:19.071426148 +0100 +@@ -18711,7 +18711,7 @@ + void + manage_cleanup_process_error (int signal) + { +- g_debug ("Received %s signal", sys_siglist[signal]); ++ g_debug ("Received %s signal", strsignal(signal)); + if (sql_is_open ()) + { + if (current_scanner_task) +--- ./src/gmpd.c 2020-05-12 18:54:26.000000000 +0200 ++++ ./src/gmpd.c 2020-10-27 13:46:29.687439101 +0100 +@@ -496,8 +496,7 @@ + { + g_debug ("%s: Received %s signal.", + __FUNCTION__, +- sys_siglist[get_termination_signal()]); +- ++ strsignal(get_termination_signal())); + goto client_free; + } + diff --git a/net-analyzer/gvmd/gvmd-9.0.1.ebuild b/net-analyzer/gvmd/gvmd-9.0.1.ebuild index 837980d8e68..b48b9a9102a 100644 --- a/net-analyzer/gvmd/gvmd-9.0.1.ebuild +++ b/net-analyzer/gvmd/gvmd-9.0.1.ebuild @@ -45,6 +45,11 @@ BDEPEND=" ) test? ( dev-libs/cgreen )" +PATCHES=( + # Replace deprecated glibc sys_siglist with strsignal + "${FILESDIR}/${P}-glibc_siglist.patch" +) + src_prepare() { cmake_src_prepare # QA-Fix | Use correct FHS/Gentoo policy paths for 9.0.0