From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oG5cMLFEIGUj/gAAG6o9tA:P1 (envelope-from ) for ; Fri, 06 Oct 2023 19:32:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oG5cMLFEIGUj/gAAG6o9tA (envelope-from ) for ; Fri, 06 Oct 2023 19:32:33 +0200 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 A28CE5F356 for ; Fri, 6 Oct 2023 19:32:33 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=albinoniB header.b="l YtUtvO"; 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=1696613553; 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: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=aCzUnSRbbyRIJ3B+8sQy008ghFsw4zSqgt/udtF74ik=; b=DKAsjSgv0SpDqx0/8RwV6R8Jgg5JGSxA6nNqjfwPmfJzLF2zWQy4mrtVRqfyfcd3/+jcUW mR9jBuGNvfF8EbmNrvHY5R+QicaFgeoS5pWFLcKKjrhpEw+YOQ8zK5VDnIOh/j907hz+bz xhazJ6QN5b1UEHLg0uOxNIsm8WFKUADnEzeQqFcleQ4DFPcq8hDpng+vxgkLUUqZBmuYq/ S9n2rtRKEQ2UmyUFoZMN4quJTXnmvqr2EpCPwPlze3YWGnhZkLrOH0KS4kaFzYujNXZPGU Um72NbNuEZ3VhIN4wdNfoW+EOj13XlPWBI50LjUcW2wVybtYJHtlsV2lC8F9iQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=albinoniB header.b="l YtUtvO"; 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-Seal: i=1; s=key1; d=yhetil.org; t=1696613553; a=rsa-sha256; cv=none; b=plpOs49QDFvzvjXKfAW/Onvl7bCSVXblOxrTCnxPi9DyIwVsgU20pDZXhUCu3OT1esEqCs 86s23L9PJPqAVG0T53TSUi72QCaJxd2nhruK1fb/jodMRWYoyQW5VxobZTBKi2Wsi2ULjB wY8c43QIcUrmFiXkK1E6DTqM3BKBalfwUcDPpSMtvP1YyOdxIeNUsw1Tb+HpRsANCjyjSW W+0WtU1CRNrgHP4IEroTSN+WqryyTfl2URQI3COrf6DZj3zmapY1FgnmF2VfvmuoHd41r6 ypC2QSO/Fgq7FNNKGcLHIm+TGcpzL4+xJzTk55gopUhgtIiDLiDN8vuc3s7yvw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoogB-0006ny-Ru; Fri, 06 Oct 2023 13:32:00 -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 1qoofw-0006l1-RP for guix-patches@gnu.org; Fri, 06 Oct 2023 13:31:45 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qoofw-0006YO-Jd for guix-patches@gnu.org; Fri, 06 Oct 2023 13:31:44 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoogF-0000Wk-F4 for guix-patches@gnu.org; Fri, 06 Oct 2023 13:32:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66099] [PATCH gnome-team v8 2/6] services: udev: Rewrite udev-rule to use file->udev-rule. Resent-From: Vivien Kraus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 06 Oct 2023 17:32:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66099 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler , Maxim Cournoyer , 66099@debbugs.gnu.org Cc: rg@raghavgururajan.name Received: via spool by 66099-submit@debbugs.gnu.org id=B66099.16966135011948 (code B ref 66099); Fri, 06 Oct 2023 17:32:03 +0000 Received: (at 66099) by debbugs.gnu.org; 6 Oct 2023 17:31:41 +0000 Received: from localhost ([127.0.0.1]:52568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qooft-0000VF-0l for submit@debbugs.gnu.org; Fri, 06 Oct 2023 13:31:41 -0400 Received: from planete-kraus.eu ([89.234.140.182]:43846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoofp-0000UU-TW for 66099@debbugs.gnu.org; Fri, 06 Oct 2023 13:31:38 -0400 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id c267bf91; Fri, 6 Oct 2023 17:31:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:in-reply-to:references:from:date:subject:to:cc :mime-version; s=albinoniB; bh=k+d97SLb+vlGEuQb3iYvz11PVP4=; b=l YtUtvObW7pefUAJKtdAvb/uSNhh5L7Q+m/27ajarUtcwRebQwF9veh3XBZ96ZVeS Z4exxJyRYax7fJJjKC1N+Uld12A3qRM0VBjhKYe+3Pvz0LYR6m8p0V58XA2DXsC/ 21gDosJW6Z8xIF0w3hczIk6tR7NrPvu2cW+f1d45QExsmKSxUh18gPmSx88l2O7n bzAoAUeKa99b5Dl0J7tRvYMCd6rJfSpRF7AIh0yxwcnL8sSEG05nrupycK47Ju+n qIQoA40pw0M807o8CbmCVjDEktIUq2TH/qV69Nm8l3kqqRoe6Dy6TXM015XMdi2Y ksE8Uo+KKHxamQcl6SItA== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 3fcedc74 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Fri, 6 Oct 2023 17:31:17 +0000 (UTC) Message-ID: <745ab283537534e14ae37e1989ba7baa4178938b.1696610746.git.vivien@planete-kraus.eu> In-Reply-To: References: <0825bf42daa34ee464c5237b04ad6bf90942e489.camel@gmail.com>, , <1a1089275d13e02b4485c5de6e908ece88f5d2b6.camel@gmail.com><87y1ghryel.fsf@gmail.com>, <87pm1try6q.fsf@gmail.com>, <87lechrvhl.fsf@gmail.com> Date: Thu, 5 Oct 2023 19:33:24 +0200 MIME-Version: 1.0 User-Agent: Evolution 3.46.4 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: Vivien Kraus X-ACL-Warn: , Vivien Kraus via Guix-patches From: Vivien Kraus 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-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -5.24 X-Spam-Score: -5.24 X-Migadu-Queue-Id: A28CE5F356 X-TUID: xrkUMXrNIJad * gnu/services/base.scm (udev-rule): Use file->udev-rule. --- gnu/services/base.scm | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index b3f2d2e8b8..30372bf1b5 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -2212,19 +2212,7 @@ (define (udev-rules-union packages) (define (udev-rule file-name contents) "Return a directory with a udev rule file FILE-NAME containing CONTENTS." - (computed-file file-name - (with-imported-modules '((guix build utils)) - #~(begin - (use-modules (guix build utils)) - - (define rules.d - (string-append #$output "/lib/udev/rules.d")) - - (mkdir-p rules.d) - (call-with-output-file - (string-append rules.d "/" #$file-name) - (lambda (port) - (display #$contents port))))))) + (file->udev-rule file-name (plain-file file-name contents))) (define (file->udev-rule file-name file) "Return a directory with a udev rule file FILE-NAME which is a copy of FILE." -- 2.41.0