From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mFdXCeBLiWITSQEAbAwnHQ (envelope-from ) for ; Sat, 21 May 2022 22:30:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KBg0CeBLiWKSkAAA9RJhRA (envelope-from ) for ; Sat, 21 May 2022 22:30:24 +0200 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 F001A3FF5E for ; Sat, 21 May 2022 22:30:22 +0200 (CEST) Received: from localhost ([::1]:36732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsVjx-0002Mh-7b for larch@yhetil.org; Sat, 21 May 2022 16:30:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsVj3-0002MV-Dx for help-guix@gnu.org; Sat, 21 May 2022 16:29:25 -0400 Received: from mx1.riseup.net ([198.252.153.129]:55164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsVj0-0005rY-PC for help-guix@gnu.org; Sat, 21 May 2022 16:29:24 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4L5FYr5RQwzDrtw; Sat, 21 May 2022 13:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1653164960; bh=gKI/d5mDgpsw+JQo3DisG3XaXAAtZBpw5Z+WibJPYis=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Wxd6VwKqudlOp6FdOgqMg10IlztIUuWZlMaKAkAEG1VWGZujQZwwtlVsJ7pXvSQ28 j/fGbegRFFR/9AJCoKTjPytHBNrurPHvm/mPUD/IrGhFHc/mRj35N+1z0laHgPdo3Q jyOlxMKYOat/2nL4hM5JbG4SIJnWTHjJ+K/xqsFs= X-Riseup-User-ID: E20D858A52E28542AF9CA77DC495722B246B4213DC88866CC7CC2A1D70D88AEA Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4L5FYq3SZ0z5vLb; Sat, 21 May 2022 13:29:19 -0700 (PDT) Date: Sat, 21 May 2022 22:29:10 +0200 From: raingloom To: =?UTF-8?B?55m944GE54aK?= Cc: help-guix@gnu.org Subject: Re: Package definition - argument, fix for wrong file format before unpack Message-ID: <20220521222910.07a43915@riseup.net> In-Reply-To: <3eceaea9454f82f2d8c28af880f82ecb@sumou.com> References: <3eceaea9454f82f2d8c28af880f82ecb@sumou.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653165024; 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=gKI/d5mDgpsw+JQo3DisG3XaXAAtZBpw5Z+WibJPYis=; b=E3cJn1OIT0pb8qCG0ZcUGftfSfTicNAlsYwogCtCKewbcRn0ItIpWaRP9sxYooNlrR8AWU 7I5MoJ0awxRefXvrnsYGWUtjATcTFTdZTC5I94TaK7x/f8qP1WQ8kuZd7IHooiSgBYUU7M ofhzy/JtPa2NvpKvr7OBJTdb9gm+7YLqLWE4hnSmSHP1Lm38BuqOzhd9yeVLi8Owc86mCd Xmm0BLfFlCMsB2GFKvTCtonIirkfYvpkJx7y6G+9E34QieFFsWYZqDHezCYZmwAL2wRSj0 G8puQSrqgj57KtsiiV4Gv/wK/XicB3D44kScSyS/AyLD2dZYw9ETdHUSHYCusQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653165024; a=rsa-sha256; cv=none; b=n+kJ/rOUg1Aldgs8QqvzrVhpnO30jkMt3H/oq3GrkKRhWd8BthZCZAsXvuUciblHTmJR14 MirDONTHowROh+k98Fl63b1nSizrBvUTtW39ipW0ulM+FT99mQ7+FcnEd8rsZz+rgS2ftk csoyQtBdgLZlS9R4LKt4UVwmwKRgWghGypGBpAP/tSaLdDZaLyeIh5TRa1bdQVNycRcRCn KArMDFbdcEmE7m3FnOi4n1Tvn6m3in8UWWi6UPXXsDl4Tcmo6kUDTpLISBXXOmoO4atNUw S7107AEywqYFFQV5bbTLpXEqMV3tET0vnXlKjZFEjweVtx1bG/aO8e7aiOWiPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=Wxd6VwKq; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.75 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=Wxd6VwKq; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: F001A3FF5E X-Spam-Score: -8.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: GUYkw/6g4xAa On Sat, 21 May 2022 20:16:06 +0200 =E7=99=BD=E3=81=84=E7=86=8A wrote: > Hello everyone: >=20 > I'm trying to build some old apps - one of them is an emacs package > only available now via the archive.org Wayback machine. >=20 > The problem is though that the download is an xxxx.tar.gz file in > name - in fact it is really only a tar archive. So guix build fails > with wrong file format error. Concretely - it is this file:=20 > https://web.archive.org/web/20110104020844/http://taiyaki.org/elisp/mell/= src/mell-1.0.0.tar.gz >=20 > I think I should add some "(arguments" lines in the package recipe -=20 > replacing the unpack phase? However not sure exactly how - am > searching but haven't found any examples fixing for such a problem. >=20 > Could someone advise me - how to specify the file should be unpacked > as really just a tar archive so that the build can then proceed? >=20 > Many thanks. >=20 If I remember correctly, the source should get passed as part of the inputs alist? Try this: `(replace 'unpack (lambda args (display args)))` And look at what arguments it gets passed. The store path of the tarball should be right there.