Bug#1024648: elpa-snakemake: fails to install with emacs 27: misses 'transient'

2022-11-22 Thread Andreas Beckmann

On 22/11/2022 18.40, Diane Trout wrote:

On Tue, 2022-11-22 at 18:24 +0100, Andreas Beckmann wrote:


There needs to be either a
   Depends: emacs-el (>= 1:28)
or an equivaent
   Breaks: (emacs-el (<< 1:28)
or the installation must be skipped if emacs is too old.


So it looks like elpa-snakemake depends on the transient package which
is currently elpa-transient and in included in emacs 28.

So what do you think of this instead?

Depends: emacs-el (>= 1:28) | elpa-transient,


Good question. Hmm, well, I know nothing about emacs or its packaging. ;-)

But if emacs-el (or -common?) bundles extensions (or however you call 
them), especially ones that were previously packaged separately, it 
should probably have versioned Provides (and maybe versioned Breaks, 
too) for them. (Cf. perl, perl-base which does the same.)

Not sure whether these should be in -el or -common ...

If these Provides were available, elpa-snakemake wouldn't need to know 
about the packaging details of other packages and could just use

  Depends: elpa-transient


Andreas



Bug#1024648: elpa-snakemake: fails to install with emacs 27: misses 'transient'

2022-11-22 Thread Diane Trout
On Tue, 2022-11-22 at 18:24 +0100, Andreas Beckmann wrote:
> 
> There needs to be either a
>   Depends: emacs-el (>= 1:28)
> or an equivaent
>   Breaks: (emacs-el (<< 1:28)
> or the installation must be skipped if emacs is too old.

So it looks like elpa-snakemake depends on the transient package which
is currently elpa-transient and in included in emacs 28.

So what do you think of this instead?

Depends: emacs-el (>= 1:28) | elpa-transient,

Diane



Bug#1024648: elpa-snakemake: fails to install with emacs 27: misses 'transient'

2022-11-22 Thread Andreas Beckmann
Package: elpa-snakemake
Version: 2.0.0-2
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to install if
emacs 27 (currently still in bookworm) is already installed. As
per definition of the release team this makes the package too buggy for
a release, thus the severity.

>From the attached log (scroll to the bottom...):

  Setting up elpa-snakemake (2.0.0-2) ...
  Install emacsen-common for emacs
  emacsen-common: Handling install of emacsen flavor emacs
  Install elpa-snakemake for emacs
  install/snakemake-2.0.0: Handling install of emacsen flavor emacs
  install/snakemake-2.0.0: byte-compiling for emacs
  
  In toplevel form:
  snakemake.el:94:1:Error: Cannot open load file: No such file or directory, 
transient
  ERROR: install script from elpa-snakemake package failed
  dpkg: error processing package elpa-snakemake (--configure):
   installed elpa-snakemake package post-installation script subprocess 
returned error exit status 1
  Errors were encountered while processing:
   elpa-snakemake

There needs to be either a
  Depends: emacs-el (>= 1:28)
or an equivaent
  Breaks: (emacs-el (<< 1:28)
or the installation must be skipped if emacs is too old.


cheers,

Andreas


elpa-snakemake=2.0.0-2_emacs.log.gz
Description: application/gzip