]> git.donarmstrong.com Git - cran2deb.git/log
cran2deb.git
15 years agoctv: make CRAN task view mass building work again. (take 2)
blundellc [Sat, 13 Sep 2008 13:19:30 +0000 (13:19 +0000)]
ctv: make CRAN task view mass building work again. (take 2)

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

15 years agoupdate_cache: use Rscript instead of littler.
blundellc [Sat, 13 Sep 2008 13:19:22 +0000 (13:19 +0000)]
update_cache: use Rscript instead of littler.

litter sets tempdir() to /tmp (or whatever is in one of the many TMP
environment variables) whereas Rscript is as R: tempdir() returns a
per-session temporary directory. Rscript seems more sane on this one.

Manifested as a bug:
cran2deb update
cran2deb build DPpackage
-> 404 no such package found in CRAN

-> but DPpackage in available.packages?!
-> available.packages using old cache (hence old version of package
metadata)
Rscript cleans up each time. littler doesn't.

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

15 years agoctv: make CRAN task view mass building work again.
blundellc [Sat, 13 Sep 2008 13:19:15 +0000 (13:19 +0000)]
ctv: make CRAN task view mass building work again.

this just means you can now do:
$ cran2deb build_ctv
to build every task view, whereas previously the code had not
be adapted to use the cran2deb wrapper script.

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

15 years agobuild: don't try to upload a dependency that is already in the Debian archive.
blundellc [Sat, 13 Sep 2008 13:19:05 +0000 (13:19 +0000)]
build: don't try to upload a dependency that is already in the Debian archive.

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

15 years agobuild: check if packages exist already in Debian.
blundellc [Sat, 13 Sep 2008 13:18:56 +0000 (13:18 +0000)]
build: check if packages exist already in Debian.

uses Dirk's trick of forking apt-cache rdepend r-base-core

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

15 years agodepends+license: use boolean masking on arrow of rownames instead of directly on...
blundellc [Sat, 13 Sep 2008 13:18:48 +0000 (13:18 +0000)]
depends+license: use boolean masking on arrow of rownames instead of directly on available when reversing arcs. typo in license simplification.

since R, like MATLAB, treats containers as size 1 as scalars (at least
in some cases), it seems that foo[x,drop = F] where x is a container has
sometimes surprising results (e.g., forgetting rownames), particularly
when x is of size 1 and/or foo is of size 1.  instead only deal with the
form where foo is one dimensional -- this at least seems ok.

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

15 years agosysreq: never explicitly depend upon build-essentials. add some obvious sysreq overri...
blundellc [Sat, 13 Sep 2008 13:18:41 +0000 (13:18 +0000)]
sysreq: never explicitly depend upon build-essentials. add some obvious sysreq overrides. allow + unescaped in SQL strings.

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

15 years agosysreq: parse SystemRequirements and check each one against database, after preproces...
blundellc [Sat, 13 Sep 2008 13:18:34 +0000 (13:18 +0000)]
sysreq: parse SystemRequirements and check each one against database, after preprocessing.

``Writing R extensions'' does not actually specify a format for
SystemRequirements.  Fortunately most package authors seem to use
a similar notation as that of Depends/Imports, but also include URLs
and ad-hoc information.

This is enough to make the R package Matrix depend correctly on 'make'
and likely more after a bit of leg work.

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

15 years agolicense+db: return NA when no decision is found. reject when a decision is found.
blundellc [Sat, 13 Sep 2008 13:18:27 +0000 (13:18 +0000)]
license+db: return NA when no decision is found. reject when a decision is found.

also renamed deny to reject. feels nicer.

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

15 years agolicense+sysreq: assign *after* checking the element exists (oops).
blundellc [Sat, 13 Sep 2008 13:18:20 +0000 (13:18 +0000)]
license+sysreq: assign *after* checking the element exists (oops).

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

15 years agodb+license+sysreq: frontend for sysreq and license updates. backend for sysreq.
blundellc [Sat, 13 Sep 2008 13:18:13 +0000 (13:18 +0000)]
db+license+sysreq: frontend for sysreq and license updates. backend for sysreq.

just need to modify cran2deb R dependency code to use database for this
to be working.

exec/license was accidently missing from previous commits.

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

15 years agopopulate_licenses: a simple cran2deb license script for populating the
blundellc [Sat, 13 Sep 2008 13:18:05 +0000 (13:18 +0000)]
populate_licenses: a simple cran2deb license script for populating the
database with licenses

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

15 years agolicenses+db: delegate license acceptance to the database. add license management...
blundellc [Sat, 13 Sep 2008 13:17:56 +0000 (13:17 +0000)]
licenses+db: delegate license acceptance to the database. add license management interface.

``License: file FOO'' support is nearly done; just need to plug bits
together on the acceptance side of things.  An SHA1 hash of the license
file is stored in the DB for matching.  Unsure how effective this will
be.  Might want to remove all whitespace prior to hashing.

needs testing; probably has a few bugs lurking. still need to work out
appropriate place for database so that R does not wipe it each time.
Perhaps it's time to delve into /var.

also a fix to r.dependency.closure --- previously incorrectly uses
levels() on the wrong type.

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

15 years agocran2deb: put base_pkgs into the cache. generate cache so that R is happy. use separ...
blundellc [Sat, 13 Sep 2008 13:17:47 +0000 (13:17 +0000)]
cran2deb: put base_pkgs into the cache.  generate cache so that R is happy. use separate base.tgz for cran2deb.

base_pkgs is the list of all packages that are provided in the basic
install of R.  It is found by listing all installed packages in the
pbuilder environment.

Previously the cache of availabile packages lived in sysdata.rda.
Unfortunately it appears that R does not like it when sysdata.rda is
updated after package installation (I think this is something to do with
lazy loading, but disabling this did not seem to help).  Instead the
cache is maintained separated in the data/ package directory.

pbuilder now uses base-cran2deb.tgz for the cran2deb pbuilder
environment -- this should help keep cran2deb from interfering from
other uses of pbuilder.

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

15 years agocran2deb: oops. correct two cut'n'pastos in previous commit.
blundellc [Sat, 13 Sep 2008 13:17:39 +0000 (13:17 +0000)]
cran2deb: oops. correct two cut'n'pastos in previous commit.

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

15 years agocran2deb: overrides of licenses and system requirements (database backend only).
blundellc [Sat, 13 Sep 2008 13:17:30 +0000 (13:17 +0000)]
cran2deb: overrides of licenses and system requirements (database backend only).

To follow: some kind of user interface.

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

15 years agocran2deb: prune unrequired bits from pbuilder. correct type error in R dependency...
blundellc [Sat, 13 Sep 2008 13:17:22 +0000 (13:17 +0000)]
cran2deb: prune unrequired bits from pbuilder. correct type error in R dependency calculation.

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

15 years agocran2deb: add a symlink to the README in the root
blundellc [Sat, 13 Sep 2008 13:17:15 +0000 (13:17 +0000)]
cran2deb: add a symlink to the README in the root

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

15 years agocran2deb: put README in correct location.
blundellc [Sat, 13 Sep 2008 13:17:07 +0000 (13:17 +0000)]
cran2deb: put README in correct location.

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

15 years agocran2deb: correct cran2deb dependencies. make cran2deb a meta-executable.
blundellc [Sat, 13 Sep 2008 13:16:58 +0000 (13:16 +0000)]
cran2deb: correct cran2deb dependencies. make cran2deb a meta-executable.

'cran2deb' is a script that determines the root of the cran2deb R
package installation and then invokes some other executable with this
root as the first argument. e.g.,
$ cran2deb update
$ cran2deb build zoo

The README file now includes details of what must be done to use
cran2deb.

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

15 years agocran2deb: make into an R package.
blundellc [Sat, 13 Sep 2008 13:16:48 +0000 (13:16 +0000)]
cran2deb: make into an R package.

not complete.  mostly seems to work, but certain parts are broken: e.g.,
updating the availability lists.

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

15 years agopbuilder: include xvfb, xauth, and xfont-base in base.tgz
blundellc [Sat, 13 Sep 2008 13:16:25 +0000 (13:16 +0000)]
pbuilder: include xvfb, xauth, and xfont-base in base.tgz

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

15 years agocran2deb: reverse arc closure. faster reverse traversal.
blundellc [Sat, 13 Sep 2008 13:16:17 +0000 (13:16 +0000)]
cran2deb: reverse arc closure. faster reverse traversal.

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

15 years agocran2deb: speed up dependency graph traversal. allow reverse arc traversal.
blundellc [Sat, 13 Sep 2008 13:16:09 +0000 (13:16 +0000)]
cran2deb: speed up dependency graph traversal.  allow reverse arc traversal.

A depends on B (r.dependency.of)
implies B is a prerequisite of A (r.prereq.of)

Note that r.prereq.of is rather slow; the default R data structures are
clearly intended for forward arc traversal only (A depends on B)

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

15 years agocran2deb: build depend on xvfb, xfont-base, and xauth.
blundellc [Sat, 13 Sep 2008 13:16:02 +0000 (13:16 +0000)]
cran2deb: build depend on xvfb, xfont-base, and xauth.

allows cran.mk to use xvfb and so tcltk depending packages now work.

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

15 years agodiagnose: diagnostics for task views
blundellc [Sat, 13 Sep 2008 13:15:55 +0000 (13:15 +0000)]
diagnose: diagnostics for task views

also filter out SystemRequirement fails; this shows whether there are
still some C header and other failures attributable to things other than
declared SystemRequirements (short answer: there are, annoyingly).

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

15 years agocran2deb: extra dependencies on command line; fix nasty bug in cross-repo dependencies.
blundellc [Sat, 13 Sep 2008 13:15:47 +0000 (13:15 +0000)]
cran2deb: extra dependencies on command line; fix nasty bug in cross-repo dependencies.

accept with a common typo of version in License:.

bail out on SystemRequirements

correct a nasty bug: dependencies[r,]$name displayed like a string in R,
but was actually treated as a number; hence some cross-repo dependencies
did not work correctly since the wrong available[] entry was being used.

allow some extra dependencies to be specified on the command line.

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

15 years agoupdate_available: use a different mirror for now
blundellc [Sat, 13 Sep 2008 13:15:39 +0000 (13:15 +0000)]
update_available: use a different mirror for now

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

15 years agocran2deb: support for building CRAN task views.
blundellc [Sat, 13 Sep 2008 13:15:32 +0000 (13:15 +0000)]
cran2deb: support for building CRAN task views.

task views have varying degrees of failure.

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

15 years agocran2deb: permit opensource.org references and the word 'see' in licenses.
blundellc [Sat, 13 Sep 2008 13:15:25 +0000 (13:15 +0000)]
cran2deb: permit opensource.org references and the word 'see' in licenses.

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

15 years agocran2deb: bundles considered functional but need more testing.
blundellc [Sat, 13 Sep 2008 13:15:18 +0000 (13:15 +0000)]
cran2deb: bundles considered functional but need more testing.

Add a few comments describing some of the functions and what they do.

Make dependencies on bundles work by translating dependencies on
packages up into their potential bundle where no individual package is
available.

Add the repository name to debian/rules. This should allow bioc packages
to be build and included via cross-repo dependencies.

Bundle packages have Provides: fields --- these aren't actually used but
do no harm.

Bundle packages have a Description: field of just the BundleDescription
--- otherwise it may become too long.

Look in the package subdirectories of bundles for 'src' to determine if
a package is architecture independent or not.

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

15 years agocran2deb: factor dependency resolution out of control file generation
blundellc [Sat, 13 Sep 2008 13:15:11 +0000 (13:15 +0000)]
cran2deb: factor dependency resolution out of control file generation

also correct some mistakes in previous refactoring (tested on SRPM to
make sure all a-ok).

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

15 years agocran2deb: refactor; use file.path to paste paths together.
blundellc [Sat, 13 Sep 2008 13:15:04 +0000 (13:15 +0000)]
cran2deb: refactor; use file.path to paste paths together.

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

15 years agocran2deb: refactor prepare.new.debian into smaller parts.
blundellc [Sat, 13 Sep 2008 13:14:57 +0000 (13:14 +0000)]
cran2deb: refactor prepare.new.debian into smaller parts.

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

15 years agocran2deb: add missing bundle hook.
blundellc [Sat, 13 Sep 2008 13:14:50 +0000 (13:14 +0000)]
cran2deb: add missing bundle hook.

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

15 years agocran2deb: cache availabile packages. support cross-repo dependencies[1]. basic...
blundellc [Sat, 13 Sep 2008 13:14:43 +0000 (13:14 +0000)]
cran2deb: cache availabile packages.  support cross-repo dependencies[1].  basic understanding of bundles (no building yet).

If an R package name is needed, and cannot be found in the available
packages, then try to resolve it into a bundle.  If this works, then
substitute the name of the bundle for the package name and procede. This
is enough to get dependency resolution working and R source packages
downloaded, but still to do is the generation of debian/ for bundles.

[1] Appears to be some problems during building of bioc packages -- even
though the package is called r-bioc-XXX, a directory r-cran-XXX is
expected by some part.  Suspect need to change generation of
debian/rules.

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

15 years agodiagnose: add diagnostic script; finds the cause of package failure.
blundellc [Sat, 13 Sep 2008 13:14:36 +0000 (13:14 +0000)]
diagnose: add diagnostic script; finds the cause of package failure.

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

15 years agocran2deb: better way of determining base package list. include [-_] in some regexes...
blundellc [Sat, 13 Sep 2008 13:14:29 +0000 (13:14 +0000)]
cran2deb: better way of determining base package list. include [-_] in some regexes. accept X11 license properly.

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

15 years agocran2deb: remove inversions from build order. only build a package if there is not...
blundellc [Sat, 13 Sep 2008 13:14:22 +0000 (13:14 +0000)]
cran2deb: remove inversions from build order. only build a package if there is not existing .changes file.

Has successfully built a package (SRPM) and its 4 R dependencies, of
which one is indirect and one is mentioned by two other dependencies.

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

15 years agocran2deb: calculate the transitive closure of R dependencies.
blundellc [Sat, 13 Sep 2008 13:14:15 +0000 (13:14 +0000)]
cran2deb: calculate the transitive closure of R dependencies.

The closure is calculated to be in build order; if each element is built
and installed in order then all declared R dependencies should be
satisfied.

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

15 years agocran2deb: satisfy immediate R dependencies iff the requisite package has already...
blundellc [Sat, 13 Sep 2008 13:14:08 +0000 (13:14 +0000)]
cran2deb: satisfy immediate R dependencies iff the requisite package has already been build.

Works by running apt-get update before each build, pulling in the
declared R dependencies from a local repository.

Still to do is actually read off a topological order and deal with
transitivity.  Otherwise, this appears to work fine where the only
dependencies are those in Depends or Imports of the R DESCRIPTION.

Also included is to use Imports as well as Depends for generating R
dependencies... this was necessary for, for example, stashR --- not
quite sure if this is technically correct, but it allows this package to
work.

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

15 years agocran2deb: tame dput+mini-dinstall+pbuilder.
blundellc [Sat, 13 Sep 2008 13:14:00 +0000 (13:14 +0000)]
cran2deb: tame dput+mini-dinstall+pbuilder.

Constructs an archive that pbuilder can apt-get dependencies from when
necessary. This requires an http server to serve var/archive (can be a
symlink).

Let pbuilder/dput run lintian.

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

15 years agocran2deb: remove non-pbuilder mode. add pbuilder, dput, mini-dinstaller configs.
blundellc [Sat, 13 Sep 2008 13:13:51 +0000 (13:13 +0000)]
cran2deb: remove non-pbuilder mode.  add pbuilder, dput, mini-dinstaller configs.

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

15 years agocran2deb: initial stab at dependencies on R packages. license tidying.
blundellc [Sat, 13 Sep 2008 13:13:43 +0000 (13:13 +0000)]
cran2deb: initial stab at dependencies on R packages. license tidying.

Needs testing in a pbuilder suitably set-up.  Handles R's default
packages in a rather hacky way (list all of them explicitly).

Generates Build-Depends: and Depends: as almost identical since all R
packages are typically required during the build phase.

Add licenses: X11, Mozilla Public License
Improve version regexp and recognition of many Artistic licensed
packages.

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

15 years agocran2deb: rebuild the source tarball each time removing file exec bit.
blundellc [Sat, 13 Sep 2008 13:13:34 +0000 (13:13 +0000)]
cran2deb: rebuild the source tarball each time removing file exec bit.

The subdirectory of an R package is 'pkgname'.  Debian typically has
'pkgname-upstreamversion'.  Hence the tarball is rebuilt after renaming
the 'pkgname' directory appropriately.

Whilst this is all going on, every file in the R package has its
executable bit removed.  There would appear to be little correct need
for it at the moment (this will change when #! is handled better) and
this gets rid of some inappropriately executable files.

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

15 years agocran2deb: more license matching for when a package does not follow the R guidelines
blundellc [Sat, 13 Sep 2008 13:13:26 +0000 (13:13 +0000)]
cran2deb: more license matching for when a package does not follow the R guidelines

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

15 years agocran2deb: make sure the single line synopsis is separated from the main description.
blundellc [Sat, 13 Sep 2008 13:13:19 +0000 (13:13 +0000)]
cran2deb: make sure the single line synopsis is separated from the main description.

Fixes one previously seen build error. Also now include URL in
description from R DESCRIPTION.

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

15 years agocran2deb: name the tarball according to pkg$srcname not pkg$name
blundellc [Sat, 13 Sep 2008 13:13:12 +0000 (13:13 +0000)]
cran2deb: name the tarball according to pkg$srcname not pkg$name

This should fix all native-package-with-dash-version warnings issued by
lintian. Also some misc code re-arranging and commenting.

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

15 years agocran2deb: catch a few more licenses found 'in the wild'.
blundellc [Sat, 13 Sep 2008 13:13:04 +0000 (13:13 +0000)]
cran2deb: catch a few more licenses found 'in the wild'.

If the license does not look like a properly formatted one, strip away
anything harmless (space, punctuation, numbers, etc) and see if it
can be made to match a known-good license exactly.

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

15 years agocran2deb: use iconv(1) to convert debian/{control,changelog,copyright} to utf8
blundellc [Sat, 13 Sep 2008 13:12:57 +0000 (13:12 +0000)]
cran2deb: use iconv(1) to convert debian/{control,changelog,copyright} to utf8

lintian(1) likes these files to be utf8.  R does not specify a character
set, so this code just hopes that iconv(1) will do the right thing.  In
the only case where it matters so far (lspls) this allows the package to
build and pass lintian(1).

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

15 years agocran2deb: pbuilder refinement: use lintian. adapt build script to check for warnings.
blundellc [Sat, 13 Sep 2008 13:12:49 +0000 (13:12 +0000)]
cran2deb: pbuilder refinement: use lintian. adapt build script to check for warnings.

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

15 years agocran2deb: work with pbuilder.
blundellc [Sat, 13 Sep 2008 13:12:40 +0000 (13:12 +0000)]
cran2deb: work with pbuilder.

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

15 years agocranpkgs & build_some: build a random subset of all available packages.
blundellc [Sat, 13 Sep 2008 13:12:31 +0000 (13:12 +0000)]
cranpkgs & build_some: build a random subset of all available packages.

current result:
100 packages tried
23 failed -- all due to license problems: not considered
(MIT,BSD) or malformed field (e.g., GPL 2.0 or later)
'some' (uncounted) have significant lintian warnings (mostly
seems to be incorrectly +x files)
77 .deb files produced

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

15 years agocran2deb: extend license handling, specify repository, translate R->Debian package...
blundellc [Sat, 13 Sep 2008 13:12:22 +0000 (13:12 +0000)]
cran2deb: extend license handling, specify repository, translate R->Debian package names.

License handling code now deals with version numbers and also the more
common malformed license fields found in the wild.  License version
information is discarded completely at the moment (though retained in
debian/copyright).

debian/copyright also includes a copyright notice formed from the Author
field of DESCRIPTION.

Debian package names must be lower case; the Debian source package
of an R package is the lowercase form of the R package name, whilst the
binary package is r-<lower case repo>-<lower case R name>.

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

15 years agocran2deb: generate some of debian/copyright and debian/control like
blundellc [Sat, 13 Sep 2008 13:12:13 +0000 (13:12 +0000)]
cran2deb: generate some of debian/copyright and debian/control like
CRAN2DEB.pm, detect architecture dependent packages.

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

15 years agocopy_find: a heuristic for finding copyright notices.
blundellc [Sat, 13 Sep 2008 13:12:04 +0000 (13:12 +0000)]
copy_find: a heuristic for finding copyright notices.

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

15 years agocran2deb: known-good license checking, minor tweaks.
blundellc [Sat, 13 Sep 2008 13:11:56 +0000 (13:11 +0000)]
cran2deb: known-good license checking, minor tweaks.

R 'boot' package builds with two warnings and no errors.  changelog is
nearly passable (just needs an ITP). copyright needs work.

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

15 years agocran2deb: Debian version <-> R version infrastructure.
blundellc [Sat, 13 Sep 2008 13:11:46 +0000 (13:11 +0000)]
cran2deb: Debian version <-> R version infrastructure.

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

15 years agocran2deb: construct enough of debian for debuild to run (but with warnings and errors).
blundellc [Sat, 13 Sep 2008 13:08:39 +0000 (13:08 +0000)]
cran2deb: construct enough of debian for debuild to run (but with warnings and errors).

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

15 years agocran2deb: download, unpack and parse DESCRIPTION.
blundellc [Sat, 13 Sep 2008 13:08:30 +0000 (13:08 +0000)]
cran2deb: download, unpack and parse DESCRIPTION.

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

15 years agofirst commit.
blundellc [Sat, 13 Sep 2008 13:08:12 +0000 (13:08 +0000)]
first commit.

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

15 years agoThis directory will host the upstream sources
blundellc [Sat, 13 Sep 2008 13:08:05 +0000 (13:08 +0000)]
This directory will host the upstream sources

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

15 years agoremove botched import (no git history).
blundellc [Fri, 12 Sep 2008 21:46:36 +0000 (21:46 +0000)]
remove botched import (no git history).

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

15 years agomove stuff into R-forge place
blundellc [Fri, 12 Sep 2008 21:41:17 +0000 (21:41 +0000)]
move stuff into R-forge place

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

15 years agoMerge ../../cran2deb
blundellc [Fri, 12 Sep 2008 21:41:14 +0000 (21:41 +0000)]
Merge ../../cran2deb

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

15 years agomove R-forge readme out of the way
blundellc [Fri, 12 Sep 2008 21:41:12 +0000 (21:41 +0000)]
move R-forge readme out of the way

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

16 years agoEmail in Readme changed
stefan7th [Mon, 25 Jun 2007 10:38:44 +0000 (10:38 +0000)]
Email in Readme changed

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