From debbugs-submit-bounces@debbugs.gnu.org Fri May 22 05:18:02 2020 Received: (at submit) by debbugs.gnu.org; 22 May 2020 09:18:02 +0000 Received: from localhost ([127.0.0.1]:58058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jc3oX-0005qU-Rt for submit@debbugs.gnu.org; Fri, 22 May 2020 05:18:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:49890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jc3oW-0005q9-Ht for submit@debbugs.gnu.org; Fri, 22 May 2020 05:18:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jc3oW-0005l5-Cf for bug-guix@gnu.org; Fri, 22 May 2020 05:18:00 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jc3oV-0002gP-K4 for bug-guix@gnu.org; Fri, 22 May 2020 05:18:00 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1590139076; cv=none; d=zohomail.com; s=zohoarc; b=Co6+Xtxmt9J7UbOURr553kQ+7V/mVKuXAmx+MY2lfqCaJMso0BJ1ZpFMmhx7DdscXF8sdR5YLFDUKReOKT4XTg9PmPEpYgnzsR/BR7GlfupYwQ19SmKNQnpVJl5pzVeNXEcb91hR5+KENLAVlSQ7V02vMHrlQCJU68NSfeYR+TA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590139076; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=aiThIK8YAGj6HxQ8C3uQAaz2bzphj8qWrq2E/VfnzE4=; b=gcn20MrZeEO8/0UTkF/Z2RlB8gDSTfAd/658rtwP7y8ppCBhpVLrS/rAT1LeLXGhf3nDLiKI79NbrCpABh8JNSMQkkwhyR4NOJDGprFNL/w2QaxzfnYWXrWPcsyKiZMcsbglDHMdnUrHcGRQhXI2jutTfs9K+bx6MXPvY/4/TXE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590139076; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=aiThIK8YAGj6HxQ8C3uQAaz2bzphj8qWrq2E/VfnzE4=; b=CmgEis1kAqKu0YQDUFRXQcsivdDyNXhZ8LMAD8nvrlPDRwgPbUcDEz8Dd3Eqd/0S fqm1PjrXvun2WvYOrRQ9ATgdHZobz2RLvcCH4gvLiV2Y/NimfmxyqRs8HmMalU08AhU uPcLNHYVeVmge0lHk1cpQAC0frWjW4htKigBbZRM= Received: from localhost (p54ad4cf9.dip0.t-ipconnect.de [84.173.76.249]) by mx.zohomail.com with SMTPS id 1590139074670442.81083799022474; Fri, 22 May 2020 02:17:54 -0700 (PDT) User-agent: mu4e 1.4.4; emacs 26.3 From: Ricardo Wurmus To: bug-guix@gnu.org Subject: Haskell packages retain references to bootstrap variants X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 22 May 2020 11:17:51 +0200 Message-ID: <87tv08coqo.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.53; envelope-from=rekado@elephly.net; helo=sender4-of-o53.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 05:16:02 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) Some Haskell packages have a =E2=80=9C-bootstrap=E2=80=9D variant to cut de= pendency cycles. Unfortunately, these bootstrap variants remain in the reference graph alongside their non-bootstrap counterparts. An example: --8<---------------cut here---------------start------------->8--- $ guix gc -R /gnu/store/1k0dqlyqyvhd3ax60a2y6l2sip0z7b26-ghc-scientific-0.3= .6.2 | grep -- -bootstrap /gnu/store/lvas21ha80yp02lc3z8fgpcaf59n1jp7-ghc-unordered-containers-bootst= rap-0.2.10.0-doc /gnu/store/22309kdxaapz6z3jm6wfy6bk1yybvxg9-ghc-hashable-bootstrap-1.2.7.0-= doc /gnu/store/mhpfjyx302d89w9484ivylczp8pzzfl2-ghc-hashable-bootstrap-1.2.7.0 /gnu/store/bfc5iyrlqr23fhp8awmd481za4aank9h-ghc-nats-bootstrap-1.1.2 /gnu/store/1nym2bjr3adhy1pa79iiasnfdz285b08-ghc-unordered-containers-bootst= rap-0.2.10.0 /gnu/store/xjgjshwhpc36nfagfz0bg3nrg6fkn615-ghc-integer-logarithms-bootstra= p-1.0.3 /gnu/store/jljsapda2vbxn7p37i6sk026r9gbrib7-ghc-scientific-bootstrap-0.3.6.2 /gnu/store/gjsmr0nrgsdyxcq9wizcx31cxpg7f9x7-ghc-semigroups-bootstrap-0.18.5 /gnu/store/ywlnsg1lcf0yzisivi7gm2pmls5jnxbb-ghc-attoparsec-bootstrap-0.13.2= .3 /gnu/store/w0q1s85mwvxk44gcs9lmh994rm8p7ik6-ghc-wcwidth-bootstrap-0.0.2 /gnu/store/ibk4x2bkqm7krc6cc2d61hvi213zvvfq-ghc-splitmix-bootstrap-0.0.3 /gnu/store/57zjc7i8hb9sb18yflr46yi1vvr21y31-ghc-clock-bootstrap-0.8 --8<---------------cut here---------------end--------------->8--- --=20 Ricardo From debbugs-submit-bounces@debbugs.gnu.org Mon May 25 05:18:30 2020 Received: (at 41451) by debbugs.gnu.org; 25 May 2020 09:18:30 +0000 Received: from localhost ([127.0.0.1]:39779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd9Fe-0006Aq-22 for submit@debbugs.gnu.org; Mon, 25 May 2020 05:18:30 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd9Fb-0006Ag-31 for 41451@debbugs.gnu.org; Mon, 25 May 2020 05:18:28 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1590398305; cv=none; d=zohomail.com; s=zohoarc; b=LE0+gCD/D1UqJoEaS7r/U1UA3nqrbIY9nsb1p55SUqRCs+STm26EB8MmPakoPELLuRKsxa47pyzuMrqv6L1P+oWkkAm9Vv+ld73hdvxNZctgvNZFtKQgyg3m3B6UQG+myiBEGflvZMlRkFEeygbxWdqJVJGBG1EUNi2nbx9O5is= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590398305; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=u2ESMNDULYW37GCVRXMucyE+Po59B3g+aMJWh1eduhg=; b=RbFd9j7sGjaUV7eprwawlPiGalKOJt+rDhUG47DUlUfMNPOSiiTa7TcJgNzabYCtBmudbNI9At+z+MH3udD1XPtkZd42uGuS0A8GBza/mqTvAUkzbAqK+f890/hZMVX4cedAcqYnASiYyL9O3EKoMaA3uAGV2UJ/aVuluA+2XOk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590398305; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=u2ESMNDULYW37GCVRXMucyE+Po59B3g+aMJWh1eduhg=; b=dbOz/uSucMLlO/1R/1T9OSKEcRFZjn+ui2+G0JejkjjAg4Ep8fRqDorsTMddAF7j TPuKKtK6hRan+yR3Y21NX53qFpypqDilwOWZjGztE2Tvl6cflGksRErLgENQeL48D0V +NWbm1fqKcCEGfi4CifxA2mMLVJY8Kkqqew6EE+M= Received: from localhost (p54ad4c7b.dip0.t-ipconnect.de [84.173.76.123]) by mx.zohomail.com with SMTPS id 1590398302667162.8956742094191; Mon, 25 May 2020 02:18:22 -0700 (PDT) References: <87tv08coqo.fsf@elephly.net> User-agent: mu4e 1.4.4; emacs 26.3 From: Ricardo Wurmus To: 41451@debbugs.gnu.org Subject: Re: Haskell packages retain references to bootstrap variants In-reply-to: <87tv08coqo.fsf@elephly.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Mon, 25 May 2020 11:18:19 +0200 Message-ID: <87h7w4jrtw.fsf@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 41451 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: -1.0 (-) Ricardo Wurmus writes: > Some Haskell packages have a =E2=80=9C-bootstrap=E2=80=9D variant to cut = dependency > cycles. Unfortunately, these bootstrap variants remain in the reference > graph alongside their non-bootstrap counterparts. On a related note, Haskell packages retain needless references to *all* other Haskell packages at build time. That=E2=80=99s because we *copy* the= ir .conf files at build time to create a package cache, and these .conf files thus propagate even to unrelated packages. We are effectively using propagation via the lib/ghc-8.6.5/.conf.d directory. I don=E2=80=99t know if all the files in there are really necessary, but it seems to me that perhaps this leads to spurious references. --=20 Ricardo From debbugs-submit-bounces@debbugs.gnu.org Mon May 25 17:10:26 2020 Received: (at 41451) by debbugs.gnu.org; 25 May 2020 21:10:26 +0000 Received: from localhost ([127.0.0.1]:42640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdKMc-0007Q5-1L for submit@debbugs.gnu.org; Mon, 25 May 2020 17:10:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdKMa-0007Pp-CC for 41451@debbugs.gnu.org; Mon, 25 May 2020 17:10:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57475) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdKMU-0005gC-Sy; Mon, 25 May 2020 17:10:18 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52382 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jdKMU-0002OR-AK; Mon, 25 May 2020 17:10:18 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: bug#41451: Haskell packages retain references to bootstrap variants References: <87tv08coqo.fsf@elephly.net> <87h7w4jrtw.fsf@mdc-berlin.de> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 Prairial an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 25 May 2020 23:10:16 +0200 In-Reply-To: <87h7w4jrtw.fsf@mdc-berlin.de> (Ricardo Wurmus's message of "Mon, 25 May 2020 11:18:19 +0200") Message-ID: <87tv03u3ev.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41451 Cc: 41451@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: -3.3 (---) Ricardo Wurmus skribis: > Ricardo Wurmus writes: > >> Some Haskell packages have a =E2=80=9C-bootstrap=E2=80=9D variant to cut= dependency >> cycles. Unfortunately, these bootstrap variants remain in the reference >> graph alongside their non-bootstrap counterparts. > > On a related note, Haskell packages retain needless references to *all* > other Haskell packages at build time. That=E2=80=99s because we *copy* t= heir > .conf files at build time to create a package cache, and these .conf > files thus propagate even to unrelated packages. Weren=E2=80=99t these files eventually superseded by the =E2=80=98ghc-package-cache-file=E2=80=99 profile hook? Or are these two di= fferent things? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 26 02:54:23 2020 Received: (at 41451) by debbugs.gnu.org; 26 May 2020 06:54:23 +0000 Received: from localhost ([127.0.0.1]:43846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdTTj-00057D-0c for submit@debbugs.gnu.org; Tue, 26 May 2020 02:54:23 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21375) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdTTf-00056r-8R for 41451@debbugs.gnu.org; Tue, 26 May 2020 02:54:19 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1590475789; cv=none; d=zohomail.com; s=zohoarc; b=n6fSekSqKPXLlxkRkUKdBDUVG242uwFxV/SpGwVIv7+6aa0w9/WdPLL6Xkrz/u+xx80DHEZ+twAryl/NUtiXuWr8y9HP0Tb7OyYLHEVbGBVbiHNqGKMW4ffNj9q7Ef8qMJ+lkZXT7/eUH39rEVUJ69agIG4rWDogBzS0FYcGPSw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590475789; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=3Hsd6qo3f/BmzsJYoZ/lPLP/E0Qfp8x+2qelCBYgPJ4=; b=UR3XVTLt14j5s7pLovYroxD74m+17UfBMl57AAhvz3RhM2I0Ljl3ljPhH6KcdJqNEXuDeiV9VRJGOs7w3qBe/51fAjyOz3oQhOoeMNryuq6XmkMLA+jcQKTqwvJzujaRUNX0tE3ZVAkDzjxaz+xgHVD7/OGjgISYaQUoiq1uUoQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590475789; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=3Hsd6qo3f/BmzsJYoZ/lPLP/E0Qfp8x+2qelCBYgPJ4=; b=EJmoLJkhznYqqnQ9ouensW7O8m8tqtTqLoR+7IUjiLSQICMkzTI3RAGpYn88vTfL SBnJdNDLTSCUHoesTeOntNX4Cti9YfszaATGF+IRmqYHlHt/tKv6xVUslx4uJagQhkO 6yICC1pUUjuSQ/F0yyBC9Ngh4ZV7xdFfmnxFxxsc= Received: from localhost (p54ad4c83.dip0.t-ipconnect.de [84.173.76.131]) by mx.zohomail.com with SMTPS id 1590475786738509.02714860922686; Mon, 25 May 2020 23:49:46 -0700 (PDT) References: <87tv08coqo.fsf@elephly.net> <87h7w4jrtw.fsf@mdc-berlin.de> <87tv03u3ev.fsf@gnu.org> User-agent: mu4e 1.4.4; emacs 26.3 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#41451: Haskell packages retain references to bootstrap variants In-reply-to: <87tv03u3ev.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 26 May 2020 08:49:43 +0200 Message-ID: <878shfjim0.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41451 Cc: 41451@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: -1.0 (-) Ludovic Court=C3=A8s writes: > Ricardo Wurmus skribis: > >> Ricardo Wurmus writes: >> >>> Some Haskell packages have a =E2=80=9C-bootstrap=E2=80=9D variant to cu= t dependency >>> cycles. Unfortunately, these bootstrap variants remain in the reference >>> graph alongside their non-bootstrap counterparts. >> >> On a related note, Haskell packages retain needless references to *all* >> other Haskell packages at build time. That=E2=80=99s because we *copy* = their >> .conf files at build time to create a package cache, and these .conf >> files thus propagate even to unrelated packages. > > Weren=E2=80=99t these files eventually superseded by the > =E2=80=98ghc-package-cache-file=E2=80=99 profile hook? Or are these two = different > things? That hook also operates on the .conf.d directory containing all .conf files that have been copied from Haskell inputs. --=20 Ricardo