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 WEqVEzqLImVwsAAAG6o9tA:P1 (envelope-from ) for ; Sun, 08 Oct 2023 12:58:02 +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 WEqVEzqLImVwsAAAG6o9tA (envelope-from ) for ; Sun, 08 Oct 2023 12:58:02 +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 BAA194F80F for ; Sun, 8 Oct 2023 12:58:01 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=albinoniB header.b="c +LtRgw"; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696762682; 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=PEOt9avxZEvIW9HmRzI/hRpBaERYe/kLYFyR2FaiqpMeiXG22656SGW2VWvWB4/GOND1Fr Y5V+mu+zeqXcYKA1YIK/R7ZyN+lPcaCSun0M+iEBBrwUtw7Xxd9RbhznBXfHbSMEH6fe9Q G3pvYXwX77CYukixmZRaswZ+M/4tCXeGB3tCF/Fdum5lKCLPQSwMtmTK0QHY/7yGDgjo/n ozOVXOj+Degx1AXOwrHKJQKaEVW+jdST9hnmh8njaaGLwGjq/BKgFsoYaZAzkCwhDTfdzp lQ9qhFDwbUecm7gTwxq51GSd2WEka8QS8J8NFAkMBsUOpQN/T6wguSz80K0Zwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=albinoniB header.b="c +LtRgw"; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696762682; a=rsa-sha256; cv=none; b=Hr+GquBdxekFS4weXl+awYGngvxmleaepF+SmlR/cM8a3tKFFiCjinVf+bsOLDCd6tUSdD fCWz0v+JEHPSrFIKtonblTByWLL7LkHdHHDqJaXCau79/u8eNkU+eXFsffe5D8+4qhV7ft 8nfWGFMCTJ8dnXconcKZkCqiL9i2iB/3TsTOxRw1XWV6bKJLwa0cdrhW9i7CBvSXUT2Zvl Wr9clsC0xxnkGNdIZXlOCK3W9dDuytOFFhCcAAxR9ZSVo43cJ5XamdK0QxIlWe9WEiq4/4 G8i3pkdl7Z4IJT0A9GiACYhtBJAqAPnl+Mh/draPhaMNU+tpYmrbkiVsGltpQQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpRTn-0007W8-AN; Sun, 08 Oct 2023 06:57:47 -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 1qpRTi-0007Ub-Uf for guix-patches@gnu.org; Sun, 08 Oct 2023 06:57:43 -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 1qpRTi-0001Ma-MR for guix-patches@gnu.org; Sun, 08 Oct 2023 06:57:42 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qpRU2-00044U-ES for guix-patches@gnu.org; Sun, 08 Oct 2023 06:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66099] [PATCH gnome-team v9 2/7] 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: Sun, 08 Oct 2023 10:58:02 +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.169676262615515 (code B ref 66099); Sun, 08 Oct 2023 10:58:02 +0000 Received: (at 66099) by debbugs.gnu.org; 8 Oct 2023 10:57:06 +0000 Received: from localhost ([127.0.0.1]:56375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpRT8-000423-2m for submit@debbugs.gnu.org; Sun, 08 Oct 2023 06:57:06 -0400 Received: from planete-kraus.eu ([89.234.140.182]:58228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpRT6-00040x-An for 66099@debbugs.gnu.org; Sun, 08 Oct 2023 06:57:04 -0400 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id e90ff463; Sun, 8 Oct 2023 10:56:43 +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=c +LtRgwTHc8d9jz35+Y2wIhUfEDwOVzgUcwC6MXvMj2N2ks6eWB/4u6+cW1gW/Ho2 DAzKZsHs5JLmPrTWtfgKo/5Z1aIAD3IEpS1kEUPHTFedtFZvzgNFDR5+OxvReDaT SD+aj5SkGE67LQLF0xEiHgsNP3AoFYWpawFazIQxICuU3wsA91GnVu9UHNLim4p1 KpOoG38W/XSta0JqVjRlG2wDoG9u17VJQ/VgiVev4myjRAou1fgOGf/fIDOy42FX nEzyiGB1EeSUYhiIx3V8LVpTZNwNtHozDhtOnrQKoYsYImi/YoDZceHKCVPM+aXT G30dDxA6cnohDEKGnt9lQ== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id deb97268 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 8 Oct 2023 10:56:42 +0000 (UTC) Message-ID: <6a569fafbb3d54b2ca7bfa0e072e85728ac98120.1696762169.git.vivien@planete-kraus.eu> In-Reply-To: References: , <10e334a07e0d45ff7bce0a18b56fd68f13ad2ce8.camel@gmail.com>, <9dcb22311514913d7b0fe41fd957e24423b8fa9b.camel@gmail.com>, <34cc0e2a780cca469d65222421e17f85414df8b2.camel@gmail.com>, <87ttr2ij9i.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: BAA194F80F X-Spam-Score: -4.24 X-Migadu-Spam-Score: -4.24 X-Migadu-Scanner: mx1.migadu.com X-TUID: hrUJFYiRxttu * 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