From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Subject: bug#31956: guix environment: add option to download and unpack source Date: Sun, 24 Jun 2018 21:20:13 +0200 Message-ID: <20180624212013.6afadf07@alma-ubu> References: <87tvpsngwm.fsf@aikidev.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/sMsjE7MF3V_TK1sMGyjwdtq"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXAZN-0001iU-Ao for bug-guix@gnu.org; Sun, 24 Jun 2018 15:21:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXAZK-0000tG-2p for bug-guix@gnu.org; Sun, 24 Jun 2018 15:21:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54433) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXAZJ-0000t4-Uk for bug-guix@gnu.org; Sun, 24 Jun 2018 15:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fXAZJ-0005BT-J6 for bug-guix@gnu.org; Sun, 24 Jun 2018 15:21:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87tvpsngwm.fsf@aikidev.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Vagrant Cascadian Cc: 31956@debbugs.gnu.org --Sig_/sMsjE7MF3V_TK1sMGyjwdtq Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, 24 Jun 2018 12:06:17 -0700 Vagrant Cascadian wrote: > I've a minor feature request. >=20 > When working on new package definitions, it's often useful to debug > build failures with guix environment. >=20 > The current implementation, as I understand it, requires manually > downloading the source, and merely drops you into whatever working > directory you happen to be it. >=20 > It would be great if there were an option you could pass that > downloads and unpacks the source somewhere and drops you into the > newly unpacked source directory. >=20 > Not sure what to call it exactly, but something like: >=20 > guix environment --with-source hello >=20 > Should drop you into an unpacked source directory with the inputs and > such for building "hello". Hi Vagrant, if you need this in the case of build failures, use the "-K" option: https://www.gnu.org/software/guix/manual/guix.html#Common-Build-Options --keep-failed -K Keep the build tree of failed builds. Thus, if a build fails, its build tree is kept under /tmp, in a directory whose name is shown at the end of the build log. This is useful when debugging build issues. See Debugging Build Failures, for tips and tricks on how to debug build issues. See also https://www.gnu.org/software/guix/manual/guix.html#Debugging-Build-Failures For the case that the built went through OK, there is no such option. You could raise an exception at the end of your package definition/build phases. Also there is the -S option to build: guix build -S builds the source of your package. This will download the package, verifies the checkum applies patches and applies snippets (i.e. rules to remove for example binaries or other non-free-licensed parts). Bj=C3=B6rn --Sig_/sMsjE7MF3V_TK1sMGyjwdtq Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlsv7u0ACgkQvyhstlk+X/3Q7gCfXY0gNl9dA5rwaBdp3GxugXEC xSsAn2iFUIz5TUd6UpcxYO9wZg/K5Zxu =NE91 -----END PGP SIGNATURE----- --Sig_/sMsjE7MF3V_TK1sMGyjwdtq--