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 ms11 with LMTPS id kNUEGPAZ5V/VQAAA0tVLHw (envelope-from ) for ; Thu, 24 Dec 2020 22:45:04 +0000 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 wCnkE/AZ5V81EgAAB5/wlQ (envelope-from ) for ; Thu, 24 Dec 2020 22:45:04 +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 6E9C69403CD for ; Thu, 24 Dec 2020 22:45:01 +0000 (UTC) Received: from localhost ([::1]:55164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ksZLw-0001Z1-Dx for larch@yhetil.org; Thu, 24 Dec 2020 17:45:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksUuc-0000bw-Ie for help-guix@gnu.org; Thu, 24 Dec 2020 13:00:30 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:41503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksUua-0004PF-8c for help-guix@gnu.org; Thu, 24 Dec 2020 13:00:30 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7D5445C00E5; Thu, 24 Dec 2020 13:00:27 -0500 (EST) Received: from imap1 ([10.202.2.51]) by compute4.internal (MEProxy); Thu, 24 Dec 2020 13:00:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tindall.space; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=XWWwLGd2AwCiXYC4+ksH1XlOSRcxTgk VTz8uqYso4KI=; b=T3aStl/281/wifQaQrlzJjyJhc5+94+jqcEYPntgfKPR84m rzn1ozJqaLJqYPxNMxTmLTh0QJDqjfeKe0IgB4Gn3r7/k9jo6+hu8rj4Q3N4bdap CunSQvRXZFcwyeAKNIX2Il8ly3ncg4++MwLfG90N13oCCvizeBfWwnGE2d1T1LGW T2DB8DRKpGWrp8nzx/HuonJH9HXOT2zqvCnFh9YLhJ6rDMpYhJtSOOYvHO+2dg7v TInjeUXaZ+AKHRq1YOwivILrQzgexK94jqH1cBaHNDnm9zST+HWYBjYoh1Z23W9Z FLPgHPeIJW3P/7gXI7Eq8tQ6ANpJfiayEivhl/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=XWWwLG d2AwCiXYC4+ksH1XlOSRcxTgkVTz8uqYso4KI=; b=dk9AagJxgi2eb/ECzD4I46 MdxhC6hJudjifcK/rmoELHtVLNEqe7JE+KYnPNVFlZ4YUcVkalXGpACCU7t81ce/ NG9hkiMTIJJln3tBGH7hFl+7AoYQmMXhoeqjmTHuupyil2jpjIMrwhbBGhI65nkg kURkfRUHZOmDJ0eO200PG8ziCCH6CenoWcFUejspqYiEda4hITsUNKfHZt6Oqqt4 HAvZurovSt7YQH90ZHOgyskyWtm62xIUnRsyiatdXxgkjUACy5vmduIxJgJG6kAk WdDWdOxK2CTs6blzuCpFQXc0q3qWN5I5LS80fF25A/2g/4Gc0zB58nxug11xOvQQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtledguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsegrtderreerreejnecuhfhrohhmpeevrghm vghrohhnuceotggrmhesthhinhgurghllhdrshhprggtvgeqnecuggftrfgrthhtvghrnh epvefhfefgfeetteeitdelheettdefvdehleefvdeludelteehjefhffdtkeevledvnecu ffhomhgrihhnpegtrgguugihshgvrhhvvghrrdgtohhmpdhgihhthhhusgdrtghomhdpgh hnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegtrghmsehtihhnuggrlhhlrdhsphgrtggv X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 77ACBC200A5; Thu, 24 Dec 2020 13:00:27 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.1-61-gb52c239-fm-20201210.001-gb52c2396 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Thu, 24 Dec 2020 12:00:07 -0600 From: Cameron To: "Julien Lepiller" , help-guix@gnu.org Subject: Re: help with copy-build-system Received-SPF: pass client-ip=66.111.4.27; envelope-from=cam@tindall.space; helo=out3-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 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, FROM_SUSPICIOUS_NTLD=0.499, HTML_MESSAGE=0.001, PDS_OTHER_BAD_TLD=1.999, 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=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 24 Dec 2020 17:44:07 -0500 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 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" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.31 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=tindall.space header.s=fm1 header.b=T3aStl/2; dkim=fail (body hash did not verify) header.d=messagingengine.com header.s=fm1 header.b=dk9AagJx; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 6E9C69403CD X-Spam-Score: -0.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: m4tcnCzD6IU4 Thank you Julien, This was indeed the problem! Many apologies to everyone for the double-post as well. -Cam On Thu, Dec 24, 2020, at 6:07 AM, Julien Lepiller wrote: > I don't think this is related to the copy-build-system, because it doe= sn't change the unpack phase. Whathappens here is that guix expects the = content of the tarball to be in a subdirectory, which is not the case he= re. In the source definition, you should use url-fetch/tarbomb instead o= f url-fetch. >=20 > Le 23 d=C3=A9cembre 2020 18:23:11 GMT-05:00, Cameron a =C3=A9crit : >> Hello, >>=20 >> I am new to Guix but it seems to be the perfect tools for running a s= mall cluster of servers that I need to administer. The one thing that so= far is holding me back from doing so is the absence of a package for Ca= ddy (https://caddyserver.com) which this cluster relies on heavily. I ho= pe in the future to package it properly, but it has a number of golang d= ependencies that are not themselves even packaged, and I am far from an = expert on building Go software -- it seems doable but it would be a rela= tively big undertaking. >>=20 >> Instead, I thought I could create a private package with copy-build-s= ystem and simply install the pre-built binaries that the Caddy project p= rovides. This is the caddy-package.scm that I have come up with: >>>=20 >>> (use-modules (guix) >>> (guix build-system copy) >>> (guix build utils) >>> (guix licenses)) >>>=20 >>>=20 >>> (package >>> (name "caddy") >>>=20 >>> (version "2.2.1") >>>=20 >>> (source >>> (origin >>> (method url-fetch) >>> (uri (string-append "https://github.com/caddyserver/caddy/release= s/download/" version "/caddy_" version "_linux_amd64.tar.gz")) >>> (sha256 >>> (base32 >>> "1va2h8hpxcby9rny7px1y2xks79rxb4svnf9mrdrlc5xn0s04dsx")))) >>>=20 >>> (build-system copy-build-system) >>>=20 >>> (arguments >>> '(#:install-plan '(("caddy" "bin/caddy")))) >>>=20 >>> (synopsis "This is a *BAD* Caddy package. It just pulls the already-= built binary from Github, rather than building from source.") >>> (description "See https://caddyserver.com/") >>> (home-page "https://caddyserver.com/") >>> (license asl2.0)) >>=20 >> When I build this file with `guix build -f caddy-package.scm -K', it = fails with this rather mysterious (to me) error during the unpack phase:= >>=20 >>> starting phase `unpack' >>> LICENSE >>> README.md >>> caddy >>> Backtrace: >>> 8 (primitive-load "/gnu/store/fa16h805lxm1fmyhdmnwd09cpd7= =E2=80=A6") >>> In ice-9/eval.scm: >>> 191:35 7 (_ #f) >>> In guix/build/gnu-build-system.scm: >>> 838:2 6 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases .= #) >>> In ice-9/boot-9.scm: >>> 1736:10 5 (with-exception-handler _ _ #:unwind? _ # _) >>> In srfi/srfi-1.scm: >>> 857:16 4 (every1 # =E2=80=A6) >>> In guix/build/gnu-build-system.scm: >>> 847:30 3 (_ _) >>> 164:15 2 (unpack #:source _) >>> 65:2 1 (first-subdirectory _) >>> In ice-9/boot-9.scm: >>> 1669:16 0 (raise-exception _ #:continuable? _) >>>=20 >>> ice-9/boot-9.scm:1669:16: In procedure raise-exception: >>> Throw to key `match-error' with args `("match" "no matching pattern"= ())'. >>> note: keeping build directory `/tmp/guix-build-caddy-2.2.1.drv-20' >>> builder for `/gnu/store/p65q2ndw8hcpiq2x62jb9mxv6xa88kkn-caddy-2.2.1= .drv' failed with exit code 1 >>> build of /gnu/store/p65q2ndw8hcpiq2x62jb9mxv6xa88kkn-caddy-2.2.1.drv= failed >>> View build log at '/var/log/guix/drvs/p6/5q2ndw8hcpiq2x62jb9mxv6xa88= kkn-caddy-2.2.1.drv.bz2'. >>> guix build: error: build of `/gnu/store/p65q2ndw8hcpiq2x62jb9mxv6xa8= 8kkn-caddy-2.2.1.drv' failed >>=20 >> Would anyone be able to give me any advice here? This seems to compor= t with the Reference Manual blurb (https://guix.gnu.org/manual/en/guix.h= tml#index-copy_002dbuild_002dsystem) about copy-build-system and also ap= pears similar to several official packages using copy-build-system (e.g.= gcide, vim-neocomplete, neverball) that I looked to as examples. Clearl= y though, there is some nuance that I am missing. >>=20 >> Thanks in advance for any help you can provide. >>=20 >> -Cam Tindall