From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aMjcJE9fa2PeWgEAbAwnHQ (envelope-from ) for ; Wed, 09 Nov 2022 09:05:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aMnHJE9fa2MTSgAA9RJhRA (envelope-from ) for ; Wed, 09 Nov 2022 09:05:35 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 56BF83B4CC for ; Wed, 9 Nov 2022 09:05:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osg5Q-0005bD-33; Wed, 09 Nov 2022 03:05:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osg55-0005YI-1Z for guix-patches@gnu.org; Wed, 09 Nov 2022 03:05:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osg50-0005mK-KS for guix-patches@gnu.org; Wed, 09 Nov 2022 03:05:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1osg50-0007IQ-FP for guix-patches@gnu.org; Wed, 09 Nov 2022 03:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59145] [PATCH] gnu: emacs-magit: Fix tests. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Nov 2022 08:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59145 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59145@debbugs.gnu.org Cc: "\(" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166798108027997 (code B ref -1); Wed, 09 Nov 2022 08:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Nov 2022 08:04:40 +0000 Received: from localhost ([127.0.0.1]:38927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osg4d-0007HU-Q3 for submit@debbugs.gnu.org; Wed, 09 Nov 2022 03:04:40 -0500 Received: from lists.gnu.org ([209.51.188.17]:44908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osg4c-0007HN-2s for submit@debbugs.gnu.org; Wed, 09 Nov 2022 03:04:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osg4X-0005OZ-OH for guix-patches@gnu.org; Wed, 09 Nov 2022 03:04:36 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osg4T-0005FD-Qt for guix-patches@gnu.org; Wed, 09 Nov 2022 03:04:32 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C8DC341162; Wed, 9 Nov 2022 09:04:26 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rlc8NoZAyvOE; Wed, 9 Nov 2022 09:04:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1667981064; bh=vPfMbYBGKOv5loKWSXS66XnihcKPOcBPrvTDfYacYNM=; h=From:To:Cc:Subject:Date:From; b=HQQwwqv+kc2818TrBBq8jrIM/nWMdae4TtaH8xlL4PVJFE9giLKo069NGeH/AFyMq 4PpqvBmvvnZg7w5tO87bzNLgRkt1zK9Pbo/g363l6ah1EVDP5ZcehfQpwcNKu/iwJN KV3KsEoq60XlwccCuxvBZpAUqQ6PoxCLIdLe4HZZ2HDULQBDP6lVl61XNQzayBYoRW 1t5Ksrb40MgLObpeRFjgGfObx7eJYpT9do0+0ieztMzUuH0XBw0aPUXOGLvOeohTPg DAP6jwEasWSZ0eRyrpOszm3A97+pnUpY0x2wt0WgvnYyIKpXscX6ZWT0Z1rypPChcu UqAi0Nk8eU7Hw== Date: Wed, 9 Nov 2022 08:04:20 +0000 Message-Id: <20221109080420.4799-1-paren@disroot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667981135; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DnUREoz17qR8WBOivQU3IO0ouwtdan8Im9Jyeo1AABg=; b=PaYjLwVSED+JvzhcmvPe6xT8FDyO0Akq+kPoZnkHwszpRhaIKBr/rxzTqxfkefmXBoug4I ro9yZrwbRlBGCyu1OBrd3nvEct5i+lw/8sDczb8aa2MDIJlqmDpbb5HR90DHd62K0Ciwb2 PiRiiu5Yfsa9f57eDZt6kdfEhEfI+Cfkdn3yjV2/UVZk9vLOfB1ihlVZ3FXrKMKNutSW2D ym/DRMh59OIIxxbgL5KPO77GWLJJyQWhMAUB/6jbsDWZM8pbegwHttMaJ5seXwEq6cSZIq 9wDH8RI/rjZABpqNbsDtMEiE46Phb8tbOkLF35fZNLIK/IsqvSR7Tet76jjuKA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667981135; a=rsa-sha256; cv=none; b=JhoWEnf/1ggsZnLXcwlbI/aOIQ/l4yc+oP9wmy/u+zDwiaSHVDipqOwDbnvXE4rW7PRXYn 05vgmM/eVUU2HqkKh2F+V2lGBvgb/FNmjVqcSnsjBd2QEmKPOmN3HOFOQpl7LLs1zzBX9U lx5CJtDxEvdhpQLmrEjJ82bqWC20sisWrrnIAwoC0cREWfOW4YNZC8AKQXNvFmWXAmx1uA vYR7EUOcl3k8BjzS7EGCTyLIb37s/mBue+0INiJApbsWuffVoZMbOuN5RmIQQSuJ/g54Lb 1RqRzCpYHA6J+a3w4kMHMFE9rqnz2GlWZinQp+zegf4k+68fYQSL5k+50Zg1RQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=HQQwwqv+; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.72 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=HQQwwqv+; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 56BF83B4CC X-Spam-Score: -3.72 X-Migadu-Scanner: scn1.migadu.com X-TUID: pdzdaBwce0Ar * gnu/packages/patches/emacs-magit-use-old-git-behaviour.patch: New patch. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/emacs-xyz.scm (emacs-magit)[source]: Use it. --- gnu/local.mk | 1 + gnu/packages/emacs-xyz.scm | 3 +++ .../emacs-magit-use-old-git-behaviour.patch | 24 +++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 gnu/packages/patches/emacs-magit-use-old-git-behaviour.patch diff --git a/gnu/local.mk b/gnu/local.mk index 9e5c6bfe9d..5dc07aaf03 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1063,6 +1063,7 @@ dist_patch_DATA = \ %D%/packages/patches/emacs-highlight-stages-add-gexp.patch \ %D%/packages/patches/emacs-libgit-use-system-libgit2.patch \ %D%/packages/patches/emacs-lispy-fix-thread-last-test.patch \ + %D%/packages/patches/emacs-magit-use-old-git-behaviour.patch \ %D%/packages/patches/emacs-native-comp-driver-options.patch \ %D%/packages/patches/emacs-polymode-fix-lexical-variable-error.patch \ %D%/packages/patches/emacs-source-date-epoch.patch \ diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 4bbebd3cd6..4b57eb8e05 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -117,6 +117,7 @@ ;;; Copyright © 2022 Jose G Perez Taveras ;;; Copyright © 2022 Hilton Chain ;;; Copyright © 2022 Nicolas Graves +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -1001,6 +1002,8 @@ (define-public emacs-magit (uri (git-reference (url "https://github.com/magit/magit") (commit (string-append "v" version)))) + (patches + (search-patches "emacs-magit-use-old-git-behaviour.patch")) (file-name (git-file-name name version)) (sha256 (base32 "0cxyvp2aav27znc7mf6c83q5pddpdniaqkrxn1r8dbgr540qmnpn")))) diff --git a/gnu/packages/patches/emacs-magit-use-old-git-behaviour.patch b/gnu/packages/patches/emacs-magit-use-old-git-behaviour.patch new file mode 100644 index 0000000000..1f28d23cd2 --- /dev/null +++ b/gnu/packages/patches/emacs-magit-use-old-git-behaviour.patch @@ -0,0 +1,24 @@ +This patch fixes two of Magit's tests when used with Git 2.38.1. Git commit +a1d4f67c12 (transport: make `protocol.file.allow` be "user" by default) had +broken them, so this cherry-pick of Magit 36059e0b sets it "protocol.file.allow" +back to "always". + +Author: Kyle Meyer +Added by: ( + +diff --git a/t/magit-tests.el b/t/magit-tests.el +index 523cc519..bc556d17 100644 +--- a/t/magit-tests.el ++++ b/t/magit-tests.el +@@ -24,7 +24,10 @@ + (declare (indent 0) (debug t)) + (let ((dir (make-symbol "dir"))) + `(let ((,dir (file-name-as-directory (make-temp-file "magit-" t))) +- (process-environment process-environment)) ++ (process-environment process-environment) ++ (magit-git-global-arguments ++ (nconc (list "-c" "protocol.file.allow=always") ++ magit-git-global-arguments))) + (push "GIT_AUTHOR_NAME=A U Thor" process-environment) + (push "GIT_AUTHOR_EMAIL=a.u.thor@example.com" process-environment) + (condition-case err \ No newline at end of file base-commit: 96ae718c516a289124a0b91ceeef78b20d187825 -- 2.38.1