emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#33153: closed (guix environment icedtea)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#33153: closed (guix environment icedtea)
Date: Thu, 25 Oct 2018 19:08:01 +0000

Your message dated Thu, 25 Oct 2018 21:07:26 +0200
with message-id <address@hidden>
and subject line Re: bug#33153: guix environment icedtea
has caused the debbugs.gnu.org bug report #33153,
regarding guix environment icedtea
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
33153: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33153
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: guix environment icedtea Date: Thu, 25 Oct 2018 10:25:01 -0700 User-agent: Mutt/1.10.1 (2018-07-13)
I want to use guix environment with address@hidden:jdk.
--8<---------------cut here---------------start------------->8---
address@hidden ~$ guix environment address@hidden:jdk
address@hidden ~ [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---
address@hidden ~$ guix package -i address@hidden:jdk
address@hidden ~$ 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?



--- End Message ---
--- Begin Message --- Subject: Re: bug#33153: guix environment icedtea Date: Thu, 25 Oct 2018 21:07:26 +0200
On Thu, 25 Oct 2018 10:25:01 -0700
Nam Nguyen <address@hidden> wrote:

> I want to use guix environment with address@hidden:jdk.
> --8<---------------cut here---------------start------------->8---
> address@hidden ~$ guix environment address@hidden:jdk
> address@hidden ~ [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---
> address@hidden ~$ guix package -i address@hidden:jdk
> address@hidden ~$ 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 address@hidden:jdk -- javac -version
javac 1.8.0_161


I'm closing that bug,

Björn

Attachment: pgpGB7phakKx3.pgp
Description: OpenPGP digital signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]