From: Lars Ingebrigtsen <larsi@gnus.org>
To: Devon Sean McCullough <Emacs-Hacker2017@jovi.net>
Cc: 29235@debbugs.gnu.org, Andreas Schwab <schwab@linux-m68k.org>
Subject: bug#29235: Builtin bsdtar decompression for .tar.xz not used
Date: Fri, 03 Sep 2021 09:10:43 +0200 [thread overview]
Message-ID: <871r663zik.fsf_-_@gnus.org> (raw)
In-Reply-To: <F43218D0-200B-4417-AA34-5DDE9FFE7785@jovi.net> (Devon Sean McCullough's message of "Fri, 10 Nov 2017 09:24:01 -0500")
Devon Sean McCullough <Emacs-Hacker2017@jovi.net> writes:
>>> Note that MacOSX lacks xz
>>
>> Not even under a different name?
>
> Turns out xz is redundant because gunzip, gzcat and zcat all work.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
So Macos doesn't have a separate binary for xz, but makes gunzip handle
that format, too?
So would the following change make sense, or do we need more parameters
in the compressing case to make Macos gzip make an .xz archive?
diff --git a/lisp/jka-cmpr-hook.el b/lisp/jka-cmpr-hook.el
index 6933a7c1d0..5a884c7ade 100644
--- a/lisp/jka-cmpr-hook.el
+++ b/lisp/jka-cmpr-hook.el
@@ -203,7 +203,7 @@ jka-compr-compression-info-list
;; can-append strip-extension-flag file-magic-bytes
;; uncompress-function]
(mapcar 'purecopy
- '(["\\.Z\\'"
+ `(["\\.Z\\'"
"compressing" "compress" ("-c")
;; gzip is more common than uncompress. It can only read, not write.
"uncompressing" "gzip" ("-c" "-q" "-d")
@@ -238,10 +238,15 @@ jka-compr-compression-info-list
"LZMA compressing" "lzma" ("-c" "-q" "-z")
"LZMA uncompressing" "lzma" ("-c" "-q" "-d")
t t ""]
- ["\\.xz\\'"
- "XZ compressing" "xz" ("-c" "-q")
- "XZ uncompressing" "xz" ("-c" "-q" "-d")
- t t "\3757zXZ\0"]
+ ,(if (featurep 'ns)
+ ["\\.xz\\'"
+ "XZ compressing" "gzip" ("-c" "-q")
+ "XZ uncompressing" "gzip" ("-c" "-q" "-d")
+ t t "\3757zXZ\0"]
+ ["\\.xz\\'"
+ "XZ compressing" "xz" ("-c" "-q")
+ "XZ uncompressing" "xz" ("-c" "-q" "-d")
+ t t "\3757zXZ\0"])
["\\.txz\\'"
"XZ compressing" "xz" ("-c" "-q")
"XZ uncompressing" "xz" ("-c" "-q" "-d")
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-09-03 7:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-09 21:41 bug#29235: 26.0.50; tar.xz broken Devon Sean McCullough
2017-11-10 7:47 ` Eli Zaretskii
2017-11-10 9:37 ` Andreas Schwab
2017-11-10 14:24 ` Devon Sean McCullough
2021-09-03 7:10 ` Lars Ingebrigtsen [this message]
2021-09-03 10:24 ` bug#29235: Builtin bsdtar decompression for .tar.xz not used Andreas Schwab
2021-09-03 10:45 ` Lars Ingebrigtsen
2021-09-24 15:07 ` Robert Pluim
2021-09-25 1:06 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871r663zik.fsf_-_@gnus.org \
--to=larsi@gnus.org \
--cc=29235@debbugs.gnu.org \
--cc=Emacs-Hacker2017@jovi.net \
--cc=schwab@linux-m68k.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.