From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cATDImsOw2PC3QAAbAwnHQ (envelope-from ) for ; Sat, 14 Jan 2023 21:19:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OCvFImsOw2PrkQAA9RJhRA (envelope-from ) for ; Sat, 14 Jan 2023 21:19:55 +0100 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 357783DE7F for ; Sat, 14 Jan 2023 21:19:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGn04-00066T-P2; Sat, 14 Jan 2023 15:19:36 -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 1pGn01-000666-2g for help-guix@gnu.org; Sat, 14 Jan 2023 15:19:33 -0500 Received: from lepiller.eu ([89.234.186.109]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGmzy-0001al-Oq; Sat, 14 Jan 2023 15:19:32 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 24960a61; Sat, 14 Jan 2023 20:19:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=Loq/G1a2nNn1 pGByMnG0fa2LQYycp3r7MfzsUMmzpiE=; b=gagfOHfKrM42R8f0SvCyPoQb9N4v 7/JcAaEX8Eao7aiQ3/59V9GgWhf3i76s4+XtLT1lwxrWRz+SHKmTZMsckxQChY76 izA4tcgyGU14dnQcciDgrMhVWbM2C2l0IpaGDP1oLRCMv6ZE4umV8G+96b4H3R51 s5XSd8xS6rN3dMzwiJufaPYGokODNsbve+3c+MvqNjmIdw0scAssa33OFFjNKQEQ cEe+fxm0ZAPdq6S9Ogt5OzCSKkD4VQqofeqhfFr5KOzP1fRueIQjR1KU7qkUpapq MTdPyKVQFc0ToPINWLnRshLsabwkGzl4vEmPTlun32+WQQED/juVVqmAQA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 9f324f50 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 14 Jan 2023 20:19:20 +0000 (UTC) Date: Sat, 14 Jan 2023 21:19:19 +0100 From: Julien Lepiller To: phodina , help-guix CC: =?ISO-8859-1?Q?Ludovic_Court=E8s?= Subject: Re: Guix supported-systems option User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <006ACFAA-0D67-4B5B-9A2B-001A075EAD39@lepiller.eu> MIME-Version: 1.0 Received-SPF: pass client-ip=89.234.186.109; envelope-from=julien@lepiller.eu; helo=lepiller.eu 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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673727595; a=rsa-sha256; cv=none; b=OHkpAqDH/s6CM8Pg0FI9OdeLM1PScXAFyk6hZ3LMvVcnp5KLNmb/To1fyMomPMDdxkiOjT 9bBtnfCTYuUsb9FshZKYpuOS4ZP9PoPXC3Fp5WIeUDkCHKxqDLGPt+RimvMuBk0eCCO7Xv q2xhlC9ILTfObNHhTFzGNjZXlRDj2Wu6ZLglFT5UPOTB5y6q0cD3cRJrmaBKD0tNEfNSRt a0CAkEkO9bQWzq+jPeZ3qlnyzWjz6/q4LYLiBpA5gG0UKQjNiNPCkrGPShQ2HWHqLpM6Hv H0R290EBUZOGVZG7t3qWjhIa4554kjMY2n8dM1nyQ3nxaKyWvemEXh7ATxdm8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b=gagfOHfK; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673727595; 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=PiYV9DSejtZX8vDW9jAPzPttiLmFgF+SAeRxqfjQZE4=; b=BUmmPh8zGZFKoke++Vok+Mvx6mUWyMJW93TJDrHC05ILJ3x6Ab/NespQfBRKMGLgqRh/kP hTGU4dTHSAM4mD8gBYEpWFRhW1uBxjWObn7z2jkZBqi/tqsA7rpbw0sNLxIHFlU4VMyFvY +2rV6O83blPPu1LxK7kQtXWDBaSEnJEsuMFMOB4fnN+oqn/joDK2Qn5UOiwYzMUc7LfUsK uvHmOKZzPC+OpFog7shQyMKIdwCfk5G3k//LujeUkfqaXqGZAsDyyG2hKHsHuaD9+ePoDJ DwfsOP7spTc+u9Couv1gwBhVYIHxd5q974iud92CqFLf84X/kOEjuoJMYpG9Rw== X-Migadu-Spam-Score: -1.81 X-Spam-Score: -1.81 X-Migadu-Queue-Id: 357783DE7F X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b=gagfOHfK; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none) X-TUID: HuXAYbJ2ttV2 I think you have multiple packages with the same name and version, but diff= erent supported systems=2E Am I right? If that is the case, then guix will select a package based on the specific= ation you give it, so if you give a name, it will select the package with t= hat name and the highest version available=2E If multiple packages match th= is criteria, one is selected arbitrarily=2E Now, supported-systems does not mean "remove this package on other archite= ctures", but rather "can't build this on other architectures"=2E So it's pe= rfectly possible that guix will arbitrarily select a package for a differen= t architecture=2E I can see two solutions: as you mentionned, get source depending on archit= ecture, that way the other architecture packages are not defined=2E Another= possibility is to append say -x86_64 to the package name=2E Does it make sense? Le 14 janvier 2023 20:33:13 GMT+01:00, phodina via a= =C3=A9crit=C2=A0: >Hello, > >I have recently uncovered a "feature" that works little bit than describe= d in the manual, > >During definition of a new variable, package, there is an option called s= upported-systems=E2=80=8B which defaults to %default-systems=E2=80=8B=2E > >However, if the package is known to work on certain architecture the righ= t thing is to list the supported architectures, right? > >If I select package which is not supported by my current architecture and= build it I get notification like this one: >`warning: package grafana@9=2E3=2E2 does not support x86_64-linux` > >So suppose I have the same package for different architectures, each has = it's own unique tarball=2E > >I've defined one package and inherited from it, changing the source=E2=80= =8B for the other and selecting the correct supported-systems=E2=80=8B=2E >Unfortunately, this approach fails as Guix does not select the right pack= age I want to use on the current system=2E > >So should the approach be to define just one variable for the package and= then conditionally select the right tarball/git for the package? > >Also is this considered bug or a feature? > >FIY I know the right way would be to build Grafana from source in this ca= se which would solve the issue I just wanted to know in general more about = the use case of the supported-systems=E2=80=8B option=2E > >---- >Petr