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