[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: r-base-core upload to unstable does not respect freeze policy



On Tue, 11 Nov 2014, Andreas Tille wrote:

> All R packages are building with
> 
> include /usr/share/R/debian/r-cran.mk
> 
> which contains:
> 
> rversion        := $(shell dpkg-query -W -f='$${Version}' r-base-dev)
> ...
>                 ## support ${R:Depends} via debian/${package}.substvars
>                 echo "R:Depends=r-base-core (>= ${rversion})" >> debian/$(package).substvars

So, would this patch to the current r-base package improve things if
applied to the version in unstable?

diff --git a/debian/r-cran.mk b/debian/r-cran.mk
index e366f6b..0550173 100644
--- a/debian/r-cran.mk
+++ b/debian/r-cran.mk
@@ -60,7 +60,7 @@ endif
 #rversion	:= $(shell zcat /usr/share/doc/r-base-dev/changelog.Debian.gz | \
 #			dpkg-parsechangelog -l- --count 1  | \
 #			awk '/^Version/ {print $$2}')
-rversion	:= $(shell dpkg-query -W -f='$${Version}' r-base-dev)
+rversion	:= $(shell dpkg-query -W -f='$${Version}' r-base-dev | perl -ne 'print /([0-9]\.[0-9])/')
 
 ## we use these results for the to-be-installed-in directory
 debRlib		:= $(CURDIR)/debian/$(package)/$(debRdir)


Reply to: