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

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Sun 17 Oct 2004 - 21:53:15 EST

"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

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun Oct 17 22:02:25 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:00:36 EST