Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for .tar.xz in the url stanza #11309

Closed
rednoah opened this issue May 22, 2015 · 6 comments
Closed

Support for .tar.xz in the url stanza #11309

rednoah opened this issue May 22, 2015 · 6 comments

Comments

@rednoah
Copy link
Contributor

rednoah commented May 22, 2015

I'd like support for .tar.xz (and maybe .tar.bz2) archives in the url stanza.

Newer versions of the tar command implicitly support xz compression so it may already be supported. In which case the url stanza manual should be update to reflect that fact.

@vitorgalvao vitorgalvao added enhancement core Issue with Homebrew itself rather than with a specific cask. labels Jun 2, 2015
@SeanSith
Copy link
Contributor

@rednoah The default tar implementation on MacOS X (even in Yosemite) does not currently support XZ compression. I've updated the documentation to show .tbz2 support, but I'm leaving a decision on the XZ support up to Core.

@tjnycum
Copy link
Contributor

tjnycum commented Jul 10, 2015

What about supporting .tar.xz however homebrew does? (They're working with the same tar, right?)

@DomT4
Copy link
Member

DomT4 commented Jul 10, 2015

We use a Homebrew-delivered xz.

@tjnycum
Copy link
Contributor

tjnycum commented Jul 10, 2015

Ah, that's right. I remember learning about that on-the-fly addition of an xz dependency a few months ago.

So how about unxzing the .tar.xz's before calling tar? Whenever a .tar.xz will have to be unpacked (e.g. brew cask installing a cask that has a such an URL), check for xz in the path. If it's not there, brew install xz and proceed (or display an error about it requiring xz if that fails). Yes, it represents an additional dependency, but it would only affect users who actually needed it for a cask they tried to install and who didn't already have it installed anyway.

@vitorgalvao
Copy link
Member

@rednoah Have you tried unar? Doesn’t that work?

@vitorgalvao vitorgalvao added the awaiting user reply Issue needs response from a user. label Sep 5, 2015
@vitorgalvao
Copy link
Member

Closing on account on no reply, since one is needed to proceed.

@adidalal adidalal removed the awaiting user reply Issue needs response from a user. label Apr 12, 2016
@miccal miccal removed core Issue with Homebrew itself rather than with a specific cask. enhancement labels Dec 23, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants