From daven@llnl.gov  Sat Mar  2 00:19:27 2002
From: daven@llnl.gov (daven@llnl.gov)
Date: Sat, 2 Mar 2002 01:19:27 +0100 (MET)
Subject: [Rd] GNU tar does not ignore files in .Rbuildignore (PR#1339)
Message-ID: <200203020019.BAA18363@pubhealth.ku.dk>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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