unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Tobias Geerinckx-Rice <me@tobias.gr>
To: 白い熊 <help-guix_gnu.org@sumou.com>
Cc: raingloom <raingloom@riseup.net>, help-guix@gnu.org
Subject: Re: Package definition - argument, fix for wrong file format before unpack
Date: Sun, 22 May 2022 00:15:42 +0200	[thread overview]
Message-ID: <87bkvq34kn@nckx> (raw)
In-Reply-To: <c620a93af5b0d96aa27369f883ea68bb@sumou.com>

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

白い熊,

白い熊 写道:
> However seeing it how should I change the unpack now - to 
> extract only
> via tar, however from the tar.gz file which isn't a gz really?

Guix does invoke only ‘tar’, but it's tar that chokes on the 
misleading file extension and throws the error you see.

The easiest way to convince tar of its errant ways is to set the 
correct extension in the store:

  (source
    (origin
      (method url-fetch)
      (uri "https://…/mell-1.0.0.tar.gz")
      ;; Despite the above extension, this is actually an 
      uncompressed tar file. 
      (file-name (string-append name "-" version "tar"))
      (sha256 …)))

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

  reply	other threads:[~2022-05-21 22:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-21 18:16 Package definition - argument, fix for wrong file format before unpack 白い熊
2022-05-21 20:29 ` raingloom
2022-05-21 21:55   ` 白い熊
2022-05-21 22:15     ` Tobias Geerinckx-Rice [this message]
2022-05-21 22:31       ` Tobias Geerinckx-Rice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bkvq34kn@nckx \
    --to=me@tobias.gr \
    --cc=help-guix@gnu.org \
    --cc=help-guix_gnu.org@sumou.com \
    --cc=raingloom@riseup.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).