From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4H87KOOJP2ArcQAA0tVLHw (envelope-from ) for ; Wed, 03 Mar 2021 13:06:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SFQSJOOJP2AIRgAA1q6Kng (envelope-from ) for ; Wed, 03 Mar 2021 13:06:43 +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 CBBA127040 for ; Wed, 3 Mar 2021 14:06:42 +0100 (CET) Received: from localhost ([::1]:36252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHRD6-0003Sl-K2 for larch@yhetil.org; Wed, 03 Mar 2021 08:06:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHRCx-0003SY-BQ for help-guix@gnu.org; Wed, 03 Mar 2021 08:06:31 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHRCv-0004hq-DT for help-guix@gnu.org; Wed, 03 Mar 2021 08:06:31 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1614776781; cv=none; d=zohomail.com; s=zohoarc; b=Kdujwew99if1pw2MaXUWxlKkj5tME7Q6UKDxPCn1fZ6ChBrdRkmvh8HsQCMsNNoP6OAWr1sbOSOYFPTUT5XhqoXL4D3SRAvd2rLyNwPzerGxer27HwRIlvcplqihiNCNVfavl/naHJxjYccbgTmUnBneerSR71TYhI5cCliKDMA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614776781; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=VdaAWrMsYpVYazH4FKTvaJOX0MGQuwlXqH3BlMcChjg=; b=M87InZg8Tl6TKPrykJMxUcPYChPB9E9i0HLKPlvlwz3Bkg5W3CHIrVMtbYdCKXkjyMa8XXfh5473Cqz3wNZDcqGJrOI21Fhxd2y0PIl3vKCggFk2+n4fzzgRruko2Y2hC+fdmkiIPnjoQrVa9cRhGfaaD8bEZcKOm8uXzsv60NI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1614776781; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=VdaAWrMsYpVYazH4FKTvaJOX0MGQuwlXqH3BlMcChjg=; b=PHyPHNCEttBW1sofq4NzvHz5V/oyEtAV13CEYd2fjAQvwUbSFwW45veaeCqKBrhr TSOAvEcKpCk0ikjOTunnhRiHlChugkQrCJSrwarWguC0ZftiLLKGiE1RKSYzooXRm67 PKH8SmKhrxuveXabFGYkMgw7rE+S68Ss50a/ZDJw= Received: from localhost (p54ad4c2d.dip0.t-ipconnect.de [84.173.76.45]) by mx.zohomail.com with SMTPS id 1614776776461193.58701571454264; Wed, 3 Mar 2021 05:06:16 -0800 (PST) References: <20210303115932.575aae04@riseup.net> User-agent: mu4e 1.4.14; emacs 27.1 From: Ricardo Wurmus To: raingloom Subject: Re: more than one target service shehperd-root / possible scheme records terribleness In-reply-to: <20210303115932.575aae04@riseup.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Wed, 03 Mar 2021 14:06:12 +0100 Message-ID: <87czwgv12z.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614776803; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=VdaAWrMsYpVYazH4FKTvaJOX0MGQuwlXqH3BlMcChjg=; b=fdhNKrM+agi9IY1LIT1PQ6wirfKkSWZeDsjzlR7SieBWPMbYkKOliOKk6tlrj0N3Ox48jv O0npHldTKxRyzkyzWJxmzVfkR1mS2ipMg7h+86tDYqqXGM/JfVpZ3UB4eflIl+aIkflU/q ol0++F2evX9/6jb1FrgkX68QzmrqcNcr5LsJiyQyN8peZ1npzQw5e4TfssMXclv43IMtSB uE0NDiVxoSDQ5PvLbPIYNTJHVkdaYi5zmzvo+J47KENbV8eSre9pE7GjrNZ0rXu8GlMoRK BSy8iz9SMjRh1iHL2SDBPkE1fXjd8G8uxwgOOZj71ZM7NlHIkqPzueIjgexFMg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1614776803; a=rsa-sha256; cv=pass; b=ZlTL9eWk7DOxENLFE7GO69MS6FNAxpYj0Fih4JGkKpEW2vD0JxcPDb+500WscmX6cEIpdY zOs2Hx7D8ubZYWJEzP5zlXsXXfDP85KRRuJskbq6fvbt/5Q5jv7LnydHlp6Hnd/KIiEyL0 NYFlwEE2y3sL3Ie7iH7YLVtXbPNSpgiQMyqSxA9AQCYJTu0JB4KHsM2Crlw3lPkxqn+5t5 2qSgloCt9OkIZlUDo29nAVsDt5P9t9bkjs6PxT2Ik3JWeBpVxuF4WP/HklETFx0K7veTwP h7p5PVE9hX5sH0xS4xIuts4nSvu7fJ7ELKFOH9MBbjvrcuF9Mb1rOtCq/Z+JvA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=PHyPHNCE; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=PHyPHNCE; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: CBBA127040 X-Spam-Score: -3.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: Rb0QVaz51WlV raingloom writes: > I have an operating-system called bingobongo. I have another called > greg that inherits the bingobongo config. If I leave the services field > empty in greg, there is no issue. If I define it as > (operating-system-services bingobongo) then all hell breaks loose and I > get the aforementioned error and no amount of filtering seems to fix it > becaues then I get the same error but with "profile" instead of > shepherd-root. This is not a very clear report. What filtering leads to a =E2=80=9Cprofil= e=E2=80=9D error? > Now, I don't know what causes this, whether it's a Guix issue or > Guile's record system being... well... kind of terrible No, Guile=E2=80=99s records are fine. =E2=80=9CTerrible=E2=80=9D is a stro= ng word for a wild guess. The issue here is likely that operating-system-services returns all services, including those that are added by the operating system machinery. Since your new operating system would run that same machinery to add root services to the graph you=E2=80=99ll end up with some duplicates. If this is in fact the case then the fix is to either make those root services explicit (meh), or to let operating-system-services return only explicitly listed services, or to add another procedure (or a keyword argument ot operating-system-services) that lets users specify the depth of the result set. --=20 Ricardo