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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 88C23158090 for ; Thu, 19 May 2022 02:20:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 906DFE093D; Thu, 19 May 2022 02:20:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 74F64E093D for ; Thu, 19 May 2022 02:20:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 549B7341461 for ; Thu, 19 May 2022 02:20:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D66F44C3 for ; Thu, 19 May 2022 02:20:20 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1652926740.1ba8e170537551e7d13f2f7920bf33f8cc766184.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/strongswan/, net-vpn/strongswan/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-vpn/strongswan/files/strongswan-5.9.6-werror-security.patch net-vpn/strongswan/strongswan-5.9.6.ebuild X-VCS-Directories: net-vpn/strongswan/files/ net-vpn/strongswan/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 1ba8e170537551e7d13f2f7920bf33f8cc766184 X-VCS-Branch: master Date: Thu, 19 May 2022 02:20:20 +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: 4787992a-23ef-47d4-8b9b-518fa3fa61eb X-Archives-Hash: ea100f4ea89f2ce1765afe7c50163c8b commit: 1ba8e170537551e7d13f2f7920bf33f8cc766184 Author: Sam James gentoo org> AuthorDate: Thu May 19 02:19:00 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu May 19 02:19:00 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ba8e170 net-vpn/strongswan: add false-positive wformat-security patch from upstream Signed-off-by: Sam James gentoo.org> .../files/strongswan-5.9.6-werror-security.patch | 20 ++++++++++++++++++++ net-vpn/strongswan/strongswan-5.9.6.ebuild | 4 ++++ 2 files changed, 24 insertions(+) diff --git a/net-vpn/strongswan/files/strongswan-5.9.6-werror-security.patch b/net-vpn/strongswan/files/strongswan-5.9.6-werror-security.patch new file mode 100644 index 000000000000..27e541439230 --- /dev/null +++ b/net-vpn/strongswan/files/strongswan-5.9.6-werror-security.patch @@ -0,0 +1,20 @@ +https://github.com/strongswan/strongswan/commit/d23c0ea81e630af3cfda89aeeb52146c0c84c960 +https://github.com/strongswan/strongswan/issues/1025 + +From: Tobias Brunner +Date: Mon, 2 May 2022 09:31:49 +0200 +Subject: [PATCH] enum: Fix compiler warning + +Closes strongswan/strongswan#1025 +--- a/src/libstrongswan/utils/enum.c ++++ b/src/libstrongswan/utils/enum.c +@@ -97,7 +97,7 @@ char *enum_flags_to_string(enum_name_t *e, u_int val, char *buf, size_t len) + return buf; + } + +- if (snprintf(buf, len, e->names[0]) >= len) ++ if (snprintf(buf, len, "%s", e->names[0]) >= len) + { + return NULL; + } + diff --git a/net-vpn/strongswan/strongswan-5.9.6.ebuild b/net-vpn/strongswan/strongswan-5.9.6.ebuild index 156d0149f594..9de7b103de17 100644 --- a/net-vpn/strongswan/strongswan-5.9.6.ebuild +++ b/net-vpn/strongswan/strongswan-5.9.6.ebuild @@ -55,6 +55,10 @@ RDEPEND="${COMMON_DEPEND} UGID="ipsec" +PATCHES=( + "${FILESDIR}"/${P}-werror-security.patch +) + pkg_setup() { linux-info_pkg_setup