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 oIBfL7+t02C5AAEAgWs5BA (envelope-from ) for ; Wed, 23 Jun 2021 23:55:11 +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 8E0jK7+t02CpQAAAB5/wlQ (envelope-from ) for ; Wed, 23 Jun 2021 21:55:11 +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 25EAF1E6C2 for ; Wed, 23 Jun 2021 23:55:11 +0200 (CEST) Received: from localhost ([::1]:41674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwApy-0000fQ-1F for larch@yhetil.org; Wed, 23 Jun 2021 17:55:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwApq-0000fA-FU for bug-guix@gnu.org; Wed, 23 Jun 2021 17:55:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwApq-000356-82 for bug-guix@gnu.org; Wed, 23 Jun 2021 17:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lwApq-0006wt-7k for bug-guix@gnu.org; Wed, 23 Jun 2021 17:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48944: haskell build-system cannot build pcg-random References: <8a77f214-d5f5-417f-8371-558cfa6ae267@www.fastmail.com> In-Reply-To: <8a77f214-d5f5-417f-8371-558cfa6ae267@www.fastmail.com> Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 23 Jun 2021 21:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48944 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "48944@debbugs.gnu.org" <48944@debbugs.gnu.org> Received: via spool by 48944-submit@debbugs.gnu.org id=B48944.162448526226660 (code B ref 48944); Wed, 23 Jun 2021 21:55:02 +0000 Received: (at 48944) by debbugs.gnu.org; 23 Jun 2021 21:54:22 +0000 Received: from localhost ([127.0.0.1]:41999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwApC-0006vw-5o for submit@debbugs.gnu.org; Wed, 23 Jun 2021 17:54:22 -0400 Received: from mail-4317.protonmail.ch ([185.70.43.17]:48045) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwApA-0006vi-Ib for 48944@debbugs.gnu.org; Wed, 23 Jun 2021 17:54:21 -0400 Date: Wed, 23 Jun 2021 21:54:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1624485253; bh=Zs+R7uFU6NQ/F2dBdPGZGD64AIV1D2x5Ikib5rlWvu0=; h=Date:To:From:Reply-To:Subject:From; b=aa62Z+Ihdr4EHSZuZ7BmtpbO2vZawjs6Q55Xxg261YrmeibEX15y11IFyQgo+3Dbl z8rKs/1fRGprcA87GTTM2ZWTNt1tAwX+hOj39GSGSR0pmcMoU06uWWtDmdbJy0ozsP cTQQKrgzAM1z5AxeCqb5WelrHlX2utWAcGyZKbVQ= Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_RBVjqQVD2ke26KjBkaCpF5vo5Too7sxJjNrdQFfHZSE" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias From: John Kehayias via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624485311; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Zs+R7uFU6NQ/F2dBdPGZGD64AIV1D2x5Ikib5rlWvu0=; b=LpCPE7j2xV+7nqMNrFaHvvxljQ4MqwsEQnTGp7x2GPZLn6xCQTLsBBP2G5UAqTHPs/ABS9 mgqwS2xmtvBKlrrqMBBJaaCIcb/T8fwuplgwrlzoIQG+lJmCWT602K1vfaAVDZFezuxZxc XgP6BUlKeuR359hPc7iSU/UX/fSJJzJioSrpB9Vpph5FhvUWcjzI9HDXkkx3ezPn/0KdL2 FYOS3nplWUT4TkzASlm0ctkJNUA7Oxtla+q+ysi0e0yVQTti4T3GwCuTMFYARQ/6nb679r 1KZQBrGy5/XR1T/AoC5fZK7WRTwRN1utRzeYoD6Mkj2RPV7nxq4IocUvZRC0UA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624485311; a=rsa-sha256; cv=none; b=c9r1BKYSEbFwphmgjWn23NLSTTr+kvKzw/T5UIOW0QE/TTospP3Bqh3v+D23yE25LyG32r GU32Bs8I/jo8BZP3OqgVgS65tTpnglYC4dabze+QyBz7zu8wTe845VnjzSMCe9AginE6HY BAN7nHcHTbcUbcBiMhg6vIoGX5J7tQ522qksqLJj7gOyEGFUohtfLxR2Idu/C5NbQD23cK XmNWOxA5Tn4VJj7+CrSa6vClPfDfrWRZ3tMr6ND5j7t6uvtRmtq6ObDZyA3Y8RxWwQuvfv rUFvk84Cq8opRrB6P/vSlzMZYRivDgj4iyVes7a5H46B2cI58Ra68sjPhKzEOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=aa62Z+Ih; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=aa62Z+Ih; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 25EAF1E6C2 X-Spam-Score: -1.83 X-Migadu-Scanner: scn1.migadu.com X-TUID: BT4d3J2OwoQk This is a multi-part message in MIME format. --b1_RBVjqQVD2ke26KjBkaCpF5vo5Too7sxJjNrdQFfHZSE Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I also see this error for building packages that need cabal-doctest, as the= configure step needs the package database. There's actually some packages = in guix that already modify the configure step to do this, like ghc-cairo: = https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/haskell-xyz.sc= m#n1465 As noted there, the package database should be passed to runhaskell itself,= not just what it runs. This would allow other packages that need a module = for configuring to work. Attached is a patch to modify haskell-build-system= to do this, though not only for the configure command (seemed easiest to j= ust do that for now). I'm submitting the patch with comments there about po= ssible modifications. I can confirm with this that pcg-random builds, as well as packages I've be= en trying that need cabal-doctest (note, I tested using guix's package of c= abal-doctest, no need to add that as well). Comments welcome here, especially as I'm pretty new to Haskell still and gu= ix completely, or on patch submission (sending shortly). John --b1_RBVjqQVD2ke26KjBkaCpF5vo5Too7sxJjNrdQFfHZSE Content-Type: text/x-patch; name=runhaskell-add-pkgdb.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=runhaskell-add-pkgdb.patch ZGlmZiAtLWdpdCBhL2d1aXgvYnVpbGQvaGFza2VsbC1idWlsZC1zeXN0ZW0uc2NtIGIvZ3VpeC9i dWlsZC9oYXNrZWxsLWJ1aWxkLXN5c3RlbS5zY20KaW5kZXggMjgyNTNjZTJmMC4uYmUyMGYxM2Ux MCAxMDA2NDQKLS0tIGEvZ3VpeC9idWlsZC9oYXNrZWxsLWJ1aWxkLXN5c3RlbS5zY20KKysrIGIv Z3VpeC9idWlsZC9oYXNrZWxsLWJ1aWxkLXN5c3RlbS5zY20KQEAgLTYzLDEzICs2MywxNCBAQAog ICAgICAgICAgICAgICAgICAgICAgKChmaWxlLWV4aXN0cz8gIlNldHVwLmxocyIpCiAgICAgICAg ICAgICAgICAgICAgICAgIlNldHVwLmxocyIpCiAgICAgICAgICAgICAgICAgICAgICAoZWxzZQot ICAgICAgICAgICAgICAgICAgICAgICNmKSkpKQorICAgICAgICAgICAgICAgICAgICAgICNmKSkp CisgICAgICAgIChwa2dkYiAoc3RyaW5nLWFwcGVuZCAiLXBhY2thZ2UtZGI9IiAldG1wLWRiLWRp cikpKQogICAgIChpZiBzZXR1cC1maWxlCiAgICAgICAgIChiZWdpbgogICAgICAgICAgIChmb3Jt YXQgI3QgInJ1bm5pbmcgXCJydW5oYXNrZWxsIFNldHVwLmhzXCIgd2l0aCBjb21tYW5kIH5zIFwK IGFuZCBwYXJhbWV0ZXJzIH5zfiUiCiAgICAgICAgICAgICAgICAgICBjb21tYW5kIHBhcmFtcykK LSAgICAgICAgICAoYXBwbHkgaW52b2tlICJydW5oYXNrZWxsIiBzZXR1cC1maWxlIGNvbW1hbmQg cGFyYW1zKSkKKyAgICAgICAgICAoYXBwbHkgaW52b2tlICJydW5oYXNrZWxsIiBwa2dkYiBzZXR1 cC1maWxlIGNvbW1hbmQgcGFyYW1zKSkKICAgICAgICAgKGVycm9yICJubyBTZXR1cC5ocyBub3Ig U2V0dXAubGhzIGZvdW5kIikpKSkKIAogKGRlZmluZSogKGNvbmZpZ3VyZSAjOmtleSBvdXRwdXRz IGlucHV0cyB0ZXN0cz8gKGNvbmZpZ3VyZS1mbGFncyAnKCkpCi0tIAoyLjMyLjAKCg== --b1_RBVjqQVD2ke26KjBkaCpF5vo5Too7sxJjNrdQFfHZSE--