From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oAMSJyP9m2FgRgEAgWs5BA (envelope-from ) for ; Mon, 22 Nov 2021 21:27:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QPTGIiP9m2FaNQAAB5/wlQ (envelope-from ) for ; Mon, 22 Nov 2021 20:27:15 +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 65D2430728 for ; Mon, 22 Nov 2021 21:27:15 +0100 (CET) Received: from localhost ([::1]:40982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpFuE-0002hc-G1 for larch@yhetil.org; Mon, 22 Nov 2021 15:27:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpFu3-0002hN-W5 for guix-devel@gnu.org; Mon, 22 Nov 2021 15:27:04 -0500 Received: from [2607:f8b0:4864:20::730] (port=36559 helo=mail-qk1-x730.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpFu2-0006GR-9V; Mon, 22 Nov 2021 15:27:03 -0500 Received: by mail-qk1-x730.google.com with SMTP id i9so19512631qki.3; Mon, 22 Nov 2021 12:27:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=PDKCmmQOx8+aDFf9kuR6JG8Xt7jri15B9XFL509eFNM=; b=Y3MZn2wGfQqp9T1eltKpN0V8ZGuNI8un0azfAegLBwJgpGXnR/qE3ocxC2ORIG+wfi oiK1m46GLyF+8WniFr9HbDVneuy/OfRMyX1XgCSUWASNBqMN6moiWVxjTB3VyQL+xtZK LmQctqE0xcgMNiDUDuViz40BUr0hLPJq/ImnvOBDr+i1bcwZxcCz343HTgOb6t3uH7hn nVmfD7dyOGHUvvROOHnKjOWUC9QFpJGqfo5YOSkwzhuYXww5b0WIoTDJaSCj1PVe8tK+ jvoD6+3ObR2qCd2nA/eKpuQRnc1Tnym098FCxmp8htz/FZb2vMYvGBXpdcFwYRUqSvvo dmGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=PDKCmmQOx8+aDFf9kuR6JG8Xt7jri15B9XFL509eFNM=; b=V33LSu8elBrVxwwXQ7LN/02Jc813hlUDX26nEhrceiJ1ECbjRkX9jnC1scDTHGOeL3 zroBIWithf98hMKEJcFHGgDr7yC3PN0s9LfQ2sSlraxfDZ2c7bNayEDtR06FhcqG+l12 cItgqQQMdOKlxP/B0hJLQkN8P0FNfJQAREW7oLnKo3xw6QBsecIaFZgBfsp8VlWi4i+6 BG7XjJrv10Zbl0dqKeJocow4tdhVoljo0CnR7MG8ZrTym+BWDnVemhDz+Zmpxis98lta HWv3FANM0nFsmtoVXT4laXGsv2kKsOgSYGLwy0pMWvkdsGoD9lX6Ba2EPuoMM93smRRL Ec9Q== X-Gm-Message-State: AOAM5301FJc/t5Mn1pnQl6w9z7LAYshrwf/uYpKi+MlMjluINQEOgASI Ox8CWEwc9nIlttNsxhDPOcOwpw/nUIaYZA== X-Google-Smtp-Source: ABdhPJwl8tFjn6SQVeUUJE56zQ191RV1cJv7S0i1niHKU6V2ScdwAQndktLAFpr3Q2kDih/L4BbITw== X-Received: by 2002:a05:620a:131b:: with SMTP id o27mr52759052qkj.330.1637612820958; Mon, 22 Nov 2021 12:27:00 -0800 (PST) Received: from hurd (dsl-149-45.b2b2c.ca. [66.158.149.45]) by smtp.gmail.com with ESMTPSA id t9sm5054407qkp.110.2021.11.22.12.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Nov 2021 12:27:00 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Replacing polkit by polkit-duktape on core-updates-frozen ? References: <87k0hetuty.fsf@gmail.com> <2505829.NYjHvEFHQz@popigai> <87v90rxcnr.fsf@gnu.org> <87mtlwc175.fsf@gmail.com> <87a6hwnwqn.fsf@gnu.org> Date: Mon, 22 Nov 2021 15:26:59 -0500 In-Reply-To: <87a6hwnwqn.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 22 Nov 2021 14:30:40 +0100") Message-ID: <877dd0aqcs.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::730 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::730; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x730.google.com 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=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: , Cc: guix-devel 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=1637612835; 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=PDKCmmQOx8+aDFf9kuR6JG8Xt7jri15B9XFL509eFNM=; b=UErKzoT4rko1qOmutTJEurYDfm/pBEkTYUoh7tq7TXXUih7OhHTb1iN/+Zf94r1NTo+/uA H3yv5viqnYgtSFW6pbGqRzJc255+BiuIJyXCMZvOYM9QSqCR8Y+xV1j+AWVUaf+H8qNdwR 1Ettn/EZWBixP+D1lUqPcmYmG0CfD752tMNgoGeCHUOJl5Her/F8KYQgRCT2qMDxNqA/cs lPIiCH3vWbDU6gwBEqh6mMXa2LAPJVkN7yfk6ry6HUQnJfIQEyU+JawRqpauWTYBbU5H5x QSzDmlprMElLAQeXZdbxPfX9wkB1gOYTDgb97Zv8BwDMdEa9TWZ41ezD4Qy3jg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637612835; a=rsa-sha256; cv=none; b=jJKJI+N4PX/OZd+5E2X96g9LoVf/9ILtYJr86OdsTxRFIwfsBBV56eNKxobd3yO5qICBQn uOOu1VJ7WbCjEbnlaZjK63S6Gi0nsxMF86gPTaw9EKQ0bAdftisVeGq32Unyc+2qSkQiYr O0x1fTimN0Ph2/aY7SKC81jN40F4gYx2qi1FLja5H219N12hye9eXPoyY6gaQXmXPSUqQl euFj2oVOGWgs1C63ZAqDH3H9f67V7AD26dCFTyg0OZJN5LxV4MsYOVC1GxEvyXJaNVekad otpDPx39gYrUwcstRPQbcsq1f423brB9a7MaiLBe5UpWSfrlVysViNxQPzP2Zw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Y3MZn2wG; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -0.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Y3MZn2wG; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 65D2430728 X-Spam-Score: -0.78 X-Migadu-Scanner: scn1.migadu.com X-TUID: TJ9wUpETey2F Hi Ludovic, Ludovic Court=C3=A8s writes: > Hi Maxim, > > Maxim Cournoyer skribis: > >> +;;; Define a top level polkit variable that can be built on any of the >> +;;; supported platforms. This is to work around the fact that our >> +;;; mrustc-bootstrapped rust toolchain currently only supports the x86_= 64 >> +;;; architecture... >> +(define-public polkit >> + (if (string-prefix? "x86_64" >> + (or (%current-system) (%current-target-system))) >> + polkit* >> + polkit-duktape)) > > This would instead have to be a macro, similar to the =E2=80=98pkg-config= =E2=80=99 > macro, so that (%current-system) is checked at the right time rather > than when loading this module. Thanks for tipping in! > However, since the only different between polkit and polkit-duktape > (IIUC) is that an extra patch is applied for the latter, I would instead > suggest adding a conditional build phase that applies the patch on > non-x86_64 systems. I'd still rather keep the distinct package approach, so that x86* users may still find about polkit-duktape and use it instead of polkit (via input rewriting) if they so wish. Thanks, Maxim