Package: dh-elpa Version: 2.1.5 Severity: normal dh-elpa detects the `Package-Version' cookie from Elisp source files and generates Debian version numbers to be used in the substitute variable ${elpa:Depends}. However there is a small issue that it does not work well with snapshot version numbers.
For example, say the Elisp source file contains the following line: ,---- | Package-Version: ((foo "1.0.0")) `---- The generated corresponding Debian version would be ,---- | foo (>= 1.0.0) `---- This usually works. However, when the upstream does not have a tag matching the source version, this would become an issue. Take the aforementioned foo as an example: if upstream does not have a tagged version or the tagged version is lagging behind (e.g. 0.9), we should usually use a package version combining the source version with a git snapshot hash, e.g. 1.0.0~git20241101.dedbeef. Unfortunately, this version would not satisfy the Debian version requirement because in Debian "1.0.0~" is less than "1.0.0". dh-elpa should instead generate snapshot-friendly version number like ,---- | foo (>= 1.0.0~) `---- Unfortunately, this would require another batch rebuild for all packages, or this may cause reproducible test issues. -- System Information: Debian Release: 12.8 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-28-amd64 (SMP w/16 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dh-elpa depends on: ii debhelper 13.11.4 ii emacs 1:29.4+1-2~bpo12+1 ii emacs-gtk [emacs] 1:29.4+1-2~bpo12+1 ii libarray-utils-perl 0.5-3 ii libconfig-tiny-perl 2.28-2 ii libdebian-source-perl 0.122 ii libdpkg-perl 1.21.22 ii libfile-find-rule-perl 0.34-3 ii libtext-glob-perl 0.11-3 ii perl 5.36.0-7+deb12u1 dh-elpa recommends no packages. dh-elpa suggests no packages. -- no debconf information -- Regards, Xiyue Deng
signature.asc
Description: PGP signature