generate_changelog_entry <- function(build, changelog) {
# TODO: should say 'New upstream release' when necessary
- debversion <- version_new(build$r_version, build$deb_revision, build$deb_epoch)
- cat(paste(paste(build$srcname,' (',debversion,') testing; urgency=low',sep='')
+ debversion <- version_new(build$r_version, pkgname=build$package, build$deb_revision, build$deb_epoch)
+ cat(paste(paste(build$srcname,' (',debversion,') unstable; urgency=low',sep='')
,'' ,paste(' * cran2deb ',build$scm_revision
,' with DB version ',as.integer(build$db_version),'.',sep='')
,'',paste(' --',maintainer,'',format(build$date_stamp,'%a, %d %b %Y %H:%M:%S %z'))
,'include /usr/share/R/debian/r-cran.mk'
,'',sep='\n')
,file=pkg$debfile('rules'))
+ if (pkg$name %in% c("Rmpi", "npRmpi", "doMPI")) {
+ cat("extraInstallFlags=\"--no-test-load\"\n", file=pkg$debfile('rules'), append=TRUE)
+ }
Sys.chmod(pkg$debfile('rules'),'0700')
}
# says: ``The sources and headers for the compiled code are in src, plus
# optionally file Makevars or Makefile.'' It seems unlikely that
# architecture independent code would end up here.
- if (pkg$is_bundle) {
- # if it's a bundle, check each of the packages
- pkg$archdep = F
- for (pkgname in r_bundle_contains(pkg$name)) {
- pkg$archdep = file.exists(file.path(pkg$path,pkgname,'src'))
- if (pkg$archdep) {
- break
- }
- }
- } else {
- pkg$archdep = file.exists(file.path(pkg$path,'src'))
- }
+ pkg$archdep = file.exists(file.path(pkg$path,'src'))
pkg$arch <- 'all'
if (pkg$archdep) {
pkg$arch <- host_arch()