Selaa lähdekoodia

man: Document in detail the currently supported deb format

Ar member names, types of tar archives and data.tar members.
Guillem Jover 17 vuotta sitten
vanhempi
commit
170d5f6c9b
3 muutettua tiedostoa jossa 24 lisäystä ja 7 poistoa
  1. 5 0
      ChangeLog
  2. 2 0
      debian/changelog
  3. 17 7
      man/deb.5

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2009-02-06  Guillem Jover  <guillem@debian.org>
+
+	* man/deb.5: Add detailed information of the currently supported
+	format.
+
 2009-02-06  Guillem Jover  <guillem@debian.org>
 2009-02-06  Guillem Jover  <guillem@debian.org>
 
 
 	* ostable: Add gnu-kopensolaris.
 	* ostable: Add gnu-kopensolaris.

+ 2 - 0
debian/changelog

@@ -57,6 +57,8 @@ dpkg (1.15.0) UNRELEASED; urgency=low
     Closes: #505172
     Closes: #505172
   * Remove unneeded cpio dependency from dpkg-dev.
   * Remove unneeded cpio dependency from dpkg-dev.
   * Add kopensolaris support to ostable and triplettable. Closes: #509312
   * Add kopensolaris support to ostable and triplettable. Closes: #509312
+  * Document in deb.5 in detail the currently supported format, ar member
+    names, types of tar archives and data.tar members.
 
 
   [ Raphael Hertzog ]
   [ Raphael Hertzog ]
   * Enhance dpkg-shlibdeps's error message when a library can't be found to
   * Enhance dpkg-shlibdeps's error message when a library can't be found to

+ 17 - 7
man/deb.5

@@ -1,4 +1,4 @@
-.TH deb 5 "2006-02-28" "Debian Project" "Debian"
+.TH deb 5 "2009-02-06" "Debian Project" "Debian"
 .SH NAME
 .SH NAME
 deb \- Debian binary package format
 deb \- Debian binary package format
 .SH SYNOPSIS
 .SH SYNOPSIS
@@ -16,8 +16,14 @@ old format are described in
 .SH FORMAT
 .SH FORMAT
 The file is an
 The file is an
 .B ar
 .B ar
-archive with a magic number of
+archive with a magic value of
 .BR !<arch> .
 .BR !<arch> .
+The file names might contain a trailing slash.
+.PP
+The \fBtar\fP archives currently allowed are, the old-style (v7) format,
+the pre-POSIX ustar format, a subset of the GNU format (only the new
+style long pathnames and long linknames, supported since dpkg 1.4.1.17).
+Unrecognized tar typeflags are considered an error.
 .PP
 .PP
 The first member is named
 The first member is named
 .B debian-binary
 .B debian-binary
@@ -45,23 +51,27 @@ tarball may optionally contain an entry for
 the current directory.
 the current directory.
 .PP
 .PP
 The third, last required member is named
 The third, last required member is named
-.BR data.tar.gz .
-It contains the filesystem archive as a gzipped tar archive.
+.BR data.tar .
+It contains the filesystem as a tar archive, either
+not compressed (supported since dpkg 1.10.24), or compressed with
+gzip (with \fB.gz\fP extension),
+bzip2 (with \fB.bz2\fP extension, supported since dpkg 1.10.24) or
+lzma (with \fB.lzma\fP extension, supported since dpkg 1.13.25).
 .PP
 .PP
 These members must occur in this exact order. Current implementations
 These members must occur in this exact order. Current implementations
 should ignore any additional members after
 should ignore any additional members after
-.BR data.tar.gz .
+.BR data.tar .
 Further members may be defined in the future, and (if possible) will be
 Further members may be defined in the future, and (if possible) will be
 placed after these three. Any additional members that may need to be
 placed after these three. Any additional members that may need to be
 inserted before
 inserted before
-.B data.tar.gz
+.B data.tar
 and which should be safely ignored by older programs, will have names
 and which should be safely ignored by older programs, will have names
 starting with an underscore,
 starting with an underscore,
 .RB ` _ '.
 .RB ` _ '.
 .PP
 .PP
 Those new members which won't be able to be safely ignored will be
 Those new members which won't be able to be safely ignored will be
 inserted before
 inserted before
-.B data.tar.gz
+.B data.tar
 with names starting with something other than underscores, or will
 with names starting with something other than underscores, or will
 (more likely) cause the major version number to be increased.
 (more likely) cause the major version number to be increased.
 .SH SEE ALSO
 .SH SEE ALSO