From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KKjsEBoDSWCnCgAA0tVLHw (envelope-from ) for ; Wed, 10 Mar 2021 17:34:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sN6WDBoDSWDVIAAAbx9fmQ (envelope-from ) for ; Wed, 10 Mar 2021 17:34:18 +0000 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 7659A18739 for ; Wed, 10 Mar 2021 18:34:17 +0100 (CET) Received: from localhost ([::1]:41122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lK2iu-0008Kw-DQ for larch@yhetil.org; Wed, 10 Mar 2021 12:34:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK2L0-0000g0-L7 for guix-devel@gnu.org; Wed, 10 Mar 2021 12:09:35 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51825) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK2Kt-0001IK-LB for guix-devel@gnu.org; Wed, 10 Mar 2021 12:09:33 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 8F5F45C01BC; Wed, 10 Mar 2021 12:09:25 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 10 Mar 2021 12:09:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=4ZfqOJnmSDV6i5fgj5LOihNdBTZUNeAfBoXKuYBcIv0=; b=WogOGeN2wtCZ GvhmnOj/iS7B1ulpIM9qbYeLQpDyz3DTIddcmvw9EEDzPWSwUpvRkXpu4MLvotUp 2JKi+O5lJk4UWH7bSgisHBRP1/yQd5awBahx9vZLwdTHVFjnHOjo8r8Dj3uqg1Z8 fvbYlzBQlRn7idGr+zwBNCDAyTRKYbY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=4ZfqOJnmSDV6i5fgj5LOihNdBTZUNeAfBoXKuYBcI v0=; b=Icjdqj5nvl1jnDLHu5NBTvctj6rPKtYk6xd6F6LL4jK+wsfheKf/zU0GH uhrYc6RV4REDETNqr8YD8ib7TsSXaw49uV/2nc3PTKqAyMZMJZVzp5aLn+QI7TBx fYQU6J0loQjptwVh0OzES68SuJLDUkJZBPEBt50Y82mum634Lqp4wQ7NK66Nq4Lr xfAUvzv4jiqsouKtgOcM/fZX1DxdCUZUT3OzDPh93dE2+x7mgPmXBv0n8GAJV3Aw 5MQEoEd0pSZ+abphxqzbjZXCURC9VG2PCZ5hHHtwtDJmCxoyDlNZKLhBqlvqzjOx ltGfeGEd/b8af2u7LJbfuqwj52Znw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddukedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjsehtqh ertddttdejnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeefjeevgfeujeefleekhfeitdejhf evvdfgkeekfedutdefjedvhfefledtfeegudenucfkphepuddttddruddurdduieelrddu udeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplh gvohesfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: from localhost (pool-100-11-169-118.phlapa.fios.verizon.net [100.11.169.118]) by mail.messagingengine.com (Postfix) with ESMTPA id 487AA240057; Wed, 10 Mar 2021 12:09:24 -0500 (EST) Date: Wed, 10 Mar 2021 12:09:22 -0500 From: Leo Famulari To: =?iso-8859-1?B?TOlv?= Le Bouter Subject: Re: Generate diff with git-diff and use in patches field of packages Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: Received-SPF: pass client-ip=66.111.4.26; envelope-from=leo@famulari.name; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615397657; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4ZfqOJnmSDV6i5fgj5LOihNdBTZUNeAfBoXKuYBcIv0=; b=edEgg44qtkzs40tgdT9Uu0tq5SpCgfLwK2o+LOBrygHCUFmUCS6f5Eb6+ekSIjug+DxuiN 7rKLUbWsZ4qPoFf53JYLZjbFzLoMlpU2KMTXNfLrA9QPFWDxnZX+guBmcLQDbBJ4AO98HB M/A/NX0srY1uiLGtk7n3HfdXshjXY0VnAmfRn8EWVOg3V+o0qCEGGVKD6ljDgj5exsosCs KU4Osxhd474p5VYzi+8MEh9tPjQU/Rthv8VpKjHVsslL7yNGOE3oxpkONyTc+JYqGFSqz7 ZLDq1pKxO3F/YTIxQoGEk1IzRrHuN/yeE0dMdKJ66ySE92ZW0jXJ9OY+Opffng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615397657; a=rsa-sha256; cv=none; b=rhTy76CIxCQ18YIHuyNdRfhSZUHmv1joPmJmFWY+C4Jf6VVlRD6bd1SNGm4wRnPzQlEtD/ /QTV6TWfz/RKQy7TZTyXfz2FqNC6vm6z8v84zwP7lMcBYdjQ1gdwzVUY9EDTxAq28RVyRm tuUSA0YBEkXXpXa59GrFMk1eVF9l7+ZMn5VDO0hq6pzbedY+CsP5A6ujqIC5Ca8cnqV1PP K31yJp21jrNgtcHAgurNebKTfrWqaYFTiws1lnxsncsFYkSGm4C0nb/ISUa9Oc8VuF8L5U jUQ50V/8LMWFLPPMA0UMUvOGk0MyyXrytK6BdHGmFxW9vGh3KHJMswOjpBBUAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b=WogOGeN2; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=Icjdqj5n; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b=WogOGeN2; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=Icjdqj5n; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 7659A18739 X-Spam-Score: -2.59 X-Migadu-Scanner: scn1.migadu.com X-TUID: BQU63Ew09JF/ On Wed, Mar 10, 2021 at 04:11:34AM +0100, L=C3=A9o Le Bouter wrote: > Hello! >=20 > While patching packages for security issues, I often am needing to get > some patches from git repos because upstream does not make releases. >=20 > Including patch in "patches" directory etc. is a bit troublesome, I > would rather have some Scheme code do this with: upstream git url, > commit selector range or not, with hash checking like origins. >=20 > Is that possible? We do this sometimes. Check out how Bash is patched, and also the vestigial qemu-patch procedure. However, I think it's more reliable to include the patches in Guix itself, and a lot easier for other packagers =E2=80=94 including from other distros =E2=80=94 to read them. I often look at what other distros have done when deciding how to fix things in Guix, and it's helpful when they don't make things too obscure.