]> git.donarmstrong.com Git - cran2deb.git/commitdiff
the Rmpi and npRmpi packages fail at the end of R CMD INSTALL because the test load...
authoredd <edd@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Thu, 10 Jun 2010 14:50:24 +0000 (14:50 +0000)
committeredd <edd@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Thu, 10 Jun 2010 14:50:24 +0000 (14:50 +0000)
so added a crude hack that when the debian/rules is written, 'extraInstallArgs="--no-test-load"' is added (as I do for Debian's Rmpi package)
conceivably we may want to generalise this one day as we do for lintian tests and patches and either look at at directory or a db table

git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@315 edb9625f-4e0d-4859-8d74-9fd3b1da38cb

TODO
trunk/R/debianpkg.R

diff --git a/TODO b/TODO
index 8542fe8257fd33d65b7b74902b2c5222a4e90e42..165c7ac8e9a9a285e0bf2c8bf6dc2670fa2c34dd 100644 (file)
--- a/TODO
+++ b/TODO
@@ -12,5 +12,6 @@ sooner
 later:
  - split up dependency structure to support building under different distributions
  - force'ing to a non-existent alias should fail.
-
-
+ - (rev315) the Rmpi and npRmpi packages fail at the end of R CMD INSTALL because the test load of the package fails (outside of an MPI context)
+   so added a crude hack that when the debian/rules is written, 'extraInstallArgs="--no-test-load"' is added (as I do for Debian's Rmpi package)
+   conceivably we may want to generalise this one day as we do for lintian tests and patches and either look at at directory or a db table
index e3656d31e8ae284133600aef506fe2db0a9ac618..8e3f8d8279839a7c463ee19a42d7341b30ce3ac1 100644 (file)
@@ -37,6 +37,9 @@ generate_rules <- function(pkg) {
              ,'include /usr/share/R/debian/r-cran.mk'
              ,'',sep='\n')
        ,file=pkg$debfile('rules'))
+    if (pkg$name %in% c("Rmpi", "npRmpi")) {
+        cat("extraInstallFlags=\"--no-test-load\"\n", file=pkg$debfile('rules'), append=TRUE)
+    }      
     Sys.chmod(pkg$debfile('rules'),'0700')
 }