[med-svn] r8260 - trunk/community/website/docs

Charles Plessy plessy at alioth.debian.org
Sat Oct 22 04:54:33 UTC 2011


Author: plessy
Date: 2011-10-22 04:54:32 +0000 (Sat, 22 Oct 2011)
New Revision: 8260

Modified:
   trunk/community/website/docs/policy.xml
Log:
Make command to set the R:Depends substitution variable.


Modified: trunk/community/website/docs/policy.xml
===================================================================
--- trunk/community/website/docs/policy.xml	2011-10-22 04:40:50 UTC (rev 8259)
+++ trunk/community/website/docs/policy.xml	2011-10-22 04:54:32 UTC (rev 8260)
@@ -519,7 +519,15 @@
 			<para>
 				Packages sent to this PPA may be kept as branches in our repositories.
 			</para>
-		</sect2>		
+		</sect2>
+		<sect2 id="r-packages">
+			<title>R packages</title>
+			<para>
+				<ulink url="http://packages.debian.org/r-base">GNU R</ulink> sometimes introduces backward incompatibilities, so the current practice is to make packages depend on versions equal or higher to the one against which they were built.  When using <code>r-dev</code>, this can be acheived by adding the following command in <filename>debian/rules</filename>.  Note the tilde, that ensures that pre-releases can be used as well.
+			</para>
+			<programlisting>install/r-$(debRreposname)-$(cranName)::
+	echo "R:Depends=r-base-core (>= $(shell R --version | head -n1 | perl -ne 'print / +([0-9]\.[0-9]+\.[0-9])/')~)" >> debian/r-$(debRreposname)-$(cranName).substvars</programlisting>
+		</sect2>
 	</sect1>
 	<sect1 id="tasks">
 		<title>Tasks</title>




More information about the debian-med-commit mailing list