README 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. Please glance through *all* sections of this
  2. `README' file before starting configuration. Also make sure you read files
  3. `ABOUT-NLS' and `INSTALL' if you are not familiar with them already.
  4. If you got the `tar' distribution in `shar' format, time stamps ought to be
  5. properly restored; do not ignore such complaints at `unshar' time.
  6. GNU `tar' saves many files together into a single tape or disk
  7. archive, and can restore individual files from the archive. It includes
  8. multivolume support, the ability to archive sparse files, automatic archive
  9. compression/decompression, remote archives and special features that allow
  10. `tar' to be used for incremental and full backups. This distribution
  11. also includes `rmt', the remote tape server. The `mt' tape drive control
  12. program is in the GNU `cpio' distribution.
  13. GNU `tar' is derived from John Gilmore's public domain `tar'.
  14. See file `ABOUT-NLS' for how to customize this program to your language.
  15. See file `COPYING' for copying conditions.
  16. See file `INSTALL' for compilation and installation instructions.
  17. See file `PORTS' for various ports of GNU tar to non-Unix systems.
  18. See file `NEWS' for a list of major changes in the current release.
  19. See file `THANKS' for a list of contributors.
  20. Besides those configure options documented in files `INSTALL' and
  21. `ABOUT-NLS', an extra option may be accepted after `./configure':
  22. * `--disable-largefile' omits support for large files, even if the
  23. operating system supports large files. Typically, large files are
  24. those larger on 2 GB on a 32-bit host.
  25. The default archive device is now `stdin' on read and `stdout' on write.
  26. The installer can still override this by presetting `DEFAULT_ARCHIVE'
  27. in the environment before configuring (the behavior of `-[0-7]' or
  28. `-[0-7]lmh' options in `tar' are then derived automatically). Similarly,
  29. `DEFAULT_BLOCKING' can be preset to something else than 20.
  30. For comprehensive modifications to GNU tar, you might need tools beyond
  31. those used in simple installations. Fully install GNU m4 1.4 first,
  32. and only then, Autoconf 2.13 or later. Install Perl, then Automake
  33. 1.4 or later. You might need Bison 1.28 or later, and GNU tar itself.
  34. All are available on GNU archive sites, like in
  35. ftp://ftp.gnu.org/pub/gnu/.
  36. Send bug reports to `[email protected]'. (Beware, old-timers: it is
  37. `@gnu', not `@prep'; and not `bug-gnu-utils' anymore.) A bug report is
  38. an adequate description of the problem: your input, what you expected,
  39. what you got, and why this is wrong. Diffs are welcome, but they only
  40. describe a solution, from which the problem might be uneasy to infer.
  41. If needed, submit actual data files with your report. Small data files
  42. are preferred. Big files may sometimes be necessary, but do not send them
  43. to the report address; rather take special arrangement with the maintainer.
  44. Your feedback will help us to make a better and more portable package.
  45. Consider documentation errors as bugs, and report them as such. If you
  46. develop anything pertaining to `tar' or have suggestions, let us know
  47. and share your findings by writing at `[email protected]'.
  48. .--------------------.
  49. | Installation hints |
  50. `--------------------'
  51. Here are a few hints which might help installing `tar' on some systems.
  52. * gzip and bzip2.
  53. GNU tar uses the gzip and bzip2 programs to read and write compressed
  54. archives. If you don't have these programs already, you need to
  55. install them. Their sources can be found at:
  56. ftp://ftp.gnu.org/gnu/gzip/
  57. http://sourceware.cygnus.com/bzip2/
  58. If you see the following symptoms:
  59. $ tar -xzf file.tar.gz
  60. gzip: stdin: decompression OK, trailing garbage ignored
  61. tar: Child returned status 2
  62. then you have encountered a gzip incompatibility that should be fixed
  63. in gzip 1.3, which is not yet available as of this writing. You can
  64. work around the incompatibility by using a shell command like
  65. `gzip -d <file.tar.gz | tar -xzf -'.
  66. * Solaris issues.
  67. If you are compiling with GCC, you may need to upgrade GCC to 2.95.2
  68. or later before compiling GNU tar, as GNU tar exercises many features
  69. that can cause problems with older GCC versions, mostly having to do
  70. with mutations to Solaris system include files.
  71. Recent versions of Solaris tar sport a new -E option to generate
  72. extended headers in an undocumented format. GNU tar does not
  73. understand these headers.
  74. * Static linking.
  75. Some platform will, by default, prepare a smaller `tar' executable
  76. which depends on shared libraries. Since GNU `tar' may be used for
  77. system-level backups and disaster recovery, installers might prefer to
  78. force static linking, making a bigger `tar' executable maybe, but able to
  79. work standalone, in situations where shared libraries are not available.
  80. The way to achieve static linking varies between systems. Set LDFLAGS
  81. to a value from the table below, before configuration (see `INSTALL').
  82. Platform Compiler LDFLAGS
  83. (any) Gnu C -static
  84. AIX (vendor) "-bnso -bI:/lib/syscalls.exp"
  85. HPUX (vendor) -Wl,-a,archive
  86. IRIX (vendor) -non_shared
  87. OSF (vendor) -non_shared
  88. SCO 3.2v5 (vendor) -dn
  89. Solaris (vendor) -Bstatic
  90. SunOS (vendor) -Bstatic
  91. * Failed `incremen.sh'.
  92. In an NFS environment, lack of synchronization between machine clocks
  93. might create difficulties to any tool comparing dates and file time stamps,
  94. like `tar' in incremental dumps. This has been a recurrent problem in
  95. GNU Makefiles for the last few years. We would like a general solution.
  96. * BSD compatibility matters.
  97. Set LIBS to `-lbsd' before configuration (see `INSTALL') if the linker
  98. complains about `bsd_ioctl' (Slackware). Also set CPPFLAGS to
  99. `-I/usr/include/bsd' if <sgtty.h> is not found (Slackware).
  100. * OPENStep 4.2 swap files
  101. Tar cannot read the file /private/vm/swapfile.front (even as root).
  102. This file is not a real file, but some kind of uncompressed view of
  103. the real compressed swap file; there is no reason to back it up, so
  104. the simplest workaround is to avoid tarring this file.
  105. .------------------.
  106. | Special topics. |
  107. `------------------'
  108. Here are a few special matters about GNU `tar', not related to build
  109. matters. See previous section for such.
  110. * File attributes.
  111. About *security*, it is probable that future releases of `tar' will have
  112. some behavior changed. There are many pending suggestions to choose from.
  113. Today, extracting an archive not being `root', `tar' will restore suid/sgid
  114. bits on files but owned by the extracting user. `root' automatically gets
  115. a lot of special privileges, `-p' might later become required to get them.
  116. GNU `tar' does not properly restore symlink attributes. Various systems
  117. implement flavors of symbolic links showing different behavior and
  118. properties. We did not successfully sorted all these out yet. Currently,
  119. the `lchown' call will be used if available, but that's all.
  120. * POSIX compliance.
  121. GNU `tar' implements an early draft of the POSIX 1003.1 `ustar' standard
  122. which is different from the final standard. This will be progressively
  123. corrected over the incoming few years. Don't be mislead by the mere
  124. existence of the --posix option. Later releases will become able to
  125. read truly POSIX archives, and also to produce them under option. (Also,
  126. if you look at the internals, don't take the GNU extensions you see for
  127. granted, as they are planned to change.) GNU tar 2.0 will produce POSIX
  128. archives by default, but there is a long way before we get there.
  129. * What's next?
  130. In the future we will try to release tar-1.14 as soon as possible and
  131. start merging with paxutils afterwards. We'll also try to rewrite
  132. some parts of the documentation after paxutils has been merged.