README 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. GNU `tar' 1.12.lfs.1 is an unofficial port of GNU `tar' 1.12 to Large
  2. File Summit (LFS) environments like Solaris 2.6 that rely on integer
  3. system types longer than `long'. Ordinary GNU `tar' 1.12 cannot handle
  4. files larger than 2 GB when compiled in such environments. This port
  5. addresses that problem. Please send bug reports specific to this
  6. unofficial version of GNU `tar' to <eggert@twinsun.com>.
  7. Please glance through *all* sections of this
  8. `README' file before starting configuration. Also make sure you read files
  9. `ABOUT-NLS' and `INSTALL' if you are not familiar with them already.
  10. If you got the `tar' distribution in `shar' format, timestamps ought to be
  11. properly restored, do not ignore such complaints at `unshar' time.
  12. GNU `tar' saves many files together into a single tape or disk
  13. archive, and can restore individual files from the archive. It includes
  14. multivolume support, the ability to archive sparse files, automatic archive
  15. compression/decompression, remote archives and special features that allow
  16. `tar' to be used for incremental and full backups. This distribution
  17. also includes `rmt', the remote tape server. The `mt' tape drive control
  18. program is in the GNU `cpio' distribution.
  19. GNU `tar' is derived from John Gilmore's public domain `tar'.
  20. See file `ABOUT-NLS' for how to customize this program to your language.
  21. See file `BACKLOG' for a summary of pending mail and articles.
  22. See file `COPYING' for copying conditions.
  23. See file `INSTALL' for compilation and installation instructions.
  24. See file `PORTS' for various ports of GNU tar to non-Unix systems.
  25. See file `NEWS' for a list of major changes in the current release.
  26. See file `THANKS' for a list of contributors.
  27. Besides those configure options documented in files `INSTALL' and
  28. `ABOUT-NLS', a few extra options may be accepted after `./configure':
  29. * `--with-included-malloc' or `--without-included-malloc' may override
  30. the automatic choice made by `configure' about using included GNU malloc.
  31. * `--with-dmalloc' is a debugging option for looking at memory management
  32. problems, it prerequires Gray Watson's package, which is available as
  33. `ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz'.
  34. The default archive device is now `stdin' on read and `stdout' on write.
  35. The installer can still override this by presetting `DEFAULT_ARCHIVE'
  36. in the environment before configuring (the behavior of `-[0-7]' or
  37. `-[0-7]lmh' options in `tar' are then derived automatically). Similarly,
  38. `DEFAULT_BLOCKING' can be preset to something else than 20.
  39. For comprehensive modifications to GNU tar, you might need tools beyond
  40. those used in simple installations. Fully install GNU m4 1.4 first,
  41. and only then, Autoconf 2.12 with officious patches held in `AC-PATCHES'.
  42. Install Perl, then Automake 1.1n with officious patches in `AM-PATCHES'.
  43. You might need Bison 1.25 with officious patches in `BI-PATCHES' (but yacc
  44. and byacc may be OK for you), and GNU tar itself. All are available on
  45. GNU archive sites, like in ftp://prep.ai.mit.edu/pub/gnu/, but Automake
  46. is still ftp://ftp.cygnus.com/pub/tromey/automake-1.1n.tar.gz.
  47. Send bug reports to `tar-bugs@gnu.ai.mit.edu'. (Beware, old-timers: it is
  48. `@gnu', not `@prep'; and not `bug-gnu-utils' anymore.) A bug report is
  49. an adequate description of the problem: your input, what you expected,
  50. what you got, and why this is wrong. Diffs are welcome, but they only
  51. describe a solution, from which the problem might be uneasy to infer.
  52. If needed, submit actual data files with your report. Small data files
  53. are preferred. Big files may sometimes be necessary, but do not send them
  54. to the report address; rather take special arrangement with the maintainer.
  55. Your feedback will help us to make a better and more portable package.
  56. Consider documentation errors as bugs, and report them as such. If you
  57. develop anything pertaining to `tar' or have suggestions, let us know
  58. and share your findings by writing at `tar-forum@iro.umontreal.ca'.
  59. .--------------------.
  60. | Installation hints |
  61. `--------------------'
  62. Here are a few hints which might help installing `tar' on some systems.
  63. * Static linking.
  64. Some platform will, by default, prepare a smaller `tar' executable
  65. which depends on shared libraries. Since GNU `tar' may be used for
  66. system-level backups and disaster recovery, installers might prefer to
  67. force static linking, making a bigger `tar' executable maybe, but able to
  68. work standalone, in situations where shared libraries are not available.
  69. The way to achieve static linking varies between systems. Set LDFLAGS
  70. to a value from the table below, before configuration (see `INSTALL').
  71. Platform Compiler LDFLAGS
  72. (any) Gnu C -static
  73. AIX (vendor) "-bnso -bI:/lib/syscalls.exp"
  74. HPUX (vendor) -Wl,-a,archive
  75. IRIX (vendor) -non_shared
  76. OSF (vendor) -non_shared
  77. SCO 3.2v5 (vendor) -dn
  78. Solaris (vendor) -Bstatic
  79. SunOS (vendor) -Bstatic
  80. * Failed `incremen.sh'.
  81. In an NFS environment, lack of synchronisation between machine clocks
  82. might create difficulties to any tool comparing dates and file timestamps,
  83. like `tar' in incremental dumps. This has been a recurrent problem in
  84. GNU Makefiles for the last few years. We would like a general solution.
  85. * BSD compatibility matters.
  86. Set LIBS to `-lbsd' before configuration (see `INSTALL') if the linker
  87. complains about undefined `valloc' (AIX) or `bsd_ioctl' (Slackware).
  88. Also set CPPFLAGS to `-I/usr/include/bsd/sys' before configuration to
  89. solve dirent problems (NeXT), or to `-I/usr/include/bsd' if <sgtty.h>
  90. is not found (Slackware).
  91. * `union wait' problems.
  92. Configuration of `union wait' does not always take the best decision.
  93. If you have this problem, edit file `config.cache' after configuration,
  94. find the line about `tar_cv_header_union_wait', change `yes' by `no'
  95. or vice-versa, execute `./config.status', then launch `make'.
  96. * `%lld' unsupported in `printf'.
  97. GNU C has `long long', but the underneath C library might not support
  98. the `%lld' format. If you have this problem, edit file `config.cache'
  99. after configuration, find the line about `ac_cv_sizeof_long_long, change
  100. `8' by `0', execute `./config.status', then launch `make'.
  101. * FreeBSD users -- `configure' fails.
  102. It has been reported that `configure' does not run on FreeBSD 2.1.7,
  103. because of a buggy `sh'. It works using `bash', however.
  104. * ISC users -- `S_*' symbols undefined.
  105. On ISC 4.1mu, POSIX environment, set CFLAGS to `-posix' and CPPFLAGS to
  106. `-D_SYSV3' before configuration (see `INSTALL'). This will trigger the
  107. definition of a few `S_' prefixed symbols from <sys/stat.h>.
  108. * Ultrix users -- broken `make'.
  109. It seems that Ultrix make does not correctly handle shell commands
  110. having logical connectives in them. Use `s5make' if you have it, try
  111. `PROG_ENV=SYSTEM_FIVE make' (works on Ultrix 4.4), or install GNU Make.
  112. .------------------.
  113. | Special topics. |
  114. `------------------'
  115. Here are a few special matters about GNU `tar', not related to build
  116. matters. See previous section for such.
  117. * File attributes.
  118. About *security*, it is probable that future releases of `tar' will have
  119. some behaviour changed. There are many pending suggestions to choose from.
  120. Today, extracting an archive not being `root', `tar' will restore suid/sgid
  121. bits on files but owned by the extracting user. `root' automatically gets
  122. a lot of special priviledges, `-p' might later become required to get them.
  123. GNU `tar' does not properly restore symlink attributes. Various systems
  124. implement flavours of symbolic links showing different behaviour and
  125. properties. We did not successfully sorted all these out yet. Currently,
  126. the `lchown' call will be used if available, but that's all.
  127. * POSIX compliance.
  128. GNU `tar' implements an early draft of the POSIX 1003.1 `ustar' standard
  129. which is different from the final standard. This will be progressively
  130. corrected over the incoming few years. Don't be mislead by the mere
  131. existence of the --posix option. Later releases will become able to
  132. read truly POSIX archives, and also to produce them under option. (Also,
  133. if you look at the internals, don't take the GNU extensions you see for
  134. granted, as they are planned to change.) GNU tar 2.0 will produce POSIX
  135. archives by default, but there is a long way before we get there.
  136. * What's next?
  137. The emphasis from 1.11.2 to 1.12 has been on solving the main portability,
  138. execution or usability bugs. This was accompanied all over with an
  139. internal cleanup in the sources, and the reassembly of a `tar' manual.
  140. The `BACKLOG' file shows an approximative priorisation of the many pending
  141. problems and suggestions. Besides pending problems and all other matters
  142. listed above, the cleanup is planned to continue and extend to the general
  143. organisation of the code, preparing a long time in advance for a possible
  144. merge of the `cpio' and `tar' distributions, into some common `paxutils'.
  145. We also want to address some long-awaited performance issues (for example:
  146. double buffering) or enhancements (for example: per-file compression).