From 4a8c23a99f8ebc6f9d261b9cc7ef1b242e92ad6b Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sun, 16 May 2010 23:30:46 +0000 Subject: - Fix on 6.X Submitted by: b. f. --- math/R/Makefile | 4 ++++ math/R/files/freebsd6_tar_patch | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 math/R/files/freebsd6_tar_patch (limited to 'math/R') diff --git a/math/R/Makefile b/math/R/Makefile index 750e6eb759ae..8fd728ffb5b0 100644 --- a/math/R/Makefile +++ b/math/R/Makefile @@ -80,6 +80,10 @@ CONFIGURE_ARGS= --with-system-bzlib --with-system-zlib rdocdir=${DOCSDIR} .include +.if ${OSVERSION} < 700000 +EXTRA_PATCHES+= ${FILESDIR}/freebsd6_tar_patch +.endif + .if !defined(LIBRMATH_SLAVEPORT) .if defined(WITH_ATLAS) LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas diff --git a/math/R/files/freebsd6_tar_patch b/math/R/files/freebsd6_tar_patch new file mode 100644 index 000000000000..c65b6ef7096e --- /dev/null +++ b/math/R/files/freebsd6_tar_patch @@ -0,0 +1,15 @@ +--- src/library/tools/R/install.R.orig 2010-05-16 07:18:27.000000000 -0400 ++++ src/library/tools/R/install.R 2010-05-16 07:29:30.000000000 -0400 +@@ -1019,7 +1019,11 @@ + of <- dir(tmpdir, full.names = TRUE) + ## force the use of internal untar unless over-ridden + ## so e.g. .tar.xz works everywhere +- TAR <- Sys.getenv("R_INSTALL_TAR", "internal") ++ ## Disable the default use of the internal tar on FreeBSD 6.X, it segfaults ++ ## on the default package MASS. This means that packages with lzma-compressed tarballs ++ ## will not be usable on FreeBSD 6.X versions before the import of xz, so ++ ## a better solution should be found. ++ ## TAR <- Sys.getenv("R_INSTALL_TAR", "internal") + if (untar(pkg, exdir = tmpdir, tar = TAR)) + errmsg("error unpacking tarball") + ## Now see what we got -- cgit v1.2.3