Thanks, Peter, and Prof. Ripley. My efforts last night was mostly futile except that it told me about the embedded newline in Built field. Prof. Ripley: how do I get your fixes? Can I just download R-2.0.0-patched? Rajiv -------- Rajiv Prasad Scientist, Hydrology Group Pacific Northwest National Laboratory, P.O. Box 999, MSIN K9-33 Richland, WA 99352 Voice: (509) 375-2096 Fax: (509) 372-6089 Email: rajiv.prasad@pnl.gov -----Original Message----- From: Prof Brian Ripley [mailto:ripley@stats.ox.ac.uk] Sent: Sunday, October 17, 2004 5:59 AM To: Peter Dalgaard Cc: Prasad, Rajiv; r-devel@stat.math.ethz.ch Subject: Re: [Rd] Re: [R] Problem Compiling R-2.0.0 on Linux Alpha On 17 Oct 2004, Peter Dalgaard wrote:> This is not an architecture-specific bug at all, it just happens to be> tickled by the specific length of "alphapca56-unknown-linux-gnu"! > > I'm unsure whether the problem is in read.dcf or whether > split_description could just use strsplit(Built, ";[ \n]") and begone > with it. The latter should be a workaround for you in either case.The problem is in .install_package_description: the Built: field must not be split across lines. (The newline does not have to added after ;, so your fix is not 100% adequate.) I've fixed .install_package_description. -- 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 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Prof Brian Ripley
2004-Oct-17 18:46 UTC
[Rd] Re: [R] Problem Compiling R-2.0.0 on Linux Alpha
On Sun, 17 Oct 2004, Prasad, Rajiv wrote:> Thanks, Peter, and Prof. Ripley. > > My efforts last night was mostly futile except that it told me about the > embedded newline in Built field. > > Prof. Ripley: how do I get your fixes? Can I just download > R-2.0.0-patched?Yes, tomorrow's tarball unless you want to get it from the SVN archive. The change is in src/library/tools/R/admin.R and looks like Built <- paste("R ", paste(R.version[c("major", "minor")], collapse = "."), "; ", if(file_test("-d", file.path(dir, "src"))) OStype else "", "; ", ## Prefer date in ISO 8601 format. ## Could also use ## format(Sys.time(), "%a %b %d %X %Y") Sys.time(), "; ", .OStype(), sep = "") ## we must not split the Built: field across lines writeLines(c(formatDL(names(db), db, style = "list"), paste("Built", Built, sep=": ")), file.path(outDir, "DESCRIPTION")) db["Built"] <- Built Obviously I have not tested on an Alphabc...tuvwxyz system but it should work there. -- 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 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Peter Dalgaard
2004-Oct-17 18:55 UTC
[Rd] Re: [R] Problem Compiling R-2.0.0 on Linux Alpha
"Prasad, Rajiv" <Rajiv.Prasad@pnl.gov> writes:> Thanks, Peter, and Prof. Ripley. > > My efforts last night was mostly futile except that it told me about the > embedded newline in Built field. > > Prof. Ripley: how do I get your fixes? Can I just download > R-2.0.0-patched?With a little patience, yes... (The R-2.0.0-patched tarballs are made daily, and it's just a few hours since Brian committed his fix). Or, in a pinch, just get the fixed file directly from the repository: https://svn.r-project.org/R/branches/R-2-0-patches/src/library/tools/R/admin.R (In principle, that gives you a version of R that claims to be 2.0.0 in spite of being altered, but for a tiny change like this I don't think it matters.) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907