From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Trofimovich Subject: bug#26732: add '--target=' option for 'guix environment' (similar to 'guix build') Date: Mon, 1 May 2017 12:35:35 +0100 Message-ID: <20170501123535.70f960a5@sf> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/JUMRnXuHZk.NTLr4h2s90jU"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d59da-0002PX-0C for bug-guix@gnu.org; Mon, 01 May 2017 07:37:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d59dW-0000xI-SU for bug-guix@gnu.org; Mon, 01 May 2017 07:37:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:50391) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d59dW-0000xE-Oh for bug-guix@gnu.org; Mon, 01 May 2017 07:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d59dW-0001gp-Id for bug-guix@gnu.org; Mon, 01 May 2017 07:37:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d59cU-0001uJ-Ft for bug-guix@gnu.org; Mon, 01 May 2017 07:35:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d59cR-0000P8-BH for bug-guix@gnu.org; Mon, 01 May 2017 07:35:58 -0400 Received: from smtp63.i.mail.ru ([217.69.128.43]:47950) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d59cQ-0000NR-W3 for bug-guix@gnu.org; Mon, 01 May 2017 07:35:55 -0400 Received: from host86-128-188-209.range86-128.btcentralplus.com ([86.128.188.209]:38640 helo=sf) by smtp63.i.mail.ru with esmtpa (envelope-from ) id 1d59cM-0006ye-Fu for bug-guix@gnu.org; Mon, 01 May 2017 14:35:51 +0300 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: 26732@debbugs.gnu.org --Sig_/JUMRnXuHZk.NTLr4h2s90jU Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable [ context: https://lists.gnu.org/archive/html/guix-devel/2017-02/msg00966.h= tml ] Currently 'guix build' supports '--target=3D' option to allow cross-compila= tion, but 'guix environment' doe not. Sometimes it would be nice to peek at the environment that 'guix build' creates. Concrete example: When debugging 're2' cross-compilation error I used the following command to build a package: ./pre-inst-env guix build --check re2 --target=3Dalpha-unknown-linux-gn= u --no-grafts I was not sure what does g++ vs. TARGET-g++ means in guix. Would be nice to have an ability to get exactly build environment as: ./pre-inst-env guix environment re2 --target=3Dalpha-unknown-linux-gnu = --no-grafts Thanks! --=20 Sergei --Sig_/JUMRnXuHZk.NTLr4h2s90jU Content-Type: application/pgp-signature Content-Description: Цифровая подпись OpenPGP -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSZKa0VG5avZRlY01hxoe52YR/zqgUCWQcdiAAKCRBxoe52YR/z qt8eAJ9vfK3PEZoyBvN+V2lDFczZixnhwQCfTWJx6d+dvU7YKhf6U+loF+KL7mI= =L0zn -----END PGP SIGNATURE----- --Sig_/JUMRnXuHZk.NTLr4h2s90jU--