From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wPstAormqWMjPwEAbAwnHQ (envelope-from ) for ; Mon, 26 Dec 2022 19:23:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WBBkAYrmqWN9ygAAG6o9tA (envelope-from ) for ; Mon, 26 Dec 2022 19:23:06 +0100 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 79DC4C1F9 for ; Mon, 26 Dec 2022 19:23:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9s7Z-0006c1-RW; Mon, 26 Dec 2022 13:22:45 -0500 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 1p9s7Y-0006bZ-4B for guix-devel@gnu.org; Mon, 26 Dec 2022 13:22:44 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9s7V-0006I7-RD for guix-devel@gnu.org; Mon, 26 Dec 2022 13:22:43 -0500 Date: Mon, 26 Dec 2022 18:22:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1672078958; x=1672338158; bh=Kk1jHPb7FG1juaClWMSuhmGuY7GENheEi0RJ8tACs/s=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=dBaxMf1vYIzWrYHyA+VRPwMuijTZgUPdq20LNqHZiVAZ9TsTUsPzeiaINHeZQIMHA EKbETbeGKDB7a+q0Xx1TOTZE0K0+SJ6SLBmVuIAjDsJB8leRkrtxwH70RStlvVOi2e vdekc88A+WBplMOfEMmUlylxdJ+Ojs6vjzqo9buPKw2EBFrgjcrC4rTkgUSvUOGalc 4kqRC1oSuOHkRuaAZipcCDs+e2EsFpQ34s3D4rETeH3MuuH+OaofqGlf4TnIRp5pOg n404DBLfSTqWufLJyGwWFGlyjspqQH7CKL9RFc1DYub171L11SGO8MyXbPMtezSRit z6zlpOzQ9iT/A== To: Luis Felipe From: Kaelyn Cc: guix-devel Subject: Re: Packaging: Need some help replacing a check phase Message-ID: <54txorgCQH0VDNKgMHkQQSyjfmgBWaUS9GG4vQHUxp_j0nIagVn4vQ1KlNbFV3AiwONOLu-J4JIpntS6Jc7ZIMmaXC9Fx-I153hViYNdpE8=@protonmail.com> In-Reply-To: <5xgJfFJuZnP2-oQJDoA0KfZ2xvmuBDUKktLT0pNbBWeOMnY4YrulJK9C3daGtFyuTc6hgL-9wuVzjxqZfBdFi8LEhTksJByIENcT14MlTvw=@protonmail.com> References: <5xgJfFJuZnP2-oQJDoA0KfZ2xvmuBDUKktLT0pNbBWeOMnY4YrulJK9C3daGtFyuTc6hgL-9wuVzjxqZfBdFi8LEhTksJByIENcT14MlTvw=@protonmail.com> Feedback-ID: 34709329:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.16; envelope-from=kaelyn.alexi@protonmail.com; helo=mail-4316.protonmail.ch 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, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672078985; a=rsa-sha256; cv=none; b=RVQAMaOub4pYA1DpuQDSsF5xwA5utu8GIkvtLILDR52LtvZIkOhqpO9u1oSQEvmtG33KTj Fqd4uGnCiK8O/d9uGw2WQoCsdCw2dtrzZgsOD+CkF0ROCqMxdQskGJGlp0oTSS0sVy5+5g 6Ku3jxEMoOKkB/Iei7+ylIDzp5Fbc5ob3DGTPHE1lLBUyhS2FHRoBNjkvJi1CxIqdrfsrc L9KpksMlznU7/bbNc4BqnBonWmRUefOknZyry1AkGWD+JTL0ycqh6f9CRj3elXTJj/PxXv UtsPQ1Q812kIJ0PguVo7N6O/ojqxeqClGvcMM0jbCIGSw4EfjucbFfU8Ixiihg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=dBaxMf1v; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=protonmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672078985; 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=Kk1jHPb7FG1juaClWMSuhmGuY7GENheEi0RJ8tACs/s=; b=CvRvBPF2+XBAbp1aRav+FUCoRnUT3TNQKa8tPWjtXqSlxGXPiLPW1D+FwjWPrgC6i3E9PL 4KAWDgjpg8zKLQAFxcit+2Qd56nhB3hhSaCcBSWOFO7qTBrwOIY7Z14W+eE3zKzyO3HTPn olEu/UTlKVoyT45ZhUrO6lnPTbuv/+2XozDmqC+V35uD2xmXOGHovutA5QicclCwujYChc +f1VNEIBXB0jpD5JOGQ+phwqll/MD1v8ak0BEngaBhAW41Mdm2OMdYSaRLEnDTxFZQ2CXs VaYZpoc5ALrbKrX0VtjZSGWfE6MtBd75n6zZUHQt5x/TXHNgc6Qw+aGwjPGjow== X-Spam-Score: -10.96 X-Migadu-Queue-Id: 79DC4C1F9 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=dBaxMf1v; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=protonmail.com X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -10.96 X-TUID: KuBQBAybPhcD Hi Luis, ------- Original Message ------- On Monday, December 26th, 2022 at 4:15 PM, Luis Felipe wrote: >=20 >=20 > Hi, >=20 > I'm packaging a Guile software but the package fails to build when I try = to replace the check phase, and I can't see what I'm doing wrong. >=20 > This is the package definition: >=20 > =D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD > (define-module (packages guile-proba) > #:use-module (gnu packages guile) > #:use-module (gnu packages guile-xyz) > #:use-module (gnu packages texinfo) > #:use-module (guix build-system guile) > #:use-module (guix git-download) > #:use-module ((guix licenses) #:prefix license:) > #:use-module (guix packages)) >=20 >=20 > (define-public guile-proba > (package > (name "guile-proba") > (version "0.1.0") > (source > (origin > (method git-fetch) > (uri (git-reference > (url "https://codeberg.org/luis-felipe/guile-proba") > (commit version))) > (file-name (git-file-name name version)) > (sha256 > (base32 "0bai3nhdmzpcxkp55a74afp92sq609hh9dy5a5w01aysvchp4715")))) > (build-system guile-build-system) > (native-inputs (list guile-3.0 texinfo)) > (propagated-inputs (list guile-config guile-lib texinfo)) > (arguments > `(#:phases > (modify-phases %standard-phases > ;; FIXME: Replacing 'check phase makes build fail. > (replace 'check > (lambda* (#:key tests? #:allow-other-keys) > (when tests? > (invoke "guile" "proba.scm" "run" "tests")))) > (add-after 'install 'install-script-and-manual > (lambda* (#:key outputs #:allow-other-keys) > (let* ((out (assoc-ref outputs "out")) > (bin-dir (string-append out "/bin")) > (info-dir (string-append out "/share/info")) > (script (string-append bin-dir "/proba"))) > (mkdir-p bin-dir) > (mkdir-p info-dir) > (copy-file "proba.scm" script) > (chmod script #o555) > (invoke "makeinfo" "manual/main.texi") > (install-file "guile-proba" info-dir))))) > #:not-compiled-file-regexp > "((packages|tests)\\/.*.scm|(proba|manifest).scm)$")) > (home-page "https://luis-felipe.gitlab.io/guile-proba/") > (synopsis "Testing tools for GNU Guile projects with SRFI 64 test suites"= ) > (description > "This software is a set of testing tools for GNU Guile projects > with SRFI 64-based test suites. It comes with a command-line interface > to run test collections, and a library that includes a test runner and > helpers for writing tests.") > (license license:public-domain))) > =D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD >=20 >=20 > And this is the error after running "guix build -L . guile-proba" (using = guix 9cb42f7): >=20 > =D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD > Backtrace: > 14 (primitive-load "/gnu/store/36iw346l6n6s9wrd4qr923zywj1?") > In ice-9/eval.scm: > 214:21 13 (_ #f) > 217:50 12 (lp (# ?)) >=20 > 217:50 11 (lp (# ?)) >=20 > 217:50 10 (lp (# ?)) >=20 > 217:50 9 (lp (# ?)) >=20 > 217:50 8 (lp (# ?)) >=20 > 217:50 7 (lp (# ?)) >=20 > 217:50 6 (lp (# ?)) >=20 > 217:50 5 (lp (# ?)) >=20 > 217:50 4 (lp (# ?)) >=20 > 217:50 3 (lp (# ?)) >=20 > 217:33 2 (lp (# ?)) >=20 > 293:34 1 (_ #(# ((# . #) ?))) >=20 > In guix/build/utils.scm: > 713:4 0 (alist-replace check # ?) >=20 >=20 > guix/build/utils.scm:713:4: In procedure alist-replace: > Throw to key `match-error' with args` ("match" "no matching pattern" ())'= . > =D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD=D9=AD I believe the build fails because the guile-build-system deletes the 'check= phase. From guix/build/guile-build-system.scm: (define %standard-phases (modify-phases gnu:%standard-phases (delete 'bootstrap) (delete 'configure) (add-before 'install-locale 'set-locale-path set-locale-path) (replace 'build build) (add-after 'build 'install-documentation install-documentation) (delete 'check) (delete 'strip) (delete 'validate-runpath) (delete 'install))) Hope that helps! Cheers, Kaelyn >=20 >=20 > Thanks in advance. >=20 >=20 > --- > Luis Felipe L=C3=B3pez Acevedo > https://luis-felipe.gitlab.io/