(extract_archive): When marking a directory to be updated after
[debian/tar] / README-alpha
1 This is a test release of GNU tar.
2
3 Please send comments and problem reports to <bug-tar@gnu.org>.
4
5         Copyright 2001 Free Software Foundation, Inc.
6
7         This file is part of GNU tar.
8
9         GNU tar is free software; you can redistribute it and/or modify
10         it under the terms of the GNU General Public License as published by
11         the Free Software Foundation; either version 2, or (at your option)
12         any later version.
13
14         GNU tar is distributed in the hope that it will be useful,
15         but WITHOUT ANY WARRANTY; without even the implied warranty of
16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17         GNU General Public License for more details.
18
19         You should have received a copy of the GNU General Public License
20         along with tar; see the file COPYING.  If not, write to
21         the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22         Boston, MA 02111-1307, USA.
23
24 This release was built with GNU automake 1.5 patched as follows:
25
26 2001-09-14  Paul Eggert  <eggert@twinsun.com>
27
28         * lib/am/distdir.am (REMOVE_DISTDIR):
29         New macro.  Do not change permission of non-directories.
30         (distdir, dist, dist-bzip2, dist-tarZ, dist-shar, dist-zip, dist-all,
31          distcheck): Use it.
32
33 ===================================================================
34 RCS file: lib/am/distdir.am,v
35 retrieving revision 1.5
36 retrieving revision 1.5.0.1
37 diff -pu -r1.5 -r1.5.0.1
38 --- lib/am/distdir.am   2001/07/14 20:12:52     1.5
39 +++ lib/am/distdir.am   2001/09/15 05:12:18     1.5.0.1
40 @@ -29,6 +29,11 @@ else !%?TOPDIR_P%
41  ?DISTDIR?distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
42  endif !%?TOPDIR_P%
43  
44 +REMOVE_DISTDIR = \
45 +  { test ! -d $(distdir) \
46 +    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
47 +         && rm -fr $(distdir); }; }
48 +
49  distdir: $(DISTFILES)
50  ##
51  ## For Gnits users, this is pretty handy.  Look at 15 lines
52 @@ -47,7 +52,7 @@ endif %?TOPDIR_P%
53  ## Only for the top dir.
54  ##
55  if %?TOPDIR_P%
56 -       -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
57 +       $(REMOVE_DISTDIR)
58         mkdir $(distdir)
59  endif %?TOPDIR_P%
60  ##
61 @@ -168,13 +173,13 @@ GZIP_ENV = --best
62  .PHONY: dist
63  dist: distdir
64         $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
65 -       -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
66 +       $(REMOVE_DISTDIR)
67  
68  if  %?BZIP2%
69  .PHONY: dist-bzip2
70  dist-bzip2: distdir
71         $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
72 -       -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
73 +       $(REMOVE_DISTDIR)
74  endif  %?BZIP2%
75  
76  
77 @@ -182,7 +187,7 @@ if  %?COMPRESS%
78  .PHONY: dist-tarZ
79  dist-tarZ: distdir
80         $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
81 -       -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
82 +       $(REMOVE_DISTDIR)
83  endif  %?COMPRESS%
84  
85  
86 @@ -190,7 +195,7 @@ if  %?SHAR%
87  .PHONY: dist-shar
88  dist-shar: distdir
89         shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
90 -       -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
91 +       $(REMOVE_DISTDIR)
92  endif  %?SHAR%
93  
94  
95 @@ -199,7 +204,7 @@ if  %?ZIP%
96  dist-zip: distdir
97         -rm -f $(distdir).zip
98         zip -rq $(distdir).zip $(distdir)
99 -       -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
100 +       $(REMOVE_DISTDIR)
101  endif  %?ZIP%
102  
103  endif %?TOPDIR_P%
104 @@ -223,7 +228,7 @@ dist-all: distdir
105  ?SHAR? shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
106  ?ZIP?  -rm -f $(distdir).zip
107  ?ZIP?  zip -rq $(distdir).zip $(distdir)
108 -       -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
109 +       $(REMOVE_DISTDIR)
110  
111  endif %?TOPDIR_P%
112  
113 @@ -239,8 +244,7 @@ if %?TOPDIR_P%
114  # tarfile.
115  .PHONY: distcheck
116  distcheck: dist
117 -## Make sure we can remove distdir before trying to remove it.
118 -       -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
119 +       $(REMOVE_DISTDIR)
120         GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
121  ## Make the new source tree read-only.  Distributions ought to work in
122  ## this case.  However, make the top-level directory writable so we
123 @@ -273,7 +277,7 @@ distcheck: dist
124           && (test `find . -type f -print | wc -l` -eq 0 \
125              || (echo "Error: files left after distclean" 1>&2; \
126                  exit 1) )
127 -       -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
128 +       $(REMOVE_DISTDIR)
129         @echo "$(distdir).tar.gz is ready for distribution" | \
130           sed 'h;s/./=/g;p;x;p;x'
131  endif %?TOPDIR_P%
132
133
134
135 and with GNU autoconf 2.52 patched as follows:
136
137 2001-09-15  Paul Eggert  <eggert@twinsun.com>
138
139         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with
140         CFLAGS=-O4 or CFLAGS=-O5.  In that case, the linker has a
141         relaxed view of fatal errors, and AC_CHECK_LIB causes it to
142         include libraries even when they don't exist.
143
144         * acheaders.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS, not
145         AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
146         need it.
147
148         * acspecific.m4 (AC_ISC_POSIX): Replace the old, crufty
149         version with the version used by fileutils 4.1, except use
150         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use
151         -lcposix if we don't need it.
152
153 ===================================================================
154 RCS file: acheaders.m4,v
155 retrieving revision 2.52
156 retrieving revision 2.52.0.1
157 diff -pu -r2.52 -r2.52.0.1
158 --- acheaders.m4        2001/07/03 14:19:09     2.52
159 +++ acheaders.m4        2001/09/16 02:53:51     2.52.0.1
160 @@ -158,9 +158,9 @@ ac_header_dirent=$ac_hdr; break])
161  done
162  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
163  if test $ac_header_dirent = dirent.h; then
164 -  AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir")
165 +  AC_SEARCH_LIBS(opendir, dir)
166  else
167 -  AC_CHECK_LIB(x, opendir, LIBS="$LIBS -lx")
168 +  AC_SEARCH_LIBS(opendir, x)
169  fi
170  ])# AC_HEADER_DIRENT
171  
172 ===================================================================
173 RCS file: acspecific.m4,v
174 retrieving revision 2.52
175 retrieving revision 2.52.0.1
176 diff -pu -r2.52 -r2.52.0.1
177 --- acspecific.m4       2001/06/15 17:46:01     2.52
178 +++ acspecific.m4       2001/09/16 02:53:51     2.52.0.1
179 @@ -993,28 +993,7 @@ fi
180  # AC_ISC_POSIX
181  # ------------
182  AC_DEFUN([AC_ISC_POSIX],
183 -[AC_REQUIRE([AC_PROG_CC])dnl
184 -AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
185 -AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
186 -AC_MSG_CHECKING([for POSIXized ISC])
187 -if test -d /etc/conf/kconfig.d &&
188 -   grep _POSIX_VERSION [/usr/include/sys/unistd.h] >/dev/null 2>&1
189 -then
190 -  AC_MSG_RESULT([yes])
191 -  ISC=yes # If later tests want to check for ISC.
192 -  AC_DEFINE(_POSIX_SOURCE, 1,
193 -            [Define if you need to in order for stat and other things to
194 -             work.])
195 -  if test "$GCC" = yes; then
196 -    CC="$CC -posix"
197 -  else
198 -    CC="$CC -Xp"
199 -  fi
200 -else
201 -  AC_MSG_RESULT([no])
202 -  ISC=
203 -fi
204 -])# AC_ISC_POSIX
205 +[AC_SEARCH_LIBS(strerror, cposix)])
206  
207  
208  # AC_XENIX_DIR