From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YBxQKaekK2cUhQEAe85BDQ:P1 (envelope-from ) for ; Wed, 06 Nov 2024 17:17:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YBxQKaekK2cUhQEAe85BDQ (envelope-from ) for ; Wed, 06 Nov 2024 18:17:27 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=iGk2flzS; dkim=fail ("headers rsa verify failed") header.d=burningswell-com.20230601.gappssmtp.com header.s=20230601 header.b=fZJFUTW5; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730913447; 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: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=LlTqfeeAZgNjhGVc04Z7XGeNVmPcTmdCNr0g/1PK4Pk=; b=Jgot3Tx9Q2Jo3SBfPlKPdwf29aFfRA845Id9Gd2RiIaDXKu+W/BL2sxblnOkLDZXUx9oBs 7jOm7sWVcT36G+UnK6Rj9WkMkeQxWPW+oArQYUWanfHNcpBF1ozyAOuwAzZL0s+JEIc75T qXpcX1dW3CGb/XsCjCDIriFe5EBE8uSP10SHdITykel3oQRPWky2ywMLuJLFPtvZ3Nm1vj Owg25MPFCH61jA0w8R8GJT97hc803CVFivNCSHcGckTkx+Hy1ap6E8huYGdXMrrNQ1aV2M 0rNOgUpvhuzQgLUmpvPKS3af7Ky+zKbD5ACIky4sbD/WBY8/S8+YJFP7loeqxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730913447; a=rsa-sha256; cv=none; b=UF2hKksTZdpLiawsC1DgHzXGfUemsscDfrNnzon4mZPxGCRu+inQizxdGvbiPfffTQ09M3 5h89LKYN6vSNTMpEkaG376SjRxFDXqTQEUihr5E3Hz/PglZys1PPlNJQHWTkTT3crEk/li d78Wm4IPhptUGZ+aVGswXobGrEy+ME6SBXyPhytH64WK1EqpCjfi/mVXl6U1p1jG+8T4Ur zFKbC9PloClG6cIVcLVujK25g3LTktEUO0Jo4loU0tS4b48CKefQD3kr32DDswjkEe5ivA vnBMtLo93j91p1PhjusNKc2WHOyYxTroe/KwmC4iviugOX5hXPU7E8PjlfmdrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=iGk2flzS; dkim=fail ("headers rsa verify failed") header.d=burningswell-com.20230601.gappssmtp.com header.s=20230601 header.b=fZJFUTW5; 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=none 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 1C8BE7CCE for ; Wed, 06 Nov 2024 18:17:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8jeX-0001Wt-9S; Wed, 06 Nov 2024 12:17:09 -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 1t8jeR-0001W7-2Q for guix-patches@gnu.org; Wed, 06 Nov 2024 12:17:04 -0500 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 1t8jeQ-0000Sb-QP for guix-patches@gnu.org; Wed, 06 Nov 2024 12:17:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=LlTqfeeAZgNjhGVc04Z7XGeNVmPcTmdCNr0g/1PK4Pk=; b=iGk2flzSZKfdL0uhV+Sb2fjfZ5Vn3Bn1qQvknNscuwVkgRkE9nw198S6XzQS8YPuHt5uvLT+ArAaFvs3e3AsvFgqoeM17mV0ZyiQmLE5vs0IJfutgCs+GjA/+yHDhgmFwGMvXaec8S8TS38xX01ZbarN7eC3NQntH/pfveW5I+Lc6MwBmcQyYcljTRfE4CNtrYnJZK7CSo87osoOsMtPXL+mUW00jK5g1EWkJcBtUw9bX2rAktf592Lyj03bWScVk6vw/wa+UnD4N8PrvaLoJbCFHnikovOFwgMgHuyOGcjM/4BtPefcoJSNm1228uJlO24WsC78g0SfLbKf8UMudg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t8jeQ-0002KZ-Ey for guix-patches@gnu.org; Wed, 06 Nov 2024 12:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74120] [PATCH] gnu: Add rust-speakersafetyd-1. Resent-From: Roman Scherer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Nov 2024 17:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74120 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: easy patch To: Nicolas Graves Cc: Roman Scherer , 74120@debbugs.gnu.org, Efraim Flashner Received: via spool by 74120-submit@debbugs.gnu.org id=B74120.17309133768880 (code B ref 74120); Wed, 06 Nov 2024 17:17:02 +0000 Received: (at 74120) by debbugs.gnu.org; 6 Nov 2024 17:16:16 +0000 Received: from localhost ([127.0.0.1]:45316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8jdg-0002JA-EY for submit@debbugs.gnu.org; Wed, 06 Nov 2024 12:16:16 -0500 Received: from mail-ed1-f52.google.com ([209.85.208.52]:59616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8jdc-0002Ip-Eq for 74120@debbugs.gnu.org; Wed, 06 Nov 2024 12:16:15 -0500 Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-5c96b2a10e1so9846962a12.2 for <74120@debbugs.gnu.org>; Wed, 06 Nov 2024 09:16:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1730913307; x=1731518107; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=LlTqfeeAZgNjhGVc04Z7XGeNVmPcTmdCNr0g/1PK4Pk=; b=fZJFUTW5w7sI1IA81zttqX6KMNYGfASwBWL6wRMfH8rnDZznYV9N/UPsu+9G+qNowM w5mcONoS7GNvL+AhnXaHTgP6kMQ7J9yIK8ukd89gXmoswp9BSpo1ypTvl+WOKwC7IvWZ TWp6ulm9e7gOKtb7sBarNhGAvK0nlRcI9La6EqwdNcznu0AY0KveIwdX6xmfpqoGzdfo IIHahJ13/2KK+c8MqxErjYEoGemdX8S/CLNZyOyQeUjvCQxJlmRvVBF1pX36fMWs7tQv R19GyPfeUedccqyj4OYOqVeAWlDixWvgGhqHfB24+uo1BEHPvOIRJmgKk6Kb9sbJ/3qI cL4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730913307; x=1731518107; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LlTqfeeAZgNjhGVc04Z7XGeNVmPcTmdCNr0g/1PK4Pk=; b=HOZgdiIm4kI3hKvWUEphxW9Lv+u7/ykZ5fwOheK0AjU/gyhj9shdClF0PHhoLkFX7B ZKFl+yh/Ygr3ao1vZ4ZfOpdJQZy5QawTdlMuALptOePmeRudnm0b2srWxMOb3yPvUDK1 DuL6mqbXHjP80+DbiyiurxAYpnFf357RatPtLSttVS8s4zyb46ESVU+zLBwqslRJm56N /mX1rXHyUN9A2TlaK1vrAbF/B2o2aaYmJhZg8gyS7gto5tgnaIA1Xm5Qx7zi3SJrhHLf HfPHyJgHmBSowsm1CWPox5d6Uo8ttKsOH/sI0tt4nt1UYSOef5tTXRBjm8weLoo5wOcM 8OfA== X-Forwarded-Encrypted: i=1; AJvYcCXBnqwPpnS16Pw0aN3ovU86uXR2G2mLA7QDdTe5edcWLwf+D7C9x/yCUGd1BPYBpERNXH51Xw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwMCfSDgm5FI23cS/FCfIVZAnQHUOdzEQQYqBMM5HdrOOsrIlWt dRbndNNDNOo4PybJnrFWV5qordRpxxpPIiYx0O95J/+Rf2OeezgtPmHdoc6eEwTPA4FxNrIMsIT v X-Google-Smtp-Source: AGHT+IGonHSosgnH8s5pMKx3fLmXmT6dv+/xy+234sYHBiiwQ79anZ7ZH/FnU1z0Sskhq+0Gr0xeCw== X-Received: by 2002:a17:907:86a2:b0:a9a:134:9887 with SMTP id a640c23a62f3a-a9de6167ad2mr3744018566b.41.1730913306362; Wed, 06 Nov 2024 09:15:06 -0800 (PST) Received: from m1 ([2a01:599:11f:568:ac4e:b7dd:b9ad:2569]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb17f6168sm303078766b.134.2024.11.06.09.15.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 09:15:05 -0800 (PST) From: Roman Scherer In-Reply-To: <87cyjcxcv8.fsf@ngraves.fr> (Nicolas Graves's message of "Sun, 03 Nov 2024 21:48:27 +0100") References: <730badd0c62c83b9c779ee2ad9c9ca41af34bfd9.1730317218.git.roman@burningswell.com> <87cyjcxcv8.fsf@ngraves.fr> Date: Wed, 06 Nov 2024 18:15:04 +0100 Message-ID: <86h68k8esn.fsf@burningswell.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.83 X-Spam-Score: -6.83 X-Migadu-Queue-Id: 1C8BE7CCE X-Migadu-Scanner: mx13.migadu.com X-TUID: BSpzvx+7NkoU --=-=-= Content-Type: text/plain Nicolas Graves writes: Hi Nicolas, thanks for the review. I sent a v2 where I now use g-expressions and use the install-data target from the Makefile to install files. I tested this with this speakersafteyd service which I'm going to send soon as well. I paste it here to maybe double check the paths I plan to use in the service. ---------------------------------------------------------------------- (define-module (asahi guix services speakersafetyd) #:use-module (asahi guix packages crates-io) #:use-module (gnu services base) #:use-module (gnu services shepherd) #:use-module (gnu services) #:use-module (guix gexp) #:use-module (guix records) #:export (speakersafetyd-service-type)) (define-record-type* speakersafetyd-configuration make-speakersafetyd-configuration speakersafetyd-configuration? (config-path speakersafetyd-configuration-config-path (default "/usr/share/speakersafetyd")) (blackbox speakersafetyd-configuration-blackbox (default "/var/lib/speakersafetyd/blackbox")) (max-reduction speakersafetyd-configuration-max-reduction (default 7)) (package speakersafetyd-configuration-package (default rust-speakersafetyd-1))) (define (speakersafetyd-shepherd-service config) (let ((blackbox (speakersafetyd-configuration-blackbox config)) (config-path (speakersafetyd-configuration-config-path config)) (max-reduction (speakersafetyd-configuration-max-reduction config)) (package (speakersafetyd-configuration-package config))) (list (shepherd-service (documentation "Speaker saftey daemon") (provision '(speakersafetyd)) (requirement '(udev)) (start #~(make-forkexec-constructor (list #$(file-append package "/bin/speakersafetyd") "--config-path" #$(file-append package config-path) "--blackbox-path" #$blackbox "--max-reduction" (number->string #$max-reduction)))) (stop #~(make-kill-destructor)))))) (define speakersafetyd-service-type (service-type (name 'speakersafetyd) (description "Speaker saftey daemon") (extensions (list (service-extension profile-service-type (compose list speakersafetyd-configuration-package)) (service-extension shepherd-root-service-type speakersafetyd-shepherd-service) (service-extension udev-service-type (compose list speakersafetyd-configuration-package)))) (default-value (speakersafetyd-configuration)))) ---------------------------------------------------------------------- Could you have another look, please? Thanks, Roman. > Hi Roman, > > Just so you know, you can probably use gexpressions for the phases, this > would make it easier to read. > > Can you resend a revised patch? Thanks! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFLBAEBCAA1FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmcrpBgXHHJvbWFuQGJ1 cm5pbmdzd2VsbC5jb20ACgkQPdpSUn0qwZmbOggArlDLyO6E5q7qJW5vkdDLK3GD mpirrWzNcLYMM7aRoNSZ/1ci/siwoyQvIbY2slz2nUb8hIyg/nOOXYGpAMPV+K2d +SCmqIaOo+vhMcQkdaJlZul+/WE/ly3SpdmXj2537ArpUmne10imS9Jw/5A9gXfX W1EkgH3FdikNkOQml8f8SqxO0SAzV2Hcy2kqsbA1kb9S5Z5TI4xSZdNmOC5s+x8l eU73albqeVh3iOE/JQyeae2TdsdOxFl1Uo0cuIua3BF3QF3C0epOp78U1CrXNAsz NvQgN30+52CCVF+LmROh2onlLT5WdyvzPrxkxbPCetGnDZhDqgSfpBrq43SFAA== =HG9O -----END PGP SIGNATURE----- --=-=-=--