From asr at ufl.edu  Wed Feb  9 20:05:36 2011
From: asr at ufl.edu (Allen S. Rout)
Date: Wed, 9 Feb 2011 14:05:36 -0500
Subject: [Rd] dependencies on system packages
References: <1296786690226-3259395.post@n4.nabble.com>
	<189F3930-6DA0-4EF5-B419-CB5AAA5EF68B@r-project.org>
	<4D4BB638.8030409@units.it>
	<EDBA419B-0DEF-4B3F-B2AE-29303D89999C@r-project.org>
	<19788.17488.126990.458044@max.nulle.part>
	<073563D8-365F-45B8-8DFD-6B521968B8E6@r-project.org>
Message-ID: <87vd0t2flr.fsf@ufl.edu>

Simon Urbanek <simon.urbanek at r-project.org> writes:
> On Feb 4, 2011, at 1:24 PM, Dirk Eddelbuettel wrote:

[...]

>> We need to address this: With 2600+ packages and continued growth,
>> manually wading through README is not good enough.  We should do
>> better.  Resources (time, money, servers, ...) would help.  Maybe one
>> day someone with more time can fold this into a proper sub-project of
>> a larger grant application.  It would be worth, and I would try to
>> help, time permitting.


I'm one of the people who made stabs at this in the past.  I had a
fairly complete Gentoo process in place, but then the sickness passed.

More recently, I've been peripherally involved with an effort to
translate CRAN to redhat-land.

When we talked about this most intensely last (waaay back in 2006), I
had a detailed submission for an "Extended depends string", a strictly
formatted field to accompany or supplant the existing system depends.

I also supplied suggested code to translate a string in this format to a
simple depstring, which would neatly plug into the existing depstring
infrastructure already in place.  


http://article.gmane.org/gmane.comp.lang.r.devel/9179


So, for an example extended depstring

src <- "libgd (>= 1.9.0) (gentoo gd >= 2.0) (debian >= 1.9.2)"

extdepstring2depstring(src)

yields "libgd (>= 1.9.0)"

and

extdepstring2depstring(src,systype="debian")

yields "libgd (>= 1.9.2)"

and 

extdepstring2depstring(src,systype="unknown")

yields the default. 



I think this would be preferable to a growing taxonomy of 

Depends-[system]: 




- Allen S. Rout



[Rd] dependencies on system packages
Allen S. Rout