add '--target=' option for 'guix environment' (similar to 'guix build')

  • Open
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Sergei Trofimovich
Owner
unassigned
Submitted by
Sergei Trofimovich
Severity
wishlist
S
S
Sergei Trofimovich wrote on 1 May 2017 13:35
(address . bug-guix@gnu.org)
20170501123535.70f960a5@sf

Currently 'guix build' supports '--target=' option to allow cross-compilation,
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=alpha-unknown-linux-gnu --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=alpha-unknown-linux-gnu --no-grafts

Thanks!

--

Sergei
-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQSZKa0VG5avZRlY01hxoe52YR/zqgUCWQcdiAAKCRBxoe52YR/z
qt8eAJ9vfK3PEZoyBvN+V2lDFczZixnhwQCfTWJx6d+dvU7YKhf6U+loF+KL7mI=
=L0zn
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 3 Feb 2020 21:54
control message for bug #26732
(address . control@debbugs.gnu.org)
87sgjr1jem.fsf@gnu.org
severity 26732 wishlist
quit
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 26732@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 26732
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch