From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SIkqIh/V7GTzZwEAG6o9tA:P1 (envelope-from ) for ; Mon, 28 Aug 2023 19:10:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SIkqIh/V7GTzZwEAG6o9tA (envelope-from ) for ; Mon, 28 Aug 2023 19:10:55 +0200 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 400055A091 for ; Mon, 28 Aug 2023 19:10:55 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="ECvg/ik8"; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693242655; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=lhw3+BqLTdbY/usif/cTk7M0ifP86HXa2UEIw+qpQrc=; b=Lt1jMeKvu5gmTctTLuEyxhtlGNsIQjD+zSvSpgt8cox5nMT7e109mU8u3lx/mzg9uT+m48 mZSmQqVvJdfbhxPQE+1ULpEFYZHNEvwQgEmXSeKR5CAuj4AAPaZIj1OYECmgJgrPgtrF0p XVUydF2hL5VJMQpbMSY/23XOSWk0VlOazR8V6QW26tKgzy0qi2E1j0otyD3suMia/36AQr LPKvw6shkPang6UWDY8RbmiKqgM3+B0OnzDkB5iZAIJ/6Ggjq/oioKafhIgmv5UjJRnprn HYyCL+LpBbCwRm2a77xXpRevyau8rSh/YtjyEAenPiAmiG43n1BwDvpiHp4ezA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693242655; a=rsa-sha256; cv=none; b=Dn0U4j3WNwkXv+/vbTGyaSKjuOs9nMEReDqBfPFg3k9ulEvWKhIgMXPMLtpiA0ow85CcZ4 WRM1TMI+Jp19HxALrw6V7zrLJYAMAYL6i/a9FDj2vy6mF69DtzfpznNxab1l2EqARbMtfv VWxgBQqdnfjl4fquhlsg2KFOEUSXunmYLMENlo7sG78egoz9BIul1Xu1uZ8RSnCmSC+5us QHxo3SUjdg3R0obCHKpAslDR+Z8MdSySJy+BKuhJdaGF7m9DI++kzu9WToBeuBMVrrdsoe cmCg7Ojp0V0Nx5Yb7CLbq4Icd9JVnmQXuPubqdbdyiPozyW4E5pq/DTdb0p7Xw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="ECvg/ik8"; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qafl4-00052m-1q; Mon, 28 Aug 2023 13:10:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qafkv-000503-0O for help-guix@gnu.org; Mon, 28 Aug 2023 13:10:25 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qafks-00053D-Gz for help-guix@gnu.org; Mon, 28 Aug 2023 13:10:24 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fe4f3b5f25so8963205e9.0 for ; Mon, 28 Aug 2023 10:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693242621; x=1693847421; h=content-transfer-encoding:mime-version:message-id:date :disposition-notification-to:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=lhw3+BqLTdbY/usif/cTk7M0ifP86HXa2UEIw+qpQrc=; b=ECvg/ik84nLzM0NMokpRiXcp42z+rBwD46cIRd855NmaxL5tudvWIZm9+kUxkvUiGe QJvqHynqnKcDzmuvQ3iGDpSIC0wO4j2/j4b7M0LEQynxSVaMnoCsP155iB1ptXqxvCK8 fRREMiK28NaUj5B3gFtjgZ7jqom3Lp0l/oj0q0SyLFtD0RWG6ukFYrjSZZPmrn8CNyS7 1X7lo4JObo6RrR5GwKun5aGyLoDaYgvKKI5p1/3D04lpQNF8Fn12PtdRi+3yZWdC9la8 C9JsSAP5sDww+fjPg/fRrxFn4Hftv6TK4qV0+YwY3/2m3W5vDNn9gfd4nE+nSRXHq+1Z xnLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693242621; x=1693847421; h=content-transfer-encoding:mime-version:message-id:date :disposition-notification-to:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lhw3+BqLTdbY/usif/cTk7M0ifP86HXa2UEIw+qpQrc=; b=Vi8FElpLsC8iZVCEyNW3QOQ20E3xKFw/flQXVXNKft9lC0L/HJTO+F61dIs0DT38Vb wol67RQNnIBz1qFEQaTAfLl67fG+DSl+5IOuUkfEoR6eIyxP9XauCRmJt5lLd+I/cXt8 3LNN4R7RfXi2BjMqhU2R995bkm8lauScfbkUwtv4Js3SkHrXd+LmgO3BXKZT4jqCSlko 2mEkbyFfu2sDCX/PAPu24PLdtchMcSMptFPdA7DD8od2MSQQGXMnYvuyTSPlqb9gg2a5 B1gK4jdoBlLeDq9P+Q5u8QEPXpqncjxIMxKWin1UnfSCDeORgJ9WJ/bCjrRPjalUBHZP 84ag== X-Gm-Message-State: AOJu0YysZSASYcQD3juVNHz/KcuiK3+CD/TOGdWboJfW/kiKU3SBtZGV KGvhDJAQdwvubWFWSpBmRG0pSyu4dsU= X-Google-Smtp-Source: AGHT+IEttDTBatamMw8+RF/MmVPMrJysUoOOh51F9Nu08wrWEH+/w6w+KCcLeinscPNCLanNiDvpYA== X-Received: by 2002:a05:600c:4997:b0:401:c6a2:3cd5 with SMTP id h23-20020a05600c499700b00401c6a23cd5mr3736124wmp.2.1693242621060; Mon, 28 Aug 2023 10:10:21 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id k21-20020a05600c1c9500b003fed9b1a1f4sm6494922wms.1.2023.08.28.10.10.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 10:10:20 -0700 (PDT) From: Simon Tournier To: Saku Laesvuori Cc: help-guix@gnu.org, Lars-Dominik Braun Subject: Re: GHC packages' inputs leak in guix shell In-Reply-To: <20230824161653.vha6sk7ot34nixpe@X-kone> References: <20230815065150.5joaxyts646mnpex@X-kone> <86r0nsztxu.fsf@gmail.com> <20230824161653.vha6sk7ot34nixpe@X-kone> Date: Mon, 28 Aug 2023 13:40:14 +0200 Message-ID: <874jkjqtsx.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, GB_FREEMAIL_DISPTO=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.31 X-Spam-Score: -0.31 X-Migadu-Queue-Id: 400055A091 X-Migadu-Scanner: mx1.migadu.com X-TUID: kKcdY6EwtOrN Hi, On Thu, 24 Aug 2023 at 19:16, Saku Laesvuori wrote: >> > Running `guix shell --pure ghc-esqueleto -D ghc-bytestring-builder` >> > results in an environment that has the base64-bytestring package (from >> > ghc-base64-bytestring) visible, even though it is not listed on listed >> > the command line (ghc-bytestring-builder doesn't dependend on it). It >> > seems to "leak" from the inputs of ghc-esqueleto which does depend on >> > ghc-base64-bytestring. >>=20 >> What do you mean by =E2=80=9Cleak=E2=80=9D? > > I would expect packages to keep their (non-propagated) inputs separate > from the environment I use. Here ghc-esqueleto makes it's haskell inputs > visible to the ghc in my environment. Could you be more explicit? The package ghc-base64-bytestring does not seems being propagated; the store item ghc-base64-bytestring does not appear in the profile generated by =E2=80=9Cguix shell=E2=80=9D. However, --8<---------------cut here---------------start------------->8--- $ guix shell -C ghc-esqueleto ghc gcc-toolchain -- ghci GHCi, version 9.2.5: https://www.haskell.org/ghc/ :? for help ghci> import Data.ByteString.Base64.URL.Lazy ghci> :t encode encode :: Data.ByteString.Lazy.Internal.ByteString -> Data.ByteString.Lazy.Internal.ByteString --8<---------------cut here---------------end--------------->8--- and instead, you would like: : error: Could not find module `Data.ByteString.Base64.URL.Lazy' It is not a module in the current program, or in any known package. Right? Well, I do not know if it is possible. I guess it is because of this file: --8<---------------cut here---------------start------------->8--- $ find $(guix build ghc-esqueleto) -type f -print | grep base64 /gnu/store/zqax59v1v537h26g0kypka6klaaahnqf-ghc-esqueleto-3.5.8.1/lib/ghc-9= .2.5/ghc-esqueleto-3.5.8.1.conf.d/base64-bytestring-1.2.1.0-CQYLTs5ShsEFl2l= we4hRrI.conf --8<---------------cut here---------------end--------------->8--- Lars, WDYT? Cheers, simon