From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KOhRLwHWGWTR7QAASxT56A (envelope-from ) for ; Tue, 21 Mar 2023 17:06:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uNT9LgHWGWTrMgEAauVa8A (envelope-from ) for ; Tue, 21 Mar 2023 17:06:25 +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 9616914976 for ; Tue, 21 Mar 2023 17:06:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peeUx-0000OQ-Cn; Tue, 21 Mar 2023 12:06:07 -0400 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 1peeUv-0000Nr-ET for guix-patches@gnu.org; Tue, 21 Mar 2023 12:06:05 -0400 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 1peeUr-0000T6-Qa for guix-patches@gnu.org; Tue, 21 Mar 2023 12:06:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peeUr-0006wU-MZ for guix-patches@gnu.org; Tue, 21 Mar 2023 12:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62347] [PATCH 2/2] gnu: usbutils: Use G-Expressions. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Mar 2023 16:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62347 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62347@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 62347-submit@debbugs.gnu.org id=B62347.167941473126630 (code B ref 62347); Tue, 21 Mar 2023 16:06:01 +0000 Received: (at 62347) by debbugs.gnu.org; 21 Mar 2023 16:05:31 +0000 Received: from localhost ([127.0.0.1]:60339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peeUM-0006vS-Jp for submit@debbugs.gnu.org; Tue, 21 Mar 2023 12:05:30 -0400 Received: from smtpm5.myservices.hosting ([185.26.105.236]:60260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peeUL-0006vD-8q for 62347@debbugs.gnu.org; Tue, 21 Mar 2023 12:05:29 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm5.myservices.hosting (Postfix) with ESMTP id 938F520CE1 for <62347@debbugs.gnu.org>; Tue, 21 Mar 2023 17:05:28 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 341AD8009D; Tue, 21 Mar 2023 17:05:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LxJR0kFqWZP7; Tue, 21 Mar 2023 17:05:27 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-119-177.dsl.telepac.pt [85.242.119.177]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 959B980079; Tue, 21 Mar 2023 17:05:27 +0100 (CET) From: Bruno Victal Date: Tue, 21 Mar 2023 16:05:23 +0000 Message-Id: X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679414785; a=rsa-sha256; cv=none; b=Kl+OrKvA8752Js9MSufTZGA8ESydL9ZJnmnYAW3XspUWliwjc6h/g785cLHcuIezdx7xvM jJ/BwEBmpJ1rNUatjpDl8fERXGlXIITqb+3T9rt2aDkoVf9Bncu1VRp7eCUNJTjuRlzb/T YlHdktXmq8vaXNIRzfOBR0MhjdI8sOncpZc7Qjx6owFjCeLa6K7jPTrC//se0nLNo21fTo ObqMRR8CcICIa4IoXzvD/4CWrM9t+vFF6O8U/miIcaVS5vxiKew19naa9bTaOJjYkGVY0y 8GBlBhoL5En1aC4WF5vAQZJDrIBnRRVrJpfsCT0fqdqOouJ5giQSU6dLmQ1L0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679414785; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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; bh=1BPGCZTRcmYmEanrGR7bpr+FV6AF6ldhQQ13Jrz88XE=; b=BAx0hN0yzos/MzklvZhV0fSs0/pTkiOG+0m8XigbWSrbDlXGUYZlMkOLPg1oWpiOrZkXBk BTNs4HmwX7HUoagASoYvZFDgdijOXjvq/Tt2H0VXespsm7GfArEenq9AIikqVUJRRlMuK4 +YF3f1Hinzj8QmtCdVAGwjvLQU1bjoVYFq60p6U+7KsS56SjPsur8ipzIG6C5TikUTT+8q dP8nPpPeJsrbbb/tfPF4n2p3v27BJZONLTWSfjl6jDaLihJfnPDrGtbNKa84csze26b9Ck NBp/qLZYI4q+C09D9NPopFNGZLJ4hKoHL/BFjqZkj0pU6Qj1CmmLLZUulQlKwA== X-Migadu-Spam-Score: -1.75 X-Spam-Score: -1.75 X-Migadu-Queue-Id: 9616914976 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Scanner: scn1.migadu.com X-TUID: /TUAr1DsQgge * gnu/packages/linux.scm (usbutils): Use G-Expressions. --- gnu/packages/linux.scm | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index f0a590104b..240c62bb14 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -2377,23 +2377,22 @@ (define-public usbutils (build-system gnu-build-system) (outputs (list "out" "python")) (arguments - `(#:phases - (modify-phases %standard-phases - (add-before 'bootstrap 'patch-bootstrap-scripts - (lambda _ - (substitute* "usbhid-dump/bootstrap" - (("/bin/sh") (which "sh"))))) - (add-after 'install 'separate-python-output - ;; Separating one Python script shaves more than 106 MiB from :out. - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out")) - (out:python (assoc-ref outputs "python"))) - (for-each (lambda (file) - (let ((old (string-append out "/" file)) - (new (string-append out:python "/" file))) - (mkdir-p (dirname new)) - (rename-file old new))) - (list "bin/lsusb.py")))))))) + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'bootstrap 'patch-bootstrap-scripts + (lambda _ + (substitute* "usbhid-dump/bootstrap" + (("/bin/sh") (which "sh"))))) + (add-after 'install 'separate-python-output + ;; Separating one Python script shaves more than 106 MiB from :out. + (lambda _ + (for-each (lambda (file) + (let ((old (string-append #$output "/" file)) + (new (string-append #$output:python "/" file))) + (mkdir-p (dirname new)) + (rename-file old new))) + (list "bin/lsusb.py"))))))) (inputs (list eudev libusb python)) (native-inputs -- 2.39.1