From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SOB4HXZpG2EYVgEAgWs5BA (envelope-from ) for ; Tue, 17 Aug 2021 09:47:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aCErGXZpG2E8egAAB5/wlQ (envelope-from ) for ; Tue, 17 Aug 2021 07:47:02 +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 DFE7D24164 for ; Tue, 17 Aug 2021 09:47:01 +0200 (CEST) Received: from localhost ([::1]:52966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFtoK-0008A9-Ub for larch@yhetil.org; Tue, 17 Aug 2021 03:47:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFtnu-0008A0-Al for help-guix@gnu.org; Tue, 17 Aug 2021 03:46:34 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:43634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFtns-0004K7-Sm for help-guix@gnu.org; Tue, 17 Aug 2021 03:46:34 -0400 Received: by mail-wm1-x32f.google.com with SMTP id k5-20020a05600c1c85b02902e699a4d20cso1512343wms.2 for ; Tue, 17 Aug 2021 00:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=Al+qodDp2WY3xh88PjibVig8yqLCA9ziEMH6zcSAsJA=; b=pEKQSJp/lG3Vc4WLAJa9xg6zcX7zKzB+qf0SFycCx2bVrjFO8xN7NSMxBdf9vPGWd+ FUV9Yl560nSHFMd6J/Z3+L1TNVZSzrpCwfkEj68AClXlnEC3hDJh0OeuNwG08yMKryfA 2WGmNewvKRGvZdnSS6rqW3qmntYt2iNMhNteo7ccx+S2f8ceTPYBNMpNy9E0X73q3/Jk EwhubwWXAlpen0ISP9wOaPfjjtAWCL+AWeqf1yDmZFN5QcPR+QLPWrYIaJ+jbOgWSQfa kj3IeQQRLEL3Z9ec+pWlV1mync9swQAp7GiRPDaGBnyn8rVEHo0NT01Hj3NRRi0Ksh45 kgcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=Al+qodDp2WY3xh88PjibVig8yqLCA9ziEMH6zcSAsJA=; b=aqFTib2befPB81UjMQhmyWVR0Reqw2Q/a1DyB3TaWI2iEq/uc7LIzqfwUaJj6z2cbh O4HmPfFjxQjqLuokrStCqp427mqeq1YJ5BohqWe3NK6PviBIQkwDqQ2zDPKfMWJl7xsN BnlJd7ODSkBcSq+d7Gm0rX1AXW4PvfWBlZG9zJC/z/B9ElH+d064a5kcizTn5PnVgC9s 0XiRzUtxgVIWvtlVBTThZt4ydINfNiEAjL17KThDcBtaDqQeAmp6UReu9MvFWtpZDItD tDTwz+UyxooTIVJmzEPaBVqHw5X1f4bgvrR3G+ZBXBGzxLrFNpr2sJPmg7fABFytFIo4 +0qw== X-Gm-Message-State: AOAM5308NJpebN58t8NfZPMLgl3yLAZ+nwb9hcsgNkID9c2MhOtPMT6L Wf2wOjmjVcRblDKv9kxt/AGi+amPOA/y1g== X-Google-Smtp-Source: ABdhPJzjqABV+9jq8WR2nV/cCMGPQZ6wPX7WhdMijfR7AOcgvzLVR7ic/Zj/I6LM+se+qIK4Qw+ZHA== X-Received: by 2002:a05:600c:3b98:: with SMTP id n24mr1923391wms.11.1629186391047; Tue, 17 Aug 2021 00:46:31 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id n3sm1227617wmi.0.2021.08.17.00.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 00:46:30 -0700 (PDT) From: zimoun To: Ricardo Wurmus , Philippe SWARTVAGHER Subject: Re: Package variant defined in manifest not visible by Guix In-Reply-To: <87eeath300.fsf@elephly.net> References: <12b2c37e-7389-d46a-8938-51b3285fd97c@inria.fr> <87eeath300.fsf@elephly.net> Date: Tue, 17 Aug 2021 09:17:09 +0200 Message-ID: <86czqcpmkq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32f.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629186421; 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=Al+qodDp2WY3xh88PjibVig8yqLCA9ziEMH6zcSAsJA=; b=TnvXjJHiR0gC1MjBcZsVXr76oTci9vqMch/pWjriThyiVi3NwJph3cikmsQgtOUNo+jVXn Q+nWmEBeOH0/FMgwivMI8P64GY9Mr0ZvLEa9i+ZTIRk3wR/EWP5/DjP9nVDTCXgnstARbw nslJO2RnprnmORKTwe+byp/z/31f4ac3+7v3NXfBrynfyJ1q1M7iOjjmDTjXBnkEFW+cPh qhq+Z/R+ebTikPc76I+YZGzikpp+FdPTbE9SBNDFLjyNVUNYHarLV8k1V+tRG2a2iAxpjQ +CSQnBB5JoMmEOpAUejnYs3BwdXQj7dv7CmC+f3eB69Nce7IcJnYQKLxmgxhdw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629186421; a=rsa-sha256; cv=none; b=Tbw3vjcshW64/7eo8AB1yu1eUEPmkQZiulUWZS3RYx8/G1XjCww7BxYUdmqfja9/R9gdjF sjeBEVVF9oAloOs1y2BMsfpDbKFQNJps/A4v3AxnaLHLDy6EJj0kv5kxbFj5B0asCo8vNK bOC1qR6+MktrH+yV1CMgCSXET5YmMs+bp8ne9zuZ0UhtROGxdDKkmTtUwbEIlkB8jtmStc /QhOO4qcLP8cV9+iUFXmNv4gcS3RHcp+lBJ6LahQSivEpu66JrHiUbcXXWNrg1wuRyn/eC BibNei8aUD+xAC/+wdhFlqCBmsHJ3IITxzYRfH4WJOKUd+ri+DAiuB0fMfDfxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="pEKQSJp/"; dmarc=pass (policy=none) header.from=gmail.com; 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.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="pEKQSJp/"; dmarc=pass (policy=none) header.from=gmail.com; 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: DFE7D24164 X-Spam-Score: -3.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: klX1OnBJ7jzo Hi Philippe, On Mon, 16 Aug 2021 at 16:34, Ricardo Wurmus wrote: > 3) Create a module and use it however you want. [...] > Put this in a file =E2=80=9Cmy/packages/storm.scm=E2=80=9D and then set t= he=20 > GUIX_PACKAGE_PATH environment variable to the directory containing=20 > =E2=80=9Cmy=E2=80=9D (e.g. $HOME/code/guix/custom containing=20 > $HOME/code/guix/custom/my/packages/storm.scm). Do not miss the CLI option =E2=80=99--load-path=E2=80=99. Instead of setti= ng the environment variable GUIX_PACKAGE_PATH, you can also do: guix build --load-path=3Dmy/packages/storm.scm > Note that you haven=E2=80=99t overridden the =E2=80=9Cname=E2=80=9D field= of the original=20 > =E2=80=9Cstarpu=E2=80=9D package, so on the command line the package cann= ot be=20 > distinguished (unless you use =E2=80=9C-e '(@ (my packages storm)=20 > starpu-maxnodes1)'=E2=80=9D). Do this to also change the name on the=20 > command line: > > --8<---------------cut here---------------start------------->8--- > (define starpu-maxnodes1 > (package > (inherit starpu) > (name "starpu-maxnodes1") > (arguments > (substitute-keyword-arguments (package-arguments starpu) > ((#:configure-flags flags '()) > `(cons "--enable-maxnodes=3D1"=20 > ,flags)))))) > --8<---------------cut here---------------end--------------->8--- In the initial error message, the package is unknown because the package name =E2=80=99starpu-maxnodes1=E2=80=99 does not exist, it is the name of t= he symbol. And the symbol =E2=80=99starpu-maxnodes1=E2=80=99 has the name =E2=80=99sta= rpu=E2=80=99. Does it make sense? Cheers, simon