From p.dalgaard at biostat.ku.dk  Sun Oct 17 13:53:15 2004
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Sun Oct 17 13:56:28 2004
Subject: [Rd] Re: [R] Problem Compiling R-2.0.0 on Linux Alpha
In-Reply-To: <AF293AF0A07C8A44A6098DA99D037130089270@pnlmse24.pnl.gov>
References: <AF293AF0A07C8A44A6098DA99D037130089270@pnlmse24.pnl.gov>
Message-ID: <x23c0d8st0.fsf@biostat.ku.dk>

"Prasad, Rajiv" <Rajiv.Prasad@pnl.gov> writes:

> Thanks for the reply, Peter.
> 
> The build is done in a clean directory, and --without-tcltk does not
> help.  I thought it is much better to track this down and fix it anyway.
> 
> Agreed there aren't too many Alphas out there anymore, but I plan to
> keep mine going for a while -- sweet machine. :-)
> 
> So, I looked into the DESCRIPTION file for package tcltk, and here it
> is:
> 
> [rajiv@localhost tcltk]$ more DESCRIPTION
> Package: tcltk
> Version: 2.0.0
> Priority: base
> Title: Tcl/Tk Interface
> Author: R Development Core Team
> Maintainer: R Core Team <R-core@r-project.org>
> Description: Interface and language bindings to Tcl/Tk GUI elements
> License: GPL Version 2 or later.
> Built: R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37;
>         unix
...
> I'm going to manually edit the DESCRIPTION files and remove the newlines
> and continue with make from the point where it stopped previously.
> We'll see if that fixes it.  Will edit .split_description to include the
> print statements you mentioned.

This would seem to be a bug, somewhere... 

> db[,"Built"] <- "R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37; unix"
> db
     Package Version Priority Title              Author
[1,] "tcltk" "2.0.0" "base"   "Tcl/Tk Interface" "R Development Core Team"
     Maintainer
[1,] "R Core Team <R-core@r-project.org>"
     Description
[1,] "Interface and language bindings to Tcl/Tk GUI elements"
     License
[1,] "GPL Version 2 or later."
     Built
[1,] "R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37; unix"
> write.dcf(db,file="YYYY")
> read.dcf("YYYY")
     Package Version Priority Title              Author
[1,] "tcltk" "2.0.0" "base"   "Tcl/Tk Interface" "R Development Core Team"
     Maintainer
[1,] "R Core Team <R-core@r-project.org>"
     Description
[1,] "Interface and language bindings to Tcl/Tk GUI elements"
     License
[1,] "GPL Version 2 or later."
     Built
[1,] "R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37;\nunix"

which jives really badly with the

    if (!is.na(Built <- db["Built"])) {
        Built <- as.list(strsplit(Built, "; ")[[1]])
        names(Built) <- c("R", "Platform", "Date", "OStype")
        Built[["R"]] <- package_version(sub("^R ([0-9.]+)", "\\1",
            Built[["R"]]))
    }

inside tools:::.split_description .  

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.

[Moved from r-help to r-devel]

        -p

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


[Rd] Re: [R] Problem Compiling R-2.0.0 on Linux Alpha
Peter Dalgaard