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 CFA7513835A for ; Tue, 15 Jun 2021 06:02:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 15F3DE0874; Tue, 15 Jun 2021 06:02:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 F1732E0874 for ; Tue, 15 Jun 2021 06:02:18 +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 64D7F340A85 for ; Tue, 15 Jun 2021 06:02:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C857B796 for ; Tue, 15 Jun 2021 06:02:14 +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: <1623736926.a9fee5c109c671e034d31127ea59d988ab15f5fb.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/nullmailer/files/, mail-mta/nullmailer/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-mta/nullmailer/files/nullmailer-2.2-c++11.patch mail-mta/nullmailer/nullmailer-2.2-r1.ebuild X-VCS-Directories: mail-mta/nullmailer/ mail-mta/nullmailer/files/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: a9fee5c109c671e034d31127ea59d988ab15f5fb X-VCS-Branch: master Date: Tue, 15 Jun 2021 06:02:14 +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: dff9b60f-0654-4514-bd3e-f5e305365c97 X-Archives-Hash: 261f4878b2620e7a9529376cf3c0c10b commit: a9fee5c109c671e034d31127ea59d988ab15f5fb Author: Theo Anderson posteo de> AuthorDate: Sun Jan 17 10:25:02 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Tue Jun 15 06:02:06 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9fee5c1 mail-mta/nullmailer: fix build with clang (c++11) Closes: https://bugs.gentoo.org/669746 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Theo Anderson posteo.de> Closes: https://github.com/gentoo/gentoo/pull/19088 Signed-off-by: Joonas Niilola gentoo.org> .../nullmailer/files/nullmailer-2.2-c++11.patch | 36 ++++++++++++++++++++++ mail-mta/nullmailer/nullmailer-2.2-r1.ebuild | 1 + 2 files changed, 37 insertions(+) diff --git a/mail-mta/nullmailer/files/nullmailer-2.2-c++11.patch b/mail-mta/nullmailer/files/nullmailer-2.2-c++11.patch new file mode 100644 index 00000000000..ac2eb23a338 --- /dev/null +++ b/mail-mta/nullmailer/files/nullmailer-2.2-c++11.patch @@ -0,0 +1,36 @@ +From f63dcd3d7ec69a7150f305ba81380988e0a1e38d Mon Sep 17 00:00:00 2001 +From: Denis Pronin +Date: Tue, 25 Feb 2020 10:06:41 +0300 +Subject: [PATCH] fixed compilation with c++11 standard + +Signed-off-by: Denis Pronin +--- + src/inject.cc | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/inject.cc b/src/inject.cc +index 0a555b2..189a70a 100644 +--- a/src/inject.cc ++++ b/src/inject.cc +@@ -148,9 +148,10 @@ static bool header_add_to = false; + + struct header_field + { ++ typedef unsigned length_t; + // member information + const char* name; +- unsigned length; ++ length_t length; + bool is_address; + bool is_recipient; + bool is_sender; +@@ -204,7 +205,8 @@ struct header_field + + #define F false + #define T true +-#define X(N,IA,IR,IS,IRS,R) { #N ":",strlen(#N ":"),\ ++#define X(N,IA,IR,IS,IRS,R) { #N ":", \ ++ static_cast(strlen(#N ":")),\ + IA,IR,IS,IRS,R,false, false } + static header_field header_fields[] = { + // Sender address fields, in order of priority diff --git a/mail-mta/nullmailer/nullmailer-2.2-r1.ebuild b/mail-mta/nullmailer/nullmailer-2.2-r1.ebuild index 1835317ed6c..53c1cabc06f 100644 --- a/mail-mta/nullmailer/nullmailer-2.2-r1.ebuild +++ b/mail-mta/nullmailer/nullmailer-2.2-r1.ebuild @@ -40,6 +40,7 @@ PATCHES=( "${FILESDIR}/${P}-fix-test-racecondition.patch" "${FILESDIR}/${P}-disable-dns-using-test.patch" "${FILESDIR}/${P}-disable-smtp-auth-tests.patch" + "${FILESDIR}/${P}-c++11.patch" ) pkg_setup() {