Bug#893895: dh-r: versioned dependencies are incorrect when epochs are present

2018-03-23 Thread Andreas Tille
On Fri, Mar 23, 2018 at 05:24:55PM +0100, Sébastien Villemot wrote:
> 
> I now realize that packages are supposed to be buildable without network
> access, so query the apt cache is the way to go.
> 
> I'm wondering how similar helpers for other languages solve this problem 
> (maybe
> they don't, i.e. they just decided to avoid epochs – at least it's what we are
> doing in the Debian Octave Group).

Too bad that I squashed this bug simply for esthetical reasons. :-(

On the other hand there exist other r-cran packages featuring epochs
since a long time (r-cran-sp is just one example).  So at least now
this problem has become visible.

Sorry for this

 Andreas.

-- 
http://fam-tille.de

-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Bug#893895: dh-r: versioned dependencies are incorrect when epochs are present

2018-03-23 Thread Sébastien Villemot
On Fri, Mar 23, 2018 at 05:17:01PM +0100, Sébastien Villemot wrote:

> Unfortunately that means that dh-r will no longer be fully functional offline
> (querying the local apt cache could be a fallback, but there's no guarantee
> that it is up-to-date, even when running unstable).

I now realize that packages are supposed to be buildable without network
access, so query the apt cache is the way to go.

I'm wondering how similar helpers for other languages solve this problem (maybe
they don't, i.e. they just decided to avoid epochs – at least it's what we are
doing in the Debian Octave Group).

-- 
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  http://sebastien.villemot.name
⠈⠳⣄  http://www.debian.org


signature.asc
Description: PGP signature
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Bug#893895: dh-r: versioned dependencies are incorrect when epochs are present

2018-03-23 Thread Sébastien Villemot
Package: dh-r
Version: 20171201
X-Debbugs-CC: debia...@lists.debian.org

On Fri, Mar 23, 2018 at 05:12:09PM +0100, Andreas Tille wrote:

> On Fri, Mar 23, 2018 at 04:44:11PM +0100, Sébastien Villemot wrote:

> > Actually, I am wrong: epochs are very wrong for CRAN packages, because they
> > break dh-r which (I think) is then not able to generate the right versioned
> > dependency…
> 
> Uhmmm.  I did not intend to break anything - but we should file a bug
> report against dh-r.  Would you mind doing this since you realised
> what is broken?

Essentially dh-r should query the package database to figure out which CRAN
packages have an epoch, and adapt its generated versioned dependencies.

Unfortunately that means that dh-r will no longer be fully functional offline
(querying the local apt cache could be a fallback, but there's no guarantee
that it is up-to-date, even when running unstable).

-- 
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  http://sebastien.villemot.name
⠈⠳⣄  http://www.debian.org


signature.asc
Description: PGP signature
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers