public inbox for gentoo-pms@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-pms] [PATCH] unpack: Fix list of suffixes for tar.gz, tar.bz2, and lha files.
@ 2013-02-19  0:11 Ulrich Mueller
  0 siblings, 0 replies; only message in thread
From: Ulrich Mueller @ 2013-02-19  0:11 UTC (permalink / raw
  To: gentoo-pms

I've noticed two mistakes in the suffix list for unpack:
  - *.tbz is listed under gzip-compressed tar files, but belongs under
    bzip2-compressed tar files
  - *.lhz should be *.lzh (both Portage and Paludis say so)

The patch included below fixes this. I've also rearranged some lines,
so that all gzip and bzip2 compressed files are grouped together.

However, with gzip there's another inconsistency:
  - *.gz *.Z *.z for gzip
  - *.tar.gz *.tgz *.tar.Z for gzip-compressed tar (i.e., no *.tar.z)
I wonder what was the intention here. *.Z was the old Unix compress
(which can be unpacked by gzip though). *.z was used by the very first
gzip versions, but that was 20 years ago. And in fact, there's no *.z
file on our distfile mirrors.

As the spec doesn't mention *.tar.z, maybe we should drop *.z too?

Ulrich


From 9bd561afd4b03f472b91a52f33f923707740dc88 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@gentoo.org>
Date: Tue, 19 Feb 2013 00:14:37 +0100
Subject: [PATCH] unpack: Fix list of suffixes for tar.gz, tar.bz2, and lha
 files.

---
 pkg-mgr-commands.tex | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
index 06856e2..a931a04 100644
--- a/pkg-mgr-commands.tex
+++ b/pkg-mgr-commands.tex
@@ -769,16 +769,16 @@ has returned.
     relevant binaries are available:
     \begin{itemize}
     \item tar files (\t{*.tar}). Ebuilds must ensure that GNU tar installed.
-    \item gzip-compressed tar files (\t{*.tar.gz, *.tgz, *.tar.Z, *.tbz}). Ebuilds must ensure that
+    \item gzip files (\t{*.gz, *.Z, *.z}). Ebuilds must ensure that GNU gzip is installed.
+    \item gzip-compressed tar files (\t{*.tar.gz, *.tgz, *.tar.Z}). Ebuilds must ensure that
     GNU gzip and GNU tar are installed.
-    \item bzip2-compressed tar files (\t{*.tar.bz2, *.tbz2, *.tar.bz}). Ebuilds must ensure that
-    bzip2 and GNU tar are installed.
+    \item bzip2 files (\t{*.bz2, *.bz}). Ebuilds must ensure that bzip2 is installed.
+    \item bzip2-compressed tar files (\t{*.tar.bz2, *.tbz2, *.tar.bz, *.tbz}). Ebuilds must ensure
+    that bzip2 and GNU tar are installed.
     \item zip files (\t{*.zip, *.ZIP, *.jar}). Ebuilds must ensure that Info-ZIP Unzip is installed.
-    \item gzip files (\t{*.gz, *.Z, *.z}). Ebuilds must ensure that GNU gzip is installed.
-    \item bzip2 files (\t{*.bz, *.bz2}). Ebuilds must ensure that bzip2 is installed.
     \item 7zip files (\t{*.7z, *.7Z}). Ebuilds must ensure that P7ZIP is installed.
     \item rar files (\t{*.rar, *.RAR}). Ebuilds must ensure that RARLAB's unrar is installed.
-    \item LHA archives (\t{*.LHA, *.LHa, *.lha, *.lhz}). Ebuilds must ensure that the lha program is
+    \item LHA archives (\t{*.LHA, *.LHa, *.lha, *.lzh}). Ebuilds must ensure that the lha program is
     installed.
     \item ar archives (\t{*.a}). Ebuilds must ensure that GNU binutils is installed.
     \item deb packages (\t{*.deb}). Ebuilds must ensure that the deb2targz program is installed on
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-19  0:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-19  0:11 [gentoo-pms] [PATCH] unpack: Fix list of suffixes for tar.gz, tar.bz2, and lha files Ulrich Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox