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 ms0.migadu.com with LMTPS id qCE+L/QGcGHGAQAAgWs5BA (envelope-from ) for ; Wed, 20 Oct 2021 14:09:24 +0200 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 UOLeKvQGcGFLbgAA1q6Kng (envelope-from ) for ; Wed, 20 Oct 2021 12:09:24 +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 71114D825 for ; Wed, 20 Oct 2021 14:09:24 +0200 (CEST) Received: from localhost ([::1]:50472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdAPL-0004FM-EC for larch@yhetil.org; Wed, 20 Oct 2021 08:09:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md4wj-0001eJ-07 for guix-devel@gnu.org; Wed, 20 Oct 2021 02:19:29 -0400 Received: from wilbur.contactoffice.com ([212.3.242.68]:36856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md4wg-0002nn-51 for guix-devel@gnu.org; Wed, 20 Oct 2021 02:19:28 -0400 Received: from ichabod.co-bxl (ichabod.co-bxl [10.2.0.36]) by wilbur.contactoffice.com (Postfix) with ESMTP id E076A2C4C for ; Wed, 20 Oct 2021 08:19:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1634710761; s=20210208-e7xh; d=mailfence.com; i=goshib@mailfence.com; h=Date:Message-ID:MIME-Version:Content-Type:From:Content-Transfer-Encoding; l=3134; bh=pIiedNY/M72cFyd48+zLcdh1C44dXJEcDTY8jGPc3lw=; b=y9k65oPPq6jTdosSd/hJJkZ4b/z44C0TUoI/vfqYXrTahwpSQwG6UxVV31jWWxSn i8kxw6ALC4YSNaTlqwKv2UEdbKOiEHR86TsZu+mtcb/2IJxC2CoIRExhKqxie9FQJYZ eCnCofBmkjyIs9lzxE1c5zvVj0rBuTB3AsyEqqma6ZfV7MgcSi2Zb1uhowaV4/cOL1c l4XJYdQxo8BoDKnasfpkdkb9Jb7+uKrSdDi3ckSuy5Qwng8RqI/DiG/A/zReDvETjZd lAElbpKdOBhQ/KHa0dE20s/x2fMJ9Z/hmvwPmzAMiyXx35epp9Sq3uAE5vpoEYXSbfE kHT2W1E2uA== Date: Wed, 20 Oct 2021 08:19:20 +0200 (CEST) Message-ID: <1052847782.93013.1634710760167@ichabod.co-bxl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Subject: Strange behavior with package input rewriting From: Content-Transfer-Encoding: 7bit To: guix-devel@gnu.org X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:312265105 Received-SPF: pass client-ip=212.3.242.68; envelope-from=goshib@mailfence.com; helo=wilbur.contactoffice.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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-Mailman-Approved-At: Wed, 20 Oct 2021 08:07:32 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=1634731764; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=pIiedNY/M72cFyd48+zLcdh1C44dXJEcDTY8jGPc3lw=; b=YzsQ50F65fLpQNYK6gI7CptDKK5mdsqqTBVRYtFpeCkJfH7LookmZmzoET/JnHzszcAyqp bz6YF20HavAQdEvJYPXaqIYw3rwn3x7uTliNRAgDGB8MAenglLwvuNIOlZ4FZrTPwzJiN/ pBcSWGlwN5y4Ywz6ggAhovJV3DKvy9fLdrL8Fr5mQRUuvcQ/LojEHN8Bgyq/dtsd2bymp4 zWj6oI+t31FYt5Gexvsc3OfPn0g6uBlrH2An71Ck+l6nxicgSVVAWa7OYjC6R48iknxi9+ PwTZbW6LPNsF4ZAEjwuiWpDOVHYHEUvWso7MdsDcykBMYHmbxAR5qtwKryHjGA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634731764; a=rsa-sha256; cv=none; b=WvBZlARFfsVReiBdVZ2KmQtSYi8EPyYIK10hGr9VxToW1QizT1KqYvvCzlut6tcf3Ga6V7 3CV+MaCF2CphLo2+47HXREHpEugnv6SvYPgXCzYOwIrhDOlZinWB2Z1Mcs2uepSqMlXNp7 p/UFg8bYWRMO5SGfmfuudOlNF6MTJfngproJSrp5AOk8qyW7Ifz5WAWFo008sKg/QRhIDY NwaYprYuRMrlPUBXyGLCaT/FtNd7klRXsSjtXS6e9ziUlWkVw5RAjud090Itcfx1Kexx2I 6FJiL6UEo4/UdJNKm+ehQZojsqJK0LSjUAW5/jlDQNVrF7iaH20fFhNo4MAe3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=mailfence.com header.s=20210208-e7xh header.b=y9k65oPP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mailfence.com (policy=quarantine); 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: 6.00 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=mailfence.com header.s=20210208-e7xh header.b=y9k65oPP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mailfence.com (policy=quarantine); 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: 71114D825 X-Spam-Score: 6.00 X-Migadu-Spam: Yes X-Migadu-Scanner: scn0.migadu.com X-TUID: 6Akp/3he50S/ Hello, everyone. I'm new to Guix and Guile and recently started to tinker with package variants. But I have bumped into some strange guix behavior. I'm not sure, if this is a bug or my misconfiguration. Everything started after I had built the full chain of rust compilers from the very beginning (mrust) to the latest version 1.52. It took me several days or weeks. To save disk space, I removed all the previous versions. But then discovered, that packages can depend on previous rust versions. To avoid this heavy recompilation, I decided, that this is the case for `--with-input=` package input rewriting. So, strange behavior #1: guix build jami-gnome --with-input=rust=rust seems to do what I want, but guix install jami-gnome --with-input=rust=rust tries to build all rust packages up to rust@1.45.2 anyway. Generally speaking, all `guix package` commands do not comply with my `--with-input=rust=rust` or `--with-input=rust=rust@1.52` argument. So, I cannot install this jami version directly, but can build it and then install its /gnu/store/... output. But that breaks my package upgrades -- guix will try to reinstall the standand jami-gnome. So I decided to write this package input rewriting in guile, first in a package manifest, then in my own package module. This is where I stuck. So, I have an exported GUIX_PACKAGE_PATH environment variable and some working modules with package variants: bc with readline support (copied from some issue on issues.guix.info) and glibc-utf8-locales with a modified locales list. I write `(package (inherit ) ...` and then just modify the needed package parameters. `guix package -A` and `guix show` show both the original and my modified versions, `guix build` and `guix install` work and use the modified versions. But when I tried to use the construct (package (inherit ((options->transformation '((with-input . "rust=rust@1.52"))) jami-gnome))) from Guix documentation, it didn't work. It seems that `guix package -A jami-gnome` shows both the original and my modified versions, but guix show/build/install doesn't see the modified version and tries to build the full rust chain. Then I discovered, that using package-input-rewriting instead of options->transformation works. This also works: (package-input-rewriting/spec `(("rust" . ,(const rust-1.52)))) Looking in guix sources I found that procedure find-packages-by-name doesn't work. So, poking around it, I created a short example module, that works: (define-module (bc) #:use-module (guix packages) #:use-module (gnu packages) #:use-module (gnu packages algebra)) (define-public bc2 (package (inherit bc) (version "2.test"))) (define var (find-packages-by-name "git")) But if you put the last line before the bc2 package definition, it stops working normally: `guix package -A '^bc$'` shows both versions, but all other guix commands do not see the "2.test" version. So the question: is this a guix bug, or am I writing wrong in Guile? -- Sent with https://mailfence.com Secure and private email