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 3323F1382C5 for ; Tue, 1 Dec 2020 10:37:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72110E083D; Tue, 1 Dec 2020 10:37:54 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 58FB3E083D for ; Tue, 1 Dec 2020 10:37:54 +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 2897B340BE8 for ; Tue, 1 Dec 2020 10:37:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CEC2D453 for ; Tue, 1 Dec 2020 10:37:51 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1606819067.9ba5fba4c49a57b06edf98a78f72fccf0a84aafa.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/sudo/files/, app-admin/sudo/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/sudo/files/sudo-1.9.4-without-sendmail_build_fix.patch app-admin/sudo/sudo-1.9.4.ebuild X-VCS-Directories: app-admin/sudo/files/ app-admin/sudo/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 9ba5fba4c49a57b06edf98a78f72fccf0a84aafa X-VCS-Branch: master Date: Tue, 1 Dec 2020 10:37:51 +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: 130e7648-9e5f-4f37-926d-f019aa60209b X-Archives-Hash: cd89c137f1545dff0abd2dff958216a8 commit: 9ba5fba4c49a57b06edf98a78f72fccf0a84aafa Author: Lars Wendler gentoo org> AuthorDate: Tue Dec 1 10:36:59 2020 +0000 Commit: Lars Wendler gentoo org> CommitDate: Tue Dec 1 10:37:47 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ba5fba4 app-admin/sudo: Fixed build with USE="-sendmail" Reported-by: matoro airmail.cc> Closes: https://bugs.gentoo.org/757819 Package-Manager: Portage-3.0.11, Repoman-3.0.2 Signed-off-by: Lars Wendler gentoo.org> .../sudo-1.9.4-without-sendmail_build_fix.patch | 45 ++++++++++++++++++++++ app-admin/sudo/sudo-1.9.4.ebuild | 4 ++ 2 files changed, 49 insertions(+) diff --git a/app-admin/sudo/files/sudo-1.9.4-without-sendmail_build_fix.patch b/app-admin/sudo/files/sudo-1.9.4-without-sendmail_build_fix.patch new file mode 100644 index 00000000000..f40bfe445e0 --- /dev/null +++ b/app-admin/sudo/files/sudo-1.9.4-without-sendmail_build_fix.patch @@ -0,0 +1,45 @@ + +# HG changeset patch +# User Todd C. Miller +# Date 1606767492 25200 +# Node ID 41db1aad85bbce444b511bcb28b9628a0a22fcd9 +# Parent 96a5cfe3c66b6ee84d7f7b6fb26d932f45a44b76 +Fix build when configured using --without-sendmail +Bug #947 + +diff -r 96a5cfe3c66b -r 41db1aad85bb lib/eventlog/eventlog.c +--- a/lib/eventlog/eventlog.c Sun Nov 29 15:11:34 2020 -0700 ++++ b/lib/eventlog/eventlog.c Mon Nov 30 13:18:12 2020 -0700 +@@ -78,7 +78,7 @@ + static FILE *eventlog_stub_open_log(int type, const char *logfile); + static void eventlog_stub_close_log(int type, FILE *fp); + +-/* Eventlog config settings */ ++/* Eventlog config settings (default values). */ + static struct eventlog_config evl_conf = { + EVLOG_NONE, /* type */ + EVLOG_SUDO, /* format */ +@@ -91,7 +91,11 @@ + false, /* omit_hostname */ + _PATH_SUDO_LOGFILE, /* logpath */ + "%h %e %T", /* time_fmt */ ++#ifdef _PATH_SUDO_SENDMAIL + _PATH_SUDO_SENDMAIL, /* mailerpath */ ++#else ++ NULL, /* mailerpath (disabled) */ ++#endif + "-t", /* mailerflags */ + NULL, /* mailfrom */ + MAILTO, /* mailto */ +@@ -1436,8 +1440,10 @@ + evl_conf.logpath = _PATH_SUDO_LOGFILE; + if (evl_conf.time_fmt == NULL) + evl_conf.time_fmt = "%h %e %T"; ++#ifdef _PATH_SUDO_SENDMAIL + if (evl_conf.mailerpath == NULL) + evl_conf.mailerpath = _PATH_SUDO_SENDMAIL; ++#endif + if (evl_conf.mailerflags == NULL) + evl_conf.mailerflags = "-t"; + if (evl_conf.mailto == NULL) + diff --git a/app-admin/sudo/sudo-1.9.4.ebuild b/app-admin/sudo/sudo-1.9.4.ebuild index 84770ae1b43..74f99d722ac 100644 --- a/app-admin/sudo/sudo-1.9.4.ebuild +++ b/app-admin/sudo/sudo-1.9.4.ebuild @@ -74,6 +74,10 @@ REQUIRED_USE=" MAKEOPTS+=" SAMPLES=" +PATCHES=( + "${FILESDIR}/${P}-without-sendmail_build_fix.patch" #757819 +) + src_prepare() { default elibtoolize