From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gblQI4L2n2B4eAAAgWs5BA (envelope-from ) for ; Sat, 15 May 2021 18:27:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yNk/HoL2n2APQAAAB5/wlQ (envelope-from ) for ; Sat, 15 May 2021 16:27: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 088498A41 for ; Sat, 15 May 2021 18:27:46 +0200 (CEST) Received: from localhost ([::1]:44906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhx8i-0001kC-UE for larch@yhetil.org; Sat, 15 May 2021 12:27:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhx8a-0001k2-Cc for help-guix@gnu.org; Sat, 15 May 2021 12:27:36 -0400 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]:40508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhx8X-0007Pv-Lu for help-guix@gnu.org; Sat, 15 May 2021 12:27:36 -0400 Received: by mail-il1-x12f.google.com with SMTP id h6so2390703ila.7 for ; Sat, 15 May 2021 09:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JqK9wKsUE+7tJYSkUiq0oSW7XQDCgwsAeowCopN4ZPk=; b=ioQ/hjuLmW51bdxH6SxNPtxMMSjIlwlKGYScyEBm+tlbmczB7suR+JDqi1qPUYozFr v2hfPgfW8NfwJySpN4MKa64WGggJASPm0UMDNge4pbKQptfriZUqqHR1IHGiwRJBemgu usW+8O8MTDbZDzpYCkwp1PsT9c5j5XkMGvHfHMo7Bacm/qZus2DeGdpfAx7X4B2ul3h9 d7VaVrcEnARNvwEA/I5BT4GBBazPgGm15b764XxASDPW0npw6LfeIll8qIKm0Vqdys5J x6kREhkQd59EmJ0NYNfqvIUoBiVPHFx+whZoNm8f/DAUW/U9Gb6mOG0GD+DGjPlpyBdf yWnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JqK9wKsUE+7tJYSkUiq0oSW7XQDCgwsAeowCopN4ZPk=; b=dmybTb38B598UDNVxoLm9LiIX67ZdurgJRm8RvKWIZBnjEdIZ5Rpux1J9QEgcnymzg ipDkmnOXC+rP2iWlRhH5dEm4cyzQIQ0z+oIuKsoKfqNpAE+Uo/QvOMEF2d59df0jOREX 2ks4/K4zuUVE67+veETRhDwOxHw+2fGmvESK0B8Qin1jkVNJcFmjgkzNTEILmcK38Hbr cY5lwlhqHulfLel6vgbJKT59LtpD3mR4ZbliopZvzB29RJT9DQQbtT7sFs4ah9eqSvvV Py27Z9sWqEOvTMbD7j5Nkl7e/xvXDBJkLVAUnAyCAt96MGNsi7Nfro1/l06kW1wlb42E tauw== X-Gm-Message-State: AOAM530YkHZ0MB4vTu53mOs6Rl9axBkpNG1fMmQa0ysSg04Vu5/Z0tlX xv4FjA30W2YRTZrfYX14SlrUe5K6867xsg+lvgTXBZ15WgUgltvmv4s= X-Google-Smtp-Source: ABdhPJz5RPhfw0TfHZHOaL3wx1Sq3VgHMCzD/eMbjs2+9/QattMgCbZg47ShxJVVXfJtuMbPareC5Pnrg2pLHoTKmIo= X-Received: by 2002:a92:dc44:: with SMTP id x4mr46118868ilq.209.1621096052186; Sat, 15 May 2021 09:27:32 -0700 (PDT) MIME-Version: 1.0 References: <87h7j4ieoq.fsf@rdklein.fr> In-Reply-To: <87h7j4ieoq.fsf@rdklein.fr> From: Phil Beadling Date: Sat, 15 May 2021 17:27:21 +0100 Message-ID: Subject: Re: Find location of installed package in /gnu/store To: Edouard Klein , bjoern.hoefling@bjoernhoefling.de Received-SPF: none client-ip=2607:f8b0:4864:20::12f; envelope-from=phil@beadling.co.uk; helo=mail-il1-x12f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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=1621096066; 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:dkim-signature; bh=N66Js635NYbhQOCFYldQlcRTLVMrx+iKmodSA0afs1U=; b=V5IOHrGXYaCFlqzmTYwIP9LVHXxsmhTpadYbD2fEnEm5GgM2BGmN171zgW0jstaAR58fxn xDFQcrcZebjI8vTMQoA+g5GqrTMJs7X9+e2pvReqiFLE6H4S1IpbzmlP5LbY2OaVDjhxuK ZWeEBvBMEkzhKsTNK/pQ186xHBttmUuhZOl14sYNWtRt5N4XIwPfW6cAYB7YRk1FuoxmWL YtEYLFBw7ZM+r6CgpX3yvzuNwSsaUOxdeIS+wLSk4bHBtv6S8ijnjCmFDPOvhwdQhzX1O4 TlFUCQJNGanZ0zJWDaYbQSk4eSLuUN75Te2HiH7AZ8QPisff3wicQtyS2bzGOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621096066; a=rsa-sha256; cv=none; b=p6fSHdbkuK9WLuP3GL3nzLzP43FOBW6DObyIi+nqGXFfVqbCkkRA2l2TgKrUTpqxKR9bJM n4VOcGlwUXXFRP23J3XjjIVeboDafxpNh6Wk88PBw6d0BiuVwn3tmmy1qqhPB5vWcLMb2r EYYL8+xKyDxkjFTfgIe6qzA1Vtyzw3BiO4DoTj2EGeNGN/sNK2cQSKSRD4S6msu4+RA6xq pugegYtlNSmho4mQc529gD1vfLe3fnCNFcpU6kPJ4XPwiuYk2WcFwvWlwZbo9iiXAr9Szf dwgXgvf2e8evPnz1QrXJweKEIxdBJAPYEFVceikPJtIsSctZAKt/mBKkG9KNJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b="ioQ/hjuL"; 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: -1.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b="ioQ/hjuL"; 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: 088498A41 X-Spam-Score: -1.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: IkfT9WsNhbT3 > > Thanks for both answers on this - it's been an interesting rabbit hole. > Edouard's script gave me the version of icedtea-8 exactly as sourced by: > guix environment --ad-hoc icedtea:jdk I managed to simplify the script down to a one-liner - giving the same version as Edourard's: (display (run-with-store (open-connection) (package-file icedtea-8 #:output "jdk"))) Bjoern was correct that this was not the version I was looking for - but having rethought my dependency issue - I managed to solve it a different way using substitute* to patch the relevent files at build-time. Still, I learnt quite a bit about the gexps, the store, and patching - so time well spent - thanks again :-)