From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QE7FC3YrMGXkAwAAG6o9tA:P1 (envelope-from ) for ; Wed, 18 Oct 2023 21:01:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QE7FC3YrMGXkAwAAG6o9tA (envelope-from ) for ; Wed, 18 Oct 2023 21:01:10 +0200 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 AE37D58AA4 for ; Wed, 18 Oct 2023 21:01:09 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=Fj1GaTYP; dkim=pass header.d=wolfsden.cz header.s=mail header.b=Y10mRKj9; dmarc=pass (policy=none) header.from=wolfsden.cz; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697655670; a=rsa-sha256; cv=none; b=tz2WmqggzlwHYnbuT8C8JmsMN/Rd5WVWLMXF2nqytPTngiI/um+ezEaOtleOrycECE5L44 nt67qNkiAkcJhH4P2gIWuFPyIkXL/kfe5s6AOVq7hqtFT7pJAKPBU4UgjZWdBtZ/5JCgEt IHPZVzTjAN56ILpO4RyRrBWDu2C+2WHHKDLGQEsFAlOpYRz0/LsmHWBcqzHocuQ2ioC7f3 QRDh8wkGZ8zh/Ro9TjPWi9bGk4IXd0W/Zz+O0/ys2RbQ1pplbz9qJbNUIuKqSetSKoqv3A Sv35qQwTPlMo4pRADcglnkI3m/wkB8B1/9CC40ne9922QztTnl17KVFnKmpvYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=Fj1GaTYP; dkim=pass header.d=wolfsden.cz header.s=mail header.b=Y10mRKj9; dmarc=pass (policy=none) header.from=wolfsden.cz; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697655670; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2Rym9JSFL44+yxVVNXXwILPq8b4teUW8nkYojrAltuI=; b=i8YUiLusHRrjKzA5l3jonawjxF7ssdFZpwn+a0sX+5ou9gEQKzYgoin4nEAl8+SX/mpQiC Ok31F0zpv8t2eKq8/QQHXHX7eosxnAmRgNjNEeylMUA8XpuvPeINx3RmyR80V2w2kizmR0 PcYCLtooX3slR5ARRX9DYjTkYZQ29qTGrz0pBrwPYGiRzK4lSXQi+7MFCZsrYRqRCyHkl7 AeOBlfeuUA3sGJEWFYGkl3VHFz8gaZw3e08duhHdfV7E7tJ3S9Q/7nCIQTvGs9lzX1wlMN Wz+uC6beUCdVBg1h4WlaXfb8LjsFD9JeFDleXaf5FxsohSD8uTkEJOGULAxLaQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtBmb-000670-Iw; Wed, 18 Oct 2023 15:00:41 -0400 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 1qtBmO-00061F-I6 for help-guix@gnu.org; Wed, 18 Oct 2023 15:00:39 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtBmL-0000PT-Uy for help-guix@gnu.org; Wed, 18 Oct 2023 15:00:28 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id ABB8D26E9FD; Wed, 18 Oct 2023 19:00:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1697655622; bh=woVTanliWxq4B0bJNyqUBw0/k6Vp2YLLIwKWC0ivma4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Fj1GaTYPIlvLeGJRtn1jDOy6Zpx7zvxMmHDKVVBKmSnUmF8vGK49Vq4wdRI4rkkM4 9nA36Upphn4EaRbtEWEJeZL9/oY2lMAdaKm3kftKIK1PgnUg4cySEVwuF+abHHiVUC 48SI4cGKwVnJe4aSlxVF2EjKn7Vqrnr9FV+b2SPtTQ54CJVJEmhTbiwHGR4rOKyYdg RnkCBnBC50Tog36bC5/XfwKKcInOlRRvT7CdBAT5OD3EpGT4B6gf12F5CdU5bmPsvU bLBMH3hL18n+sNTBunOT9LGd2KN3uBqyetwSYhaYCmoUsjYHVCRClB41mGxjyPaaOj RXJcJzOuYGOEF06AaYXpL2mQRvLVwSwARzTcoE+MVz/hSQnUhK74Hzjs9r3ww9ufx7 jeNBCVMkmQeM0tbN6lFtiJOmEHBPGoKiW36mo0pEZtDNhYNdj3knYlB0otQ8AqRZ0I /2AaGntrIuGydEPFZLDE8FNqWdH7E9bJLKhObNVvE7Nu5S/Fz+KTP8FSwQ1huzsNht swLyo+0JM7dqzCq85FQ1ibwITN0XZ/BVkl5oXjKvCJCpr9PJFmxkDVd34gWUNmB3R+ WmmWqjas2VOdp596mLJnvOgzCxPr6pU8Xrda2f0dcOThJjF8mH8k8LeFCHoj0nHDMX btvVpFsHt4+8P7I8xFsASOdo= Received: from localhost (unknown [193.32.127.157]) by wolfsden.cz (Postfix) with ESMTPSA id 5B7DA26FD81; Wed, 18 Oct 2023 19:00:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1697655621; bh=woVTanliWxq4B0bJNyqUBw0/k6Vp2YLLIwKWC0ivma4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Y10mRKj9ACAuKxpHSxCx+0wXnrySwlCNMD/8x374tosopQFaRdajiYao1m+2I8rWJ gcQjNuKanMvXFHGbGW/7HpX5HFEci/YinCV+gogK2lz/R1FQ3BeOZd/c8wEvoQDRPs XYoCoqQcU5xO9qJ5VBkM78opZoHocYbfEs2aR7tAMuxqvW6ae+a1/sUKNOvYBRcjBh vQiMbC9SE8nfN7f4Q7LaXy9wZ2hMSc9jsoRjFtFq0+r7eMQp2XP706ixfflUN0g8Cc 0cfzeKBhAdFY9ppMVZeILRnWVFNCrxNqZVms1WfK7Z80CkzHD/49+NX4lsTwWs7J5Y VP7Da0XHmbX0WCpShB2uPO1hmbyX41hTD3y2Oa6ORIpIW2VXimQnklc6+ERlC2Brjt 1mCDsLTKWqnwKUwV+HpxuEGyej4eVd+SedswtegrX4+2qL8a/7g/afMPNcbckMS0F0 zhYWQLHaT970+8hUmkveIV4sI0N09aZ7gebIGFYJrtMxwvjeDZumF2vavjsu6nwmDV 09hDKW/TfCJSdYNf/OVpz7lauLvS4sMu88r2Qmdk8pvRO8DLjy+dwLi/ctlRUSyxM8 0RIQMQ3Vb1xh1dq//5ImDVwyjez4sD6kz9NDFvCkrkKd8Gy2CUq0UP72E2s4fvc9tQ pDf019QvHva7Efyaqn14iXAc= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id c3713f9e; Wed, 18 Oct 2023 19:00:20 +0000 (UTC) Date: Wed, 18 Oct 2023 21:00:20 +0200 From: wolf To: Hiep Pham Cc: help-guix@gnu.org Subject: Re: How to bump a package version locally? Message-ID: Mail-Followup-To: Hiep Pham , help-guix@gnu.org References: <1063470d-1f49-47b2-84fa-cb097055182b@proton.me> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9RbVl7R+wztzucHy" Content-Disposition: inline In-Reply-To: <1063470d-1f49-47b2-84fa-cb097055182b@proton.me> Received-SPF: none client-ip=37.205.8.62; envelope-from=ws@wolfsnet.cz; helo=wolfsden.cz X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -10.27 X-Spam-Score: -10.27 X-Migadu-Queue-Id: AE37D58AA4 X-TUID: C/WGy8yzTFgV --9RbVl7R+wztzucHy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023-10-18 18:24:48 +0000, Hiep Pham wrote: > Hi, >=20 > I want to bump `jsonnet` version from 0.17.0 to 0.20.0 from the master=20 > branch of the `guix` repository. I edited the version in=20 > `gnu/packages/cpp.scm`: >=20 > (define-public jsonnet > (package > (name "jsonnet") > (version "0.20.0") > [snip] > )) FYI You will need to do some more changes, just version bump sadly does not build: $ guix shell jsonnet --no-offload --with-version=3Djsonnet=3D0.20.0 guix shell: warning: cannot authenticate source of 'jsonnet', version 0= =2E20.0 updating checkout of 'https://github.com/google/jsonnet'... retrieved commit f45e01d632b29e4c0757ec7ba188ce759298e6d3 The following derivation will be built: /gnu/store/d5pndfws378w22c7580fm4w517hfrn1r-jsonnet-0.20.0.drv =20 building /gnu/store/d5pndfws378w22c7580fm4w517hfrn1r-jsonnet-0.20.0.drv= =2E.. 63% =E2=96=95=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=89 = =E2=96=8Fbuilder for `/gnu/store/d5pndfws378w22c7580fm4w517hfrn1r-json= net-0.20.0.drv' failed with exit code 1 build of /gnu/store/d5pndfws378w22c7580fm4w517hfrn1r-jsonnet-0.20.0.drv= failed View build log at '/var/log/guix/drvs/d5/pndfws378w22c7580fm4w517hfrn1r= -jsonnet-0.20.0.drv.gz'. guix shell: error: build of `/gnu/store/d5pndfws378w22c7580fm4w517hfrn1= r-jsonnet-0.20.0.drv' failed =20 >=20 > *How do I test building/installing this change locally?* > Here what I tried so far: >=20 > 1. Standing at the root of the `guix` repository, build with: >=20 > guix build -L . jsonnet >=20 > This failed: >=20 > ``` > guix build: warning: failed to load '(build-aux build-self)':=20 > =20 >=20 > no code for module (build-aux build-self)=20 > =20 >=20 > ./build-aux/build-self.scm:19:0: warning: module name (build-self) does= =20 > not match file name 'build-aux/build-self.scm'=20 >=20 > hint: File `./build-aux/build-self.scm' should probably start with:=20 > =20 >=20 > =20 > =20 >=20 > (define-module (build-aux build-self))=20 > =20 >=20 > =20 > =20 >=20 > guix build: All 92 channel news entries are valid.=20 > =20 >=20 > guix build: warning: failed to load '(build-aux check-channel-news)':=20 > =20 >=20 > no code for module (build-aux check-channel-news)=20 > =20 >=20 > hint: File `./build-aux/check-channel-news.scm' should probably start=20 > with:=20 >=20 > =20 > =20 >=20 > (define-module (build-aux check-channel-news))=20 > =20 >=20 >=20 > [snip]=20 >=20 >=20 > guix build: warning: failed to load '(build-aux compile-all)': > ``` >=20 > 2. Followed the contributing guide [1], I created a shell instead: I believe this is the preferred way. >=20 > guix shell -C -D guix git help2man strace > ./bootstrap > ./configure --localstatedir=3D/var I would recommend to use ./configure --localstatedir=3D/var --sysconfdir=3D/etc as described in the latest version of the manual: https://guix.gnu.org/manual/devel/en/html_node/Building-from-Git.html (notice the /devel/ in the path). Your version is from 1.4.0 version of the manual and it has some limitations. >=20 > This generated `pre-inst-env`, but `make` step failed with: >=20 > ``` > MAKEINFO doc/guix.de.info > contributing.de.texi:1659: @menu reference to nonexistent node=20 > `Configuring Git' > contributing.de.texi:1660: @menu reference to nonexistent node `Sending= =20 > a Patch Series' > make[2]: *** [Makefile:5003: doc/guix.de.info] Error 1 > ``` Yes, this happens when you try to build guix source using too old guix vers= ion. So try to run `guix pull' first and then attempt to compile it again. It s= hould succeed. >=20 > So I was blocked to progress further :( > After that the pre-inst-env should work. >=20 > [1] https://guix.gnu.org/manual/en/guix.html#Contributing >=20 > --=20 > Hiep >=20 >=20 W. --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --9RbVl7R+wztzucHy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmUwK0QACgkQL7/ufbZ/ wakqtA/9FqcCIU43glHkuBs4mSEmg2RDvsgjMxJyAqTMXiYMNqtDu/y5KxhPnMeH cu3zYnkkyA+q+2QMDPT5RHggFh6MMzlA16Ds+Tsu4D9LP6a0bqk7WIwqg0r9yv6Y RWuuH/yflLG/zMqmhLOAEXGI/ILPJWUaSc4/RKMxhr4ZPU3hu77BRfA1nc0uobKe B2tseb8OvA5YGutUh2hmEAhSZJndfgEEn8nMKuGvhPcKnSKc6Ar+EiAmsLhanKGt OF9HtBS+8HF/KlypgJgZIXZiakksFzwSdguMeS+8vEPcIW7WMVw1OL3o6JB42e+0 oaPWXUWjsV6TwnKz0GhNa6zDboSQu+fB037YJ5II8KzFJaf/0+957LlaWUpAfTRp +tA2ROHER57FEFCdMzG6J/iRqmx1Dq1VYS4VFIu0Nk7w+NBRVkF22LC8Gxr7od7D gGfYmEUGkFkZvY/M+a8pGk2omv6xu8tea4oApZV6gn6O7wFvNP8LNjdnptgAiq5P MXjDrlCmuE5Mc7vPpT4dAODMhfmjKwGg06AQMINeoGsEzkVVPdxDEYvAk2Ah7YFU 9ySAo80oFzw9mN3IZJa4m1vgdDnBgnNN6+MLoFrRK8OWaxvZOMJo1x/LSGTLlnwA Btdj6346XPmesL/J7XH4oYte20Kolrnj2ZOwn3YXDlTorM2fOao= =y19J -----END PGP SIGNATURE----- --9RbVl7R+wztzucHy--