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 >