GNU bug report logs -
#33153
guix environment icedtea
Previous Next
Reported by: Nam Nguyen <namn <at> berkeley.edu>
Date: Thu, 25 Oct 2018 17:26:01 UTC
Severity: normal
Done: Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33153 in the body.
You can then email your comments to 33153 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#33153
; Package
guix
.
(Thu, 25 Oct 2018 17:26:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Nam Nguyen <namn <at> berkeley.edu>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Thu, 25 Oct 2018 17:26:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I want to use guix environment with icedtea <at> 3.7:jdk.
--8<---------------cut here---------------start------------->8---
user <at> antelope ~$ guix environment icedtea <at> 3.7:jdk
user <at> antelope ~ [env]$ java -version
java version "1.7.0_171"
OpenJDK Runtime Environment (IcedTea 2.6.13) (linux-gnu build 1.7.0_171-b02)
OpenJDK 64-Bit Server VM (build 24.171-b02, mixed mode)
--8<---------------cut here---------------end--------------->8---
When I installed to my user profile, I was able to get the desired
icedtea version.
--8<---------------cut here---------------start------------->8---
user <at> antelope ~$ guix package -i icedtea <at> 3.7:jdk
user <at> antelope ~$ java -version
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (IcedTea 3.7.0) (guix build 1.8.0_161-b12)
OpenJDK 64-Bit Server VM (build 25.161-b12, mixed mode)
--8<---------------cut here---------------end--------------->8---
Is guix environment installing an incorrect version of icedtea?
Reply sent
to
Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>
:
You have taken responsibility.
(Thu, 25 Oct 2018 19:08:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Nam Nguyen <namn <at> berkeley.edu>
:
bug acknowledged by developer.
(Thu, 25 Oct 2018 19:08:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 33153-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Thu, 25 Oct 2018 10:25:01 -0700
Nam Nguyen <namn <at> berkeley.edu> wrote:
> I want to use guix environment with icedtea <at> 3.7:jdk.
> --8<---------------cut here---------------start------------->8---
> user <at> antelope ~$ guix environment icedtea <at> 3.7:jdk
> user <at> antelope ~ [env]$ java -version
> java version "1.7.0_171"
> OpenJDK Runtime Environment (IcedTea 2.6.13) (linux-gnu build
> 1.7.0_171-b02) OpenJDK 64-Bit Server VM (build 24.171-b02, mixed mode)
> --8<---------------cut here---------------end--------------->8---
>
> When I installed to my user profile, I was able to get the desired
> icedtea version.
> --8<---------------cut here---------------start------------->8---
> user <at> antelope ~$ guix package -i icedtea <at> 3.7:jdk
> user <at> antelope ~$ java -version
> openjdk version "1.8.0_161"
> OpenJDK Runtime Environment (IcedTea 3.7.0) (guix build 1.8.0_161-b12)
> OpenJDK 64-Bit Server VM (build 25.161-b12, mixed mode)
> --8<---------------cut here---------------end--------------->8---
>
> Is guix environment installing an incorrect version of icedtea?
Hi Nam,
read the docs :-)
guix environment PACKAGE
is setting up an environment FOR developing PACKAGE, i.e. all its
dependencies/compilers are added to the environment.
If you want to have a package directly IN the environment, use the
--ad-hoc switch:
guix environment --ad-hoc PACKAGE
You can even combine both, for example to add more tools:
guix environment --pure guix --ad-hoc git
That would create a pure environment where the git command is
available and all tools to develop guix. The guix command is not in
here!
In your case, IcedTea 2 is used to develop IcedTea 3, that's the reason
why you found that in your environment.
Finally, you can add a "-- command" to the environment to execute a
command, so this should tell you the right version and afterwards
automatically exit the environment(-C == --container, to be absolutely
sure):
$ guix environment -C --ad-hoc icedtea <at> 3.7:jdk -- javac -version
javac 1.8.0_161
I'm closing that bug,
Björn
[Message part 2 (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 23 Nov 2018 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 204 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.