From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id szoKEpbLHGFQ9QAAgWs5BA (envelope-from ) for ; Wed, 18 Aug 2021 10:57:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GFYgDZbLHGGYXwAAbx9fmQ (envelope-from ) for ; Wed, 18 Aug 2021 08:57:58 +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 963E119D64 for ; Wed, 18 Aug 2021 10:57:57 +0200 (CEST) Received: from localhost ([::1]:53434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGHOW-0004Ry-8q for larch@yhetil.org; Wed, 18 Aug 2021 04:57:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGHOM-0004RT-Vm for help-guix@gnu.org; Wed, 18 Aug 2021 04:57:46 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:30953) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGHOK-0001kp-Lj for help-guix@gnu.org; Wed, 18 Aug 2021 04:57:46 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3APoyZFKEyQV0kO8YUpLqEMseALOsnbusQ8zAX?= =?us-ascii?q?PiFKOGFom6mj/PxG88516faKskdpZJhNo7q90eq7MAvhHOdOkOss1O6ZLWzbUQ?= =?us-ascii?q?iTXftfBOnZogEIcheWntK1s50PT0EUMrHN5DZB4PoTzWKDYrUdKPXtysCVbeG3?= =?us-ascii?q?9QYLcelvA5sQizuQXW6gYzZLraJ9dPwEKKY=3D?= X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="524305019" Received: from unknown (HELO [193.50.110.198]) ([193.50.110.198]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 18 Aug 2021 10:57:39 +0200 Subject: Re: Package variant defined in manifest not visible by Guix To: help-guix@gnu.org References: <12b2c37e-7389-d46a-8938-51b3285fd97c@inria.fr> <87eeath300.fsf@elephly.net> From: Philippe SWARTVAGHER Message-ID: <292c1173-3ff6-47b0-2da0-487ef491a133@inria.fr> Date: Wed, 18 Aug 2021 10:57:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <87eeath300.fsf@elephly.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: fr Received-SPF: pass client-ip=192.134.164.83; envelope-from=philippe.swartvagher@inria.fr; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -61 X-Spam_score: -6.2 X-Spam_bar: ------ X-Spam_report: (-6.2 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-1.961, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-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: , 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=1629277077; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=FYlTG24UcjbvjHZdsIzkbLaSa06jW9SKn5XCMnpWdfg=; b=idTjqEPdMva7vi8VNoG41qOKBbanmUn2L44lDq9vDWuQO93OvOAT4bEayLi7FqEyXc39/E l0KCnIHv3+dwAtzIfuC2g8pIyERdd4gdR1YxCnNvYmmxNzmeZpNqepir/tl/FnJpjP170M vmz9OaYE9/8Ov8SckK+DbjKMT1X8x/P0sAIJaeewf+peaDNTP96PqC3HpSjEiseeWbx+3W QnEM74SM135a7BRVr/aRZiXfQ4vxOy4fJSD7aGOfUHQ5jxMwapZmvLcNSduDkV/bdVf8M+ S33yrI2HOZxS74d+HpVLWSRxd2sjrV17mfU4lC3AiIquct4YvwucNf/6FqHt+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629277077; a=rsa-sha256; cv=none; b=f4KVZ1yv+wtNFRTeAH8QWXpJ43ZdMBCFU6Kkq/lRYBHIrx6v2ZTUXdhZ62tM5uHAIQLJtn 8dkAc2wtuYLHHCee+gKuLnvCNp1RdXlOmnjHWegt3HZV6t20ubV58kSqSN7aIlEyMpxNr0 4ovFuCuo7EZSl3e81gMlhZUL622kMpFKMYQ6ap2+Iy2Fcyt7vrs/M7Oh0vSk8KRrm+QyUE VAx/r9fAG4UbDs7KfwitvsHgTxhHXjhLI3QZM4k/9xRETbujdKZCg5azcizFTIpG6KQXhp Jo5DnoyQl3I+ZOBVlJVKF6cm2N6OCzvuqzsUDtaMGaBOnInakL29XA1sfHQO4w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -2.42 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 963E119D64 X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: c+c8vxwHV6d/ Hello, Le 16/08/2021 =C3=A0 16:34, Ricardo Wurmus a =C3=A9crit=C2=A0: > There seems to be a small misunderstanding.=C2=A0 You defined a package= > variant, but that=E2=80=99s not a manifest.=C2=A0 A manifest describes = the complete > contents of a profile; i.e. it=E2=80=99s a list of packages that Guix s= hould > install. > > Here are three different ways that should work for you: > > 1) Build a single package from a file. > > Now we can build the package specified in the file: > > =C2=A0=C2=A0 guix build --file=3Dthis-file.scm > > > 2) Build a whole manifest from a file. > > Here the file must evaluate to a manifest value, not just a single > package. Ok, I was missing the line to evaluate to a manifest, instead of a single package. > Then build the profile from the manifest file: > > =C2=A0=C2=A0 guix build --manifest=3Dthis-file.scm > > > 3) Create a module and use it however you want. > > You can make the custom package available to any Guix command by > putting it into a Guile module and then informing Guix about the > module.=C2=A0 This is a little more effort as you need more boilerplate= > code to define the module (and the file name needs to match the moule > header, etc). > > Hope this helps! Sure, it helps ! Thanks a lot ! However, I still have some questions: - I don't really see the difference, or more precisely: the difference of goal, between defining the package in a simple file (solution 1) and using a manifest (solution 2). - The following command builds the package as defined in the *file*, without running tests: guix build -c 2 -f starpu-maxnodes1-file.scm --without-tests=3Dstarpu-maxnodes1 So package transformations seem to work. However: guix build -c 2 -f starpu-maxnodes1-file.scm chameleon --with-input=3Dstarpu=3Dstarpu-maxnodes1 --with-input=3Dopenblas=3Dmkl --without-tests=3Dstarpu-maxnodes1 doesn't work: starpu-maxnodes1 is an unknown package... The same happens if I use a manifest instead of a file to define starpu-maxnodes1: guix build -c 2 -m starpu-maxnodes1.scm --with-input=3Dopenmpi=3Dnmad --without-tests=3Dstarpu-maxnodes1 works (without running tests), however: guix build -c 2 -m starpu-maxnodes1.scm chameleon --with-input=3Dstarpu=3Dstarpu-maxnodes1 --with-input=3Dopenblas=3Dmkl --with-input=3Dopenmpi=3Dnmad --without-tests=3Dstarpu-maxnodes1 doesn't. I guess I have to put all transformations of several packages in a single manifest, one cannot combine manifest and CLI options; packages defined in manifest aren't available for use in CLI transformations (although the working --without-tests seems to be a counter argument). Am I right ? Thanks again for your help ! --=20 Philippe SWARTVAGHER PhD Student TADaaM team, Inria Bordeaux Sud-Ouest