[Rd] GNU tar does not ignore files in .Rbuildignore (PR#1339)

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Sat, 2 Mar 2002 08:56:55 +0100 (MET)


This appears to be a bug in GNU tar 1.13 and not in R.  I can confirm it
for that version of tar on Solaris, but was aware that it went away when
the cygwin port moved to later versions.  All of 1.13.17 on Linux, 1.13.19
on cygwin and 1.13.25 (which I have just built on Solaris from
alpha.gnu.org) work correctly.  My memory is that 1.12 used to work, too.

Assuming info is finding the correct manual for 1.13, my reading of the
definition of exclude patterns is that build has it correct.

I don't like using alpha software in production work, but the lack of a GNU
tar release since 1999 makes this essential and it looks like all the
common Linux distributions supply later versions.

On Sat, 2 Mar 2002 daven@llnl.gov wrote:

> Full_Name: David O. Nelson
> Version: 1.4.1
> OS: solaris 2.7
> Submission from: (NULL) (128.115.150.74)
>
>
> Putting patterns in .Rbuildignore has no effect when the tar being used is gnu
> tar (1.13) on solaris 2.7, whilst /usr/sbin/tar works perfectly.
>
> TO REPRODUCE:
>
> The current directory contains a source package directory ./mypkg...
>
> bimini.jgi-psf.org% echo >mypkg/foo
> bimini.jgi-psf.org% echo "foo" >mypkg/.Rbuildignore
> bimini.jgi-psf.org% R CMD build mypkg
> * checking for file `mypkg/DESCRIPTION' ... OK
> * preparing `mypkg':
> * checking whether `INDEX' is up-to-date ... NO
> * creating new INDEX
> * removing junk files
> * building `mypkg_0.1.tar.gz'
>
> bimini.jgi-psf.org% gzcat mypkg_0.1.tar.gz |tar tf -
> mypkg/
> mypkg/DESCRIPTION
> mypkg/R/
> mypkg/R/First.lib.R
> mypkg/INDEX
> mypkg/man/
> mypkg/man/First.lib.Rd
> bimini.jgi-psf.org% setenv PATH /usr/local/bin:$PATH
> bimini.jgi-psf.org% tar --version
> tar (GNU tar) 1.13
>
> Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> Written by John Gilmore and Jay Fenlason.
> bimini.jgi-psf.org% R CMD build mypkg
> * checking for file `mypkg/DESCRIPTION' ... OK
> * preparing `mypkg':
> * checking whether `INDEX' is up-to-date ... OK
> * removing junk files
> * building `mypkg_0.1.tar.gz'
>
> bimini.jgi-psf.org% gzcat mypkg_0.1.tar.gz | tar tf -
> mypkg/
> mypkg/foo
> mypkg/DESCRIPTION
> mypkg/.Rbuildignore
> mypkg/R/
> mypkg/R/First.lib.R
> mypkg/INDEX
> mypkg/man/
> mypkg/man/First.lib.Rd
> bimini.jgi-psf.org%
>
>
> THE PROBLEM:
>
> The exclude file produced by build and placed in /tmp/Rbuild.$$ contain file
> names of the form mypkg/xxx, where mypkg is the package directory and xxx is the
> path name relative to mypkg. This is the format accepted by /usr/sbin/tar,
> whilst gnu tar expects patterns without the preceding package name mypkg/.
>
>
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._