reassign 679180 r-base-core
retitle 679180 arm* builds fail: SHLIB_LIBADD: No such file or directory
found 679180 2.15.1-1
thanks
I've narrowed the problem to the following snippet in
src/library/tools/R/install.R:
mconf <- readLines(file.path(R.home(),
paste0("etc", Sys.getenv("R_ARCH")),
"Makeconf"))
SHLIB_EXT <- sub(".*= ", "", grep("^SHLIB_EXT", mconf, value = TRUE))
SHLIB_LIBADD <- sub(".*= ", "", grep("^SHLIB_LIBADD", mconf, value = TRUE))
This should normally happen:
> mconf <- readLines(file.path(R.home(),
+ paste0("etc", Sys.getenv("R_ARCH")),
+ "Makeconf"))
> SHLIB_EXT <- sub(".*= ", "", grep("^SHLIB_EXT", mconf, value = TRUE))
> SHLIB_LIBADD <- sub(".*= ", "", grep("^SHLIB_LIBADD", mconf, value = TRUE))
> SHLIB_EXT
[1] ".so"
> SHLIB_LIBADD
[1] ""
but on harris.debian.org porterbox I get the following:
> mconf <- readLines(file.path(R.home(),
+ paste0("etc", Sys.getenv("R_ARCH")),
+ "Makeconf"))
> SHLIB_EXT <- sub(".*= ", "", grep("^SHLIB_EXT", mconf, value = TRUE))
> SHLIB_LIBADD <- sub(".*= ", "", grep("^SHLIB_LIBADD", mconf, value = TRUE))
> SHLIB_EXT
[1] "SHLIB_EXT .so"
> SHLIB_LIBADD
[1] "SHLIB_LIBADD "
It seems sub is not behaving good:
> test <- "Hello world = hi"
> sub(".*=", "", test)
[1] "Hello world hi"
> sub(".* =", "", test)
[1] "Hello hi"
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]