From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id vRzDKLqRn2CSRgEAgWs5BA (envelope-from ) for ; Sat, 15 May 2021 11:17:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aKvSI7qRn2ATGAAA1q6Kng (envelope-from ) for ; Sat, 15 May 2021 09:17:46 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B6A2721EB2 for ; Sat, 15 May 2021 11:17:45 +0200 (CEST) Received: from localhost ([::1]:46200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhqQa-0000cm-EW for larch@yhetil.org; Sat, 15 May 2021 05:17:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhqQ9-0000ce-Mx for help-guix@gnu.org; Sat, 15 May 2021 05:17:17 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:43070 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhqQ8-0002Jg-1Q for help-guix@gnu.org; Sat, 15 May 2021 05:17:17 -0400 Received: from alma-ubu.fritz.box (p57b52182.dip0.t-ipconnect.de [87.181.33.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 7CEC13F946; Sat, 15 May 2021 11:17:09 +0200 (CEST) Date: Sat, 15 May 2021 11:17:07 +0200 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= To: Phil Beadling Subject: Re: Find location of installed package in /gnu/store Message-ID: <20210515111707.3e542006@alma-ubu.fritz.box> In-Reply-To: References: X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/DpFsvFNKHoTz06gnBqD9lte"; protocol="application/pgp-signature"; micalg=pgp-sha512 Received-SPF: none client-ip=83.151.27.109; envelope-from=bjoern.hoefling@bjoernhoefling.de; helo=bjoernhoefling.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.398, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621070266; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=0VhTC2My6e6kC1GHePTMLfyg9Yk+0NKJ2l3FtdLF+zs=; b=AS4uSuwFHXoMPPBdQ2vJutDwkO97vDkrujABCxWXa7H2RoHWGCUGi5NI6uPoWtpl55Pu4R HDSpFJeBtsVcEXEzk92lLIaTu/vcQNMgLCFnOu2J6pvBt4DI8FNYqKvo1vyqtRwFHXf4aj g6e4NzJNglh3UDHEAe7SL3KtSlPZl6QZHeASVFMZiCy8pe8/4SYYmTnjuGJ1zpCnSLQZou Tq6FzAv7qToEtu3XkmtDM8ANVQuoxa3fJOwrupe1GaPQL0koWWtxwDyOdBIwXmK3+x+b9p qfDg/kAQMdevuK0MBx78QEDEqUUMziyLZoKeu8TF6FfIUOwYdf/sf+fU7SgUsQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621070266; a=rsa-sha256; cv=none; b=PYLRW1fYq4ZOmU87RiBOQfb6BOKM3Dox34K1sS+67/VQb8Ey+K5NCiolJdL2upEhtJsczu 8MrZycqI+0nXO6/8E5SEJLGPxQbpCa5HRHUpQpTXvbYz48HZlLMWvbV+LmfEHKUWcjHLuf jQJlvJyL/fSHGgdyXpLSctCCo9exCd1DzNxb2TuPTbaFwAR16KHhhyTAWbsxuQfgh622yB HsGom55hFl7J4/qdwo0N2FjQuGI44K1pZC07yZ4wGZEFWlDorEs7eXa7kzovALPNuyoh50 P7qdGqSIVQRtzpwZsdbOFyi8LeSCluGM8WrjTwTw8R0O265ThqUbBBdW1ue4UA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -4.55 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: B6A2721EB2 X-Spam-Score: -4.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0+vi5TOwRAln --Sig_/DpFsvFNKHoTz06gnBqD9lte Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 15 May 2021 03:28:01 +0100 Phil Beadling wrote: > Given a package definition, eg icedtea-8's JDK, how can can I > determine the location of the installed package in my /gnu/store? [..] > The aim is to use this to derivive the JDK include directories in a > generic way for some scripts I'm writing, such that I don't need to > update them each time the JDK hash changes after a guix pull. In your store, there will be probably many icedtea-8's lying around, because you or another user on your system updated it several times or even compiled it with different sources. Even when you say you want to to get the hash of what "guix pull" currently has (see Edouard's answer), that might be different from what is in your current profile, because you haven't executed yet a "guix package -u", or you have several profiles around with different versions/states. =46rom a practical perspective, what I have for the JDK: I put different versions in different profiles, like: guix package -i icedtea@3:jdk -p ~/extra-profiles/jdk8 guix package -i openjdk@11:jdk -p ~/extra-profiles/jdk11 (if you want to have the profile in your path, source it as the command-output tells you, or at it to your bashrc) Then I can set the JAVA_HOME variable to JAVA_HOME=3D~/extra-profiles/jdk11 to use JDK 11. Also in Eclipse in the preferences, you can add different installed JREs. I use this to point to my extra-profile. Bj=C3=B6rn --Sig_/DpFsvFNKHoTz06gnBqD9lte Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EAREKAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCYJ+RkwAKCRC/KGy2WT5f /XKnAJ9sXf2x6xNlENICtqXjGZu8qp/04gCfZ5ZWAB8LB4013vGAQNKqPCZYqC4= =FrCY -----END PGP SIGNATURE----- --Sig_/DpFsvFNKHoTz06gnBqD9lte--