From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David Wilson" Subject: Testing small changes to upstream Guix repo Date: Tue, 08 Oct 2019 06:47:21 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=84d7ef23029f42608763142b33a3f005 Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44733) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHpqj-000699-Rn for guix-devel@gnu.org; Tue, 08 Oct 2019 09:48:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHpqi-00072z-RM for guix-devel@gnu.org; Tue, 08 Oct 2019 09:48:25 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:40755) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iHpqi-00071K-Ej for guix-devel@gnu.org; Tue, 08 Oct 2019 09:48:24 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 6D832235 for ; Tue, 8 Oct 2019 09:48:21 -0400 (EDT) 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --84d7ef23029f42608763142b33a3f005 Content-Type: text/plain Hi all! I've got a one-line change I'd like to make to the XFCE package config with the hopes of submitting a patch. What is the quickest way to make that change and reconfigure my local system to test it out? I assume it might be one of the following options: 1. Find where the Guix repo gets cloned locally and make the change there 2. Clone the Guix repo myself, change the file, and somehow replace the upstream channel with my local repo path There must be an easy way to do this but I wasn't able to find it by quickly browsing through the manual. Thanks! David --84d7ef23029f42608763142b33a3f005 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Hi all!

I've got a one-line change I'd like= to make to the XFCE package config with the hopes of submitting a patch= .  What is the quickest way to make that change and reconfigure my = local system to test it out?  I assume it might be one of the follo= wing options:

1. Find where the Guix repo gets cloned loc= ally and make the change there
2. Clone the Guix repo myself, change the file, and somehow replace th= e upstream channel with my local repo path

There must be = an easy way to do this but I wasn't able to find it by quickly browsing = through the manual.

Thanks!

David
= --84d7ef23029f42608763142b33a3f005-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Testing small changes to upstream Guix repo Date: Tue, 8 Oct 2019 17:33:00 +0200 Message-ID: <20191008173300.0df659d4@scratchpost.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/1FAiw3xxWSajaypNB.df..G"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60608) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHrUF-00026C-Ln for guix-devel@gnu.org; Tue, 08 Oct 2019 11:33:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHrUD-0001wP-IM for guix-devel@gnu.org; Tue, 08 Oct 2019 11:33:19 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:40566) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iHrUC-0001ro-3D for guix-devel@gnu.org; Tue, 08 Oct 2019 11:33:16 -0400 In-Reply-To: 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: David Wilson Cc: guix-devel@gnu.org --Sig_/1FAiw3xxWSajaypNB.df..G Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, > 2. Clone the Guix repo myself, change the file, and somehow replace the u= pstream channel with my local repo path $ git clone -b master --depth 1 https://git.savannah.gnu.org/git/guix.git g= uix-foobar $ cd guix-foobar $ guix environment --pure guix --ad-hoc git guile-readline guile-json nano (env)$ ./bootstrap (env)$ ./configure --localstatedir=3D/var (env)$ make -j5 # Make sure it succeeds. # Lately it was broken for unrelated reasons (po files)--you don't want to # confuse those errors with errors your change could have caused. (env)$ nano gnu/packages/baz.scm # Edit your package or whatever it is (env)$ make -j5 (env)$ exit $ ./pre-inst-env guix build -K blah # On build failure, examine /tmp/guix-build-blah* directory # If you want, install the new package into your profile: $ ./pre-inst-env guix package -i blah --Sig_/1FAiw3xxWSajaypNB.df..G Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl2crCwACgkQ5xo1VCww uqVDGAgAltzXPm1RGGHuwlyKY2E7LQOUKFXBYzb6UVdHLJPbMhXn+hudIp5+2baD /gagZvzbskagEN6KZdTL+YZELRzWtZnOmA/Zb8iHy3R2zwsCSlih/m1u+J9Lu9pH P7vT4MQNOmzlhvrylsCLW8hm/Yv8xcWjmr8k3mrLhxx4mB0df2VguZWXBqFuKoHT eYnZreICRnC7io6V0B6R0pGE/SM2uws5Vqk7uYWYGyjxBJr2+IniXHIQnjAvWGTi q0COKIkGgH76RLdy0xntwp2te5T6jDZH3lgFwh07zBNx44mU2a07Y9UxUtelxsTm c1kvS9kVgXfJDMBblqxuE2dpEN5v4g== =2aiw -----END PGP SIGNATURE----- --Sig_/1FAiw3xxWSajaypNB.df..G-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David Wilson" Subject: Re: Testing small changes to upstream Guix repo Date: Fri, 11 Oct 2019 12:54:47 +0000 Message-ID: References: <20191008173300.0df659d4@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58734) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIuSD-0007VE-0v for guix-devel@gnu.org; Fri, 11 Oct 2019 08:55:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIuSB-0005H3-RX for guix-devel@gnu.org; Fri, 11 Oct 2019 08:55:32 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:40457) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iIuSB-0005Gt-EU for guix-devel@gnu.org; Fri, 11 Oct 2019 08:55:31 -0400 In-Reply-To: <20191008173300.0df659d4@scratchpost.org> 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel@gnu.org Hi Danny, Thanks so much for these steps, they worked perfectly for me. The manual has the necessary commands laid out a bit too sparsely; having them concisely presented like this got me over the hurdle. David On Tue, Oct 8, 2019, at 3:33 PM, Danny Milosavljevic wrote: > Hi, > > > 2. Clone the Guix repo myself, change the file, and somehow replace the upstream channel with my local repo path > > $ git clone -b master --depth 1 > https://git.savannah.gnu.org/git/guix.git guix-foobar > $ cd guix-foobar > $ guix environment --pure guix --ad-hoc git guile-readline guile-json > nano > (env)$ ./bootstrap > (env)$ ./configure --localstatedir=/var > (env)$ make -j5 > # Make sure it succeeds. > # Lately it was broken for unrelated reasons (po files)--you don't want > to > # confuse those errors with errors your change could have caused. > (env)$ nano gnu/packages/baz.scm > # Edit your package or whatever it is > (env)$ make -j5 > (env)$ exit > $ ./pre-inst-env guix build -K blah > # On build failure, examine /tmp/guix-build-blah* directory > # If you want, install the new package into your profile: > $ ./pre-inst-env guix package -i blah >