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 818FE1382C5 for ; Sat, 12 May 2018 20:27:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A072FE0905; Sat, 12 May 2018 20:27:26 +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 72644E0905 for ; Sat, 12 May 2018 20:27:26 +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 316A9335C86 for ; Sat, 12 May 2018 20:27:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C480F3B for ; Sat, 12 May 2018 20:27:23 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1526156812.1313da3c48070710e5e1ab011b6b9a38fd0b3e9e.robbat2@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gnupg/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/gnupg/files/gnupg-2.2.1-fix-gnupg-wait.patch X-VCS-Directories: app-crypt/gnupg/files/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 1313da3c48070710e5e1ab011b6b9a38fd0b3e9e X-VCS-Branch: master Date: Sat, 12 May 2018 20:27:23 +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-Archives-Salt: ba3ec63a-bf4d-482f-9a15-e59046967ff4 X-Archives-Hash: 426dababe7aea71bda90bdd356fbe814 commit: 1313da3c48070710e5e1ab011b6b9a38fd0b3e9e Author: Michael Mair-Keimberger gmail com> AuthorDate: Sat May 12 15:42:58 2018 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sat May 12 20:26:52 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1313da3c app-crypt/gnupg: remove unused patch (cherry picked from commit af5486edf6e599ea1dcc8f718eda0b49fc4c4691) Signed-off-by: Robin H. Johnson gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/8376 .../gnupg/files/gnupg-2.2.1-fix-gnupg-wait.patch | 85 ---------------------- 1 file changed, 85 deletions(-) diff --git a/app-crypt/gnupg/files/gnupg-2.2.1-fix-gnupg-wait.patch b/app-crypt/gnupg/files/gnupg-2.2.1-fix-gnupg-wait.patch deleted file mode 100644 index 6a2c18e9b63..00000000000 --- a/app-crypt/gnupg/files/gnupg-2.2.1-fix-gnupg-wait.patch +++ /dev/null @@ -1,85 +0,0 @@ -From eeb3da6eb717ed6a1a1069a7611eb37503e8672d Mon Sep 17 00:00:00 2001 -From: NIIBE Yutaka -Date: Tue, 19 Sep 2017 12:28:43 +0900 -Subject: [PATCH 2/3] common: Fix gnupg_wait_processes. - -* common/exechelp-posix.c (gnupg_wait_processes): Loop for r_exitcodes -even if we already see an error. - --- - -The value stored by waitpid for exit code is encoded; It requires -decoded by WEXITSTATUS macro, regardless of an error. - -For example, when one of processes is already exited and another is -still running, it resulted wrong value of in r_exitcodes[n]. - -Signed-off-by: NIIBE Yutaka ---- - common/exechelp-posix.c | 50 +++++++++++++++++++++++++------------------------ - 1 file changed, 26 insertions(+), 24 deletions(-) - -diff --git a/common/exechelp-posix.c b/common/exechelp-posix.c -index 7237993a2..3acf74ad6 100644 ---- a/common/exechelp-posix.c -+++ b/common/exechelp-posix.c -@@ -784,30 +784,32 @@ gnupg_wait_processes (const char **pgmnames, pid_t *pids, size_t count, - } - } - -- if (ec == 0) -- for (i = 0; i < count; i++) -- { -- if (WIFEXITED (r_exitcodes[i]) && WEXITSTATUS (r_exitcodes[i]) == 127) -- { -- log_error (_("error running '%s': probably not installed\n"), -- pgmnames[i]); -- ec = GPG_ERR_CONFIGURATION; -- } -- else if (WIFEXITED (r_exitcodes[i]) && WEXITSTATUS (r_exitcodes[i])) -- { -- if (dummy) -- log_error (_("error running '%s': exit status %d\n"), -- pgmnames[i], WEXITSTATUS (r_exitcodes[i])); -- else -- r_exitcodes[i] = WEXITSTATUS (r_exitcodes[i]); -- ec = GPG_ERR_GENERAL; -- } -- else if (!WIFEXITED (r_exitcodes[i])) -- { -- log_error (_("error running '%s': terminated\n"), pgmnames[i]); -- ec = GPG_ERR_GENERAL; -- } -- } -+ for (i = 0; i < count; i++) -+ { -+ if (r_exitcodes[i] == -1) -+ continue; -+ -+ if (WIFEXITED (r_exitcodes[i]) && WEXITSTATUS (r_exitcodes[i]) == 127) -+ { -+ log_error (_("error running '%s': probably not installed\n"), -+ pgmnames[i]); -+ ec = GPG_ERR_CONFIGURATION; -+ } -+ else if (WIFEXITED (r_exitcodes[i]) && WEXITSTATUS (r_exitcodes[i])) -+ { -+ if (dummy) -+ log_error (_("error running '%s': exit status %d\n"), -+ pgmnames[i], WEXITSTATUS (r_exitcodes[i])); -+ else -+ r_exitcodes[i] = WEXITSTATUS (r_exitcodes[i]); -+ ec = GPG_ERR_GENERAL; -+ } -+ else if (!WIFEXITED (r_exitcodes[i])) -+ { -+ log_error (_("error running '%s': terminated\n"), pgmnames[i]); -+ ec = GPG_ERR_GENERAL; -+ } -+ } - - xfree (dummy); - return gpg_err_make (GPG_ERR_SOURCE_DEFAULT, ec); --- -2.13.5 -