From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UFnhFRU3CmTchAAASxT56A (envelope-from ) for ; Thu, 09 Mar 2023 20:44:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eNzRFRU3CmSlVgEAauVa8A (envelope-from ) for ; Thu, 09 Mar 2023 20:44:21 +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 CFE9513438 for ; Thu, 9 Mar 2023 20:44:20 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=psrq5qWN; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678391061; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=CfNG4kVOSrpqGaj/GjNk2aX/EHVm1/O+h7LiXsnD+JY=; b=LjnNvGolvAV54kwEaLxs7npUn58nFnzL0Ro84BsQhkA5xWbEHmhNgkVbxsF6Y5E8xRgxlW nC2jhFgkNszhwLikBbj3J2OA2G3SB718MTYYPJ6+/Onjhr3K1yB20O8/nJicPiXdShmS8i 71bo6mD40HnUD9rWVRohJ+o25gO42CzMpKqKPuvsQg6FT1y61fSrB6sDvt0vpkruakzCHx 5qdxXXaG3/JX+wDZ1y4AB7Jv81R8lcKAKnQ8fCK6/jzCc9OuaonINMHo8Ka/jpEc6vTWSL 3PMcg2n2lIda8ZMuY+DUWyjIzh0egs7hfZYncJCCJPMAlrzZiwD+A6VjPaS18w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678391061; a=rsa-sha256; cv=none; b=BBY/bkwCreysMWqoKfgDIiJrJry+aYqSfEMwW8zi7KexR4bAAthvQX4WzZgFKe5XVx/d+s cW1h+U2/GXSM74eVhJPTFumzOj+igIn81zlOwgF9Qic6CRlEo8QuAAKwve03ZBLFk1ah5s EV9gVYjcrh7/0cLnQ03nW+k4YQdr/tMHmU0kPPiL2ntIlG7+UWlowEv0ePnIJmu+O0Vs3b NnUBrf8x1JqhmdqMdVb9t/vrVWfqVW2IO7dLsK7hKJf3sXurVExtsNC/z67/M+orJSBulL yEJ7/5Bv+ld0I2PFOULjWQCG/QHGTkhnQJo1654Os8mA6jLwr2Zr6jaoRWwOmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=psrq5qWN; 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"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paMBI-0000Ue-6D; Thu, 09 Mar 2023 14:44:04 -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 1paMBG-0000UP-9q for guix-patches@gnu.org; Thu, 09 Mar 2023 14:44:02 -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 1paMBG-0005Hq-1m for guix-patches@gnu.org; Thu, 09 Mar 2023 14:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1paMBF-0003NM-Se for guix-patches@gnu.org; Thu, 09 Mar 2023 14:44:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#62036] [PATCH] guix: packages: Consider 'patches' by 'package-direct-sources'. Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Mar 2023 19:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62036 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon Tournier , 62036@debbugs.gnu.org Cc: Tobias Geerinckx-Rice , Simon Tournier , Mathieu Othacehe , ludo@gnu.org, Christopher Baines , Ricardo Wurmus Received: via spool by 62036-submit@debbugs.gnu.org id=B62036.167839101412936 (code B ref 62036); Thu, 09 Mar 2023 19:44:01 +0000 Received: (at 62036) by debbugs.gnu.org; 9 Mar 2023 19:43:34 +0000 Received: from localhost ([127.0.0.1]:53124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1paMAo-0003Ma-86 for submit@debbugs.gnu.org; Thu, 09 Mar 2023 14:43:34 -0500 Received: from jpoiret.xyz ([206.189.101.64]:38792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1paMAn-0003MR-4K for 62036@debbugs.gnu.org; Thu, 09 Mar 2023 14:43:33 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id BD73B185313; Thu, 9 Mar 2023 19:43:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1678391011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CfNG4kVOSrpqGaj/GjNk2aX/EHVm1/O+h7LiXsnD+JY=; b=psrq5qWNihIYze4AAqgHM/7NAelOIMkDYB4gcsLPsMgr2TCPVpLAGNtloRoRhAc6CopJ1N pngLqh0MoJ6ZdK80HFur8qPv08nOoU4e0qKm5i/IccfNzOmopb/xt7L1Fro65qhPd/t3eu FmMAUdMJmob9N1o0huC9LkbpU2LtA/kmPK/jqK+S8SmYTmTYKjRlR4RU4eS31o6EBkWDUW +e8YSTbevGDHgN/LERfa3phimNQTiPjhg6G/kNN3UoS0ZlWIRny9173xbgw/e0R0tC5qqK lb9o+eDb4FV82ePIAR0GISPdS1OXp7M6o/IrB1HnZ4nqkpLvxj3GvBoVhaNp0A== In-Reply-To: <20230307171833.4170067-1-zimon.toutoune@gmail.com> References: <20230307171833.4170067-1-zimon.toutoune@gmail.com> Date: Thu, 09 Mar 2023 20:43:26 +0100 Message-ID: <87lek5d82p.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spamd-Bar: + 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: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: CFE9513438 X-Spam-Score: -3.10 X-Migadu-Spam-Score: -3.10 From: Josselin Poiret 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 X-TUID: ctEAcieDVkSj --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Simon, Simon Tournier writes: > (define (package-direct-sources package) > "Return all source origins associated with PACKAGE; including origins = in > -PACKAGE's inputs." > - `(,@(or (and=3D> (package-source package) list) '()) > +PACKAGE's inputs and patches." > + (define (expand source) > + (append > + (list source) > + (filter origin? (origin-patches source)))) * cough * (cons source (filter ...)) * cough * Other than that, LGTM! Tests worked fine on my end. No idea what this is used for though :p Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmQKNt4QHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5FhcaigLjC/4z42MulqY4FuyhGqP9YC0JLljEf82HPn02 KLk17Hqv+iyjrchcaSzbk1LdzUEuQOoScy0tfWH1cNVtQ8ixZ+CU6YahP3SkErD4 x5wthA030DacfhZR9jPgHpqxGFNqVjMOaFx9cUa4fG4W2RTw5/UbGvdZ28yeZ8Wm hL+YD5V71h7T+ShRwIY4Ky/uHMV+ehQ2F5ENQDQ5vsyKCkVRfqkeWB+U8wrd8ja8 zS5spTxSY3DUR1HTiSmb9mFJVE/AfHrQtPBK6yEZhEnF5m94F6ZqhJvbYEvxe+yr TTesEgy/kpDIlsukILSreA8lQULmETikpjWAWXDtTMqLcLjTP8ojOoldUYlwX2ev CjVDgoVGiP0Xf3s1Erkua98GRvukXCOEp/x5k3xbHJnmR2Pcbox8q4uCn5qS0mSX t95Yh0nD+5s7biczROPQ4rdS/dTB321YpAUS+3u0CKd9f8BLUujZx/o0rwq1KwDB 2HZok+oderfr2PcX9HogFb7O6Mclj+Q= =sU7q -----END PGP SIGNATURE----- --=-=-=--