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 ms11 with LMTPS id y9v4BEZbW2CcFwAA0tVLHw (envelope-from ) for ; Wed, 24 Mar 2021 15:31:18 +0000 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 MMNwAEZbW2BQNwAA1q6Kng (envelope-from ) for ; Wed, 24 Mar 2021 15:31:18 +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 4C37217978 for ; Wed, 24 Mar 2021 16:31:16 +0100 (CET) Received: from localhost ([::1]:55852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lP5TW-0000qH-Qz for larch@yhetil.org; Wed, 24 Mar 2021 11:31:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lP5CI-0002sT-LJ for guix-devel@gnu.org; Wed, 24 Mar 2021 11:13:26 -0400 Received: from mx1.riseup.net ([198.252.153.129]:52462) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lP5CF-0006t0-SD for guix-devel@gnu.org; Wed, 24 Mar 2021 11:13:26 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4F5BZT3B9HzDxbZ for ; Wed, 24 Mar 2021 08:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1616598801; bh=THSiBYixPjkA7CdteO+WMkfI3xJBE8A0QBA9pzuu3VM=; h=From:To:Subject:References:Date:In-Reply-To:From; b=Vupra7QAg2pLwhDGPypeZ3PUTnDkYv0rwUhiJLHm4fivfZO5H+UNa2YksJaGK8jtj AkQQ7aldnsg8T/o3OYCTuWujZ5ZiEz5jiPo9CWAQXM4TZxZ/KF5x9sU/BMyoN2jZnK sZ0PMkE7AAvoLIP+ZvQOaug1gPteh101ijqhbhl4= X-Riseup-User-ID: 151AAED69C44AD99C5113D03D232277D0CF67BCA541D1BE172C47664F3E7A61F Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4F5BZS5SF4z1yBW for ; Wed, 24 Mar 2021 08:13:20 -0700 (PDT) From: c4t0 To: guix-devel@gnu.org Subject: Re: guix import hackage fails with errors, and failed tests References: <87mtut7a6a.fsf@riseup.net> Date: Wed, 24 Mar 2021 12:13:18 -0300 In-Reply-To: <87mtut7a6a.fsf@riseup.net> (c4t0@riseup.net's message of "Tue, 23 Mar 2021 19:54:53 -0300") Message-ID: <878s6c7fg1.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=198.252.153.129; envelope-from=c4t0@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 24 Mar 2021 11:30:40 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616599877; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=WMHo0ZYuaVrRkM3qvRAY5i+c3RaZURnlTvw8FE5P7/8=; b=Dz8vPN2uJTXHeNLYblOP4MCEnlw5xmE14qD+7q92RifLsQRA1BPqJjVsBVF/jXNBzwmb3F lXLglt7mxheZ/1nuZcvC2QyQhOCNKKxZ9uK5PuIyovTQ86yuXzrCAMYCGxLU7WCztn0Qs3 zrNInJu2AH96QoyAT85ZEtLMiUKp6SL0SgAoRf8cOGzpCmGmQznpPnw9id0SLtL9muFQxl Jc0Aq0pU4YiNLfCldG5E1BiOjzBj4f1iUJM+9EBdXM1uxcWX54yd/6TRw9wfOjZT0Q/n5a rIaD8upkKcTUWYepMXgXgB5XEIs7Q6LrLjwTf/fUMMt29viLWxpgIjpmBf3HCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616599877; a=rsa-sha256; cv=none; b=CU9xMeZSfb2wbDTEoX3lCJ5ufatlCOK6JHDdzhtv+I+Jfac3n33+djD3V8pEJBZIx6QgYy 3YcXmxuI/iCzh480YoRvBtJviD2v8OPNC5MUoCqQAcJ1AdSpyP8+52ANCpQNdlu9NIeLYv gJ3Gxop/6mU9Rco/tWPLU5j+Q1FYXyVXikWf3N2rpHvFQLUmKqx1aLfoF+PgO9qNkrmRUz LQ/q0/DdYPvSpxhELtLdu7FB6cyXJCcaIhZY322uHVa7cK/51U5ncq0w8i4xRNsqubkln9 NvU1ZeV+NxRhA2F8TrhASPzGQO5wRgdIzlWscQx+iGyc/z6IHsLmLJQf/Y/i0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=Vupra7QA; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=Vupra7QA; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 4C37217978 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: hHNrELSOQkjZ c4t0 writes: it appears to be this bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=35743 It's marked in the hackage.scm to expected fail, but the layout problem with cabal files seems pretty ubiquos. I'll try to look at it, and move the discussion there. If anyone can give me some tip to how start debugging the test, I'll appreciate it, since I'm pretty new in scheme hacking with guile in guix. I must be overlooking something very obvious. Thanks. > Hi! > > I'm having problems with 'guix import' in my environment: > $guix import hackage -t ghc-events > Syntax error: unexpected token : common (at line 44, column 0) > Syntax error: unexpected end of input > guix import: error: failed to download cabal file for package 'ghc-events' > > so I cloned guix, and: > > guix environment guix --pure --ad-hoc help2man git strace --container > make check TESTS=tests/hackage.scm > > (I need to add --container for a problem that I address in another > email, can be ignored) > > I found that two tests are failing with similar error: > > Syntax error: unexpected token : (ghc-options (-Wall)) (at line 11, column 2) > Syntax error: unexpected end of input > > ;;; (fail #f #f) > test-name: hackage->guix-package test mixed layout > location: ./tests/hackage.scm:295 > source: > + (test-assert > + "hackage->guix-package test mixed layout" > + (eval-test-with-cabal > + test-cabal-mixed-layout > + match-ghc-foo)) > actual-value: #f > result: XFAIL > > Syntax error: unexpected token : (buildable (False)) (at line 12, column 4) > Syntax error: unexpected end of input > > ;;; (fail #f #f) > test-name: hackage->guix-package test flag executable > location: ./tests/hackage.scm:322 > source: > + (test-assert > + "hackage->guix-package test flag executable" > + (eval-test-with-cabal > + test-cabal-flag-executable > + match-ghc-foo)) > actual-value: #f > result: XFAIL > > I'm using guix 5f9b28b231e17749d14a1b95ae9cad68d7315a1e on top of and > old ubuntu, with all packages upgraded. > > How can I start a debugger? > > I tried several variations of: > > guile -l scripts/guix > and then > (main '("import" "hackage" "ghc-events")) > > with out success. > > I'm interested in checking the tests and the package that fails. > > COD.