From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 25 13:25:52 2018 Received: (at submit) by debbugs.gnu.org; 25 Oct 2018 17:25:52 +0000 Received: from localhost ([127.0.0.1]:42786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFjOK-0002D3-C3 for submit@debbugs.gnu.org; Thu, 25 Oct 2018 13:25:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFjOJ-0002Cs-9Y for submit@debbugs.gnu.org; Thu, 25 Oct 2018 13:25:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFjOD-0002OS-D3 for submit@debbugs.gnu.org; Thu, 25 Oct 2018 13:25:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFjOD-0002OI-7T for submit@debbugs.gnu.org; Thu, 25 Oct 2018 13:25:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFjOC-0002Cc-3A for bug-guix@gnu.org; Thu, 25 Oct 2018 13:25:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFjO8-0002Ii-Nr for bug-guix@gnu.org; Thu, 25 Oct 2018 13:25:44 -0400 Received: from mail-pl1-f172.google.com ([209.85.214.172]:40994) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFjO8-0002Df-A8 for bug-guix@gnu.org; Thu, 25 Oct 2018 13:25:40 -0400 Received: by mail-pl1-f172.google.com with SMTP id p5-v6so4167429plq.8 for ; Thu, 25 Oct 2018 10:25:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=kHTMc+kb478VS0fGcJonqYHgrPp7rtapJBSqxwrztLM=; b=bj22LQzNCPQsV74Svzx4GL2zt7dJ9t3PkoDrROpREoLYojk941T0V5MqLIc6+glADH gvRwSKnPLTDSOFF3f1Pir8ndrxMKJufEP1ki1y8fKLXN2nYyktXwpI1l2nbn7fE4jvvP n09DX/3CYHTRcHJoBW7vfwzsb2DMtPqGefmi+9m0pJpNDOQCWqZ7O3RRDhzxUpsObFaU H0Ys0XBddSMaSMs7GYh6TJQAao3u8VedrN99cB+BktR7xTc5DmX/O1O/d6gccDxbhJE7 tzKHkLt9TurS6rqwbG5D3YpJmBEdXtDwTrN5JisuYS4p4XdrfTgstinANktRg7E1QnuX Xgfw== X-Gm-Message-State: AGRZ1gKjkmEr4FbPduEcxG77WyCOjZV3Il+zHoNPDN85XN7Ek3TK5xsO s+l5oy7oqb5giPNoOKbi4/+EDoDVWCU= X-Google-Smtp-Source: AJdET5c/O+PSRXdj/FQkyft/W4lP1CN6BKKA3ZyftS98TCl273WHXnh654yVklDzgvaNWhYZrxf47g== X-Received: by 2002:a17:902:b611:: with SMTP id b17-v6mr92044pls.217.1540488333204; Thu, 25 Oct 2018 10:25:33 -0700 (PDT) Received: from antelope ([24.5.139.14]) by smtp.gmail.com with ESMTPSA id w10-v6sm10384214pfg.1.2018.10.25.10.25.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 10:25:32 -0700 (PDT) Date: Thu, 25 Oct 2018 10:25:01 -0700 From: Nam Nguyen To: bug-guix@gnu.org Subject: guix environment icedtea Message-ID: <20181025172501.GA25851@antelope> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) I want to use guix environment with icedtea@3.7:jdk. --8<---------------cut here---------------start------------->8--- user@antelope ~$ guix environment icedtea@3.7:jdk user@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@antelope ~$ guix package -i icedtea@3.7:jdk user@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? From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 25 15:07:42 2018 Received: (at 33153-done) by debbugs.gnu.org; 25 Oct 2018 19:07:42 +0000 Received: from localhost ([127.0.0.1]:42822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFkys-0004vp-Dj for submit@debbugs.gnu.org; Thu, 25 Oct 2018 15:07:42 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:33612 helo=bjoernhoefling.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFkyq-0004vg-H9 for 33153-done@debbugs.gnu.org; Thu, 25 Oct 2018 15:07:40 -0400 Received: from alma-ubu (unknown [46.183.103.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id EE1033F95C; Thu, 25 Oct 2018 21:07:32 +0200 (CEST) Date: Thu, 25 Oct 2018 21:07:26 +0200 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= To: Nam Nguyen Subject: Re: bug#33153: guix environment icedtea Message-ID: <20181025210726.09f92ac7@alma-ubu> In-Reply-To: <20181025172501.GA25851@antelope> References: <20181025172501.GA25851@antelope> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/M+VWZ1rkTb3yCU4jUY7b7Y4"; protocol="application/pgp-signature" X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 33153-done Cc: 33153-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) --Sig_/M+VWZ1rkTb3yCU4jUY7b7Y4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 25 Oct 2018 10:25:01 -0700 Nam Nguyen wrote: > I want to use guix environment with icedtea@3.7:jdk. > --8<---------------cut here---------------start------------->8--- > user@antelope ~$ guix environment icedtea@3.7:jdk > user@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--- >=20 > When I installed to my user profile, I was able to get the desired > icedtea version. > --8<---------------cut here---------------start------------->8--- > user@antelope ~$ guix package -i icedtea@3.7:jdk > user@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--- >=20 > 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 =3D=3D --container, to be absolutely sure): $ guix environment -C --ad-hoc icedtea@3.7:jdk -- javac -version javac 1.8.0_161 I'm closing that bug, Bj=C3=B6rn --Sig_/M+VWZ1rkTb3yCU4jUY7b7Y4 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlvSFG8ACgkQvyhstlk+X/3LegCgsFP4Pe8VAj4Qam+ZwdYEKGro ByMAn2aaADS+cVO2a4Eph80p6DLcZ0sO =wrS6 -----END PGP SIGNATURE----- --Sig_/M+VWZ1rkTb3yCU4jUY7b7Y4-- From unknown Sat Jun 14 19:05:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 23 Nov 2018 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator