From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gEqiOAAmtmG5KAEAgWs5BA (envelope-from ) for ; Sun, 12 Dec 2021 17:40:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KDllNAAmtmF4FQAA1q6Kng (envelope-from ) for ; Sun, 12 Dec 2021 16:40:32 +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 7744050C0 for ; Sun, 12 Dec 2021 17:40:32 +0100 (CET) Received: from localhost ([::1]:34840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwRtn-00045H-Nv for larch@yhetil.org; Sun, 12 Dec 2021 11:40:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwRtY-00044t-2U for guix-devel@gnu.org; Sun, 12 Dec 2021 11:40:16 -0500 Received: from [2a02:c205:2020:6054::1] (port=34044 helo=tobias.gr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwRtU-0005XF-Pt for guix-devel@gnu.org; Sun, 12 Dec 2021 11:40:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=le1t2XF2yLfHF R1SpzhBVodHpKOZafHmRormPvarYqk=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=dK8opB+6PViSO583wJy7qr9cfKjbpCDGl7/PH8 QAk9winjer5FGjbr/VLxt66LL8ZSZqrGnNFGOB4ZxxohUIxUKpd4EvRXkZWEYyi6zB9T+3 F5DIOzyY1FZBfGODsfgjUFYDVx6o/TgIIGJbv6VGf6qjtEr7dAMUOWHiIeexWGIa7BDXSx QL04O1dS2HGm4dBYSraqexXPhcnFfq1FFHxemf1rgMg6VLmEekDtQyra+yvlnUz7Y9B3+r W++d+4UNhjQ/NvcDrfxii07m7+aDLifOmDupwHmEevDiXUME8wtfJFgiFjToHQ6VNOwOcG v6mcHYFx1Laf2dhIVCu6nFgg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id bf15d4bd (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 12 Dec 2021 16:40:08 +0000 (UTC) References: <878rwqf1s4.fsf@h-brs.de> From: Tobias Geerinckx-Rice To: Alexander Asteroth Cc: guix-devel@gnu.org Subject: Re: How to handle package udev rules? Date: Sun, 12 Dec 2021 17:24:17 +0100 In-reply-to: <878rwqf1s4.fsf@h-brs.de> BIMI-Selector: v=BIMI1; s=default; Message-ID: <87k0g9kc93.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:c205:2020:6054::1 (failed) Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=1639327232; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=le1t2XF2yLfHFR1SpzhBVodHpKOZafHmRormPvarYqk=; b=Qa6fTbFjekY76rqc0wex8hDZu2rqqTCEZSxKHYvaJ8x69BgmXxJt5d5zCH41CXJaSt/KPp CH9v/CnTXCaaXt4odTQ3qGDLiac83bEsV7Nw4yJaWXgERPGVeuYwjsjAWEA0pZcaqv3cAc KULgaHCaC9wz2/leI086HzGiy2nIxvusPI4QvpUmASsERW08kjVUEtlEzZ8IRx95RZZ0q2 tYFdQvq+D5uaW3qax9ahzXa3odRd01sqmYyVdpuzIzoB9MlraHvzcHwfO9qOKVb6Vds+V/ k2pQ7WuNA2wRXIOo50vo9szwsJolv1MaaZrXRRwcRDims3DENod6Mpr+yXPbzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639327232; a=rsa-sha256; cv=none; b=mKjy5PDcvs48jJ1hGf82RLHQB+XK0N+e/B1vnvCd6ck7TsnmwzWugdt2wgiMF3cfVApE1P hpNfFk5pB1mOzM8IKuJ9GPhz1UXGg27U0dxaZX/04zYKPEdiRyiml8wQk/JSO9JS+on/NL URMJhEHuuXoZvyw7iiot72FbGYHII9FqQIwUbZOF8VxLv3gKDggs8d7z8WJ0P+I6o1A14i yhQOJp3pslCGu8ir5URHVGvBDJxIKr0is7utBzD8Cdb0hkodyb9GsNEP1rZ0xyWvcSG3zm /hj3PTo3aD9KFaJ8+ItMmqnlySoB1rNQ+VebZRoKhI7NVfwRWLP8bRqnYSPRgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=dK8opB+6; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.77 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=dK8opB+6; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7744050C0 X-Spam-Score: -4.77 X-Migadu-Scanner: scn1.migadu.com X-TUID: /O9KISmVS2QR --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Alexander, Alexander Asteroth =E5=86=99=E9=81=93=EF=BC=9A > The question now is, what is the correct guix-way to implement=20 > this: Not as complicated as you fear! udev rules aren't special. Just install them to the package's own=20 /lib/udev/rules.d directory. If the build system tries to=20 write to another package's output, see if it provides any options=20 to change that, or patch it in the worst case. > As I understand, the udev-rules are usually created on system > level. That would mean I need to split the package into a=20 > service part > and a package part? And remove the installation of the udev-file=20 > from > the package install process? Guix System provides a ready-made udev-rules-service to gather up=20 all desired udev rules and pass them to the running udev. I think=20 this is how it works: (operating-system [=E2=80=A6] (services (cons* [=E2=80=A6] (udev-rules-service 'projecteur projecteur) %base-services))) =E2=80=98Think=E2=80=99 because I do it differently in my own configuration= s. > Or is there another way for a package to provide the udev rules=20 > from a > user-level install?=20 If this means =E2=80=98can I use Guix's udev rules on a foreign=20 distribution=E2=80=99: I'm not sure, but not out of the box. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYbYl+A0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15PV0BAL0TS+LSZyfdCJBdeDGYaP6MNjuUPIg338arSUdA nQYVAP9RpDRcUc7T/cHW3aTz88gNgi4xYf6kC2icdSiChvfpDg== =UrLj -----END PGP SIGNATURE----- --=-=-=--