Tuesday, 18 March 2025

Re: rmadison alternative 'pkg-versions'

-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEXHq+og+GMEWcyMi14n8s+EWML6QFAmfZ0MkFAwAAAAAACgkQ4n8s+EWML6TQ
2g//e3EiOi9gs4jc1bkrLWmcO/xxHkKW1MfwEw5pqbFkaVyhm3M6xOcv2r7m57WNw0d97JdhJoeW
qaUmVDQPlnT4f7feKoHF422AGNaucwcnJlQ+l8E5mEKIbw8Ry5x9cXEKu7YvAnStIo04XHn08Z8c
DHt9C0E9DTS8Lh7rE0Df3GtGAzRsWwhrUc7mDoqEqKTV9TApHiwB2KTjyJ0z0nUxqUFS873ZeK5e
XoVUwc1Re5uZIeYihcP8GigdukDb+bt13zvB3+HNCX/JdY3iHhuyaSDf9ashNpl98L5Zukeoeg6v
Bj+5e72W6u1H0/+zOHC5KbwHQ7f/WEwzO2wcwsgG90b55Srtwz+T7G1Tc/WeIEKqY5hA88UW4FPH
b8Ns/ZgA9KeVoafG2VN5OqFrgNGMToclVwKVHxg7KJA1JrJ6YUi+D5+yyPVATduz9jYwjAvJjWdo
0YtaYSzbVUJe8uD1p4KL+HpsTc5nZgBnQGSJGuzuOf/MJa/K4o/0hSZ5+4ul4lfeE8ivmVnAuhtH
P5rY/Ua3TCIQuEV0J9bdaPp47hREsVC6En+nS2IAIxzwERL6iBFNjtiqVyT89L8zHeQs6Fs/Nuoz
+0OInbQevU3eMhfVylY4/6dN5o+6wEqm+36hd4YXJvEBAmKaUduuow1FqIXTMfhSGtG8/hXGf9+z
c3A=
=8gde
-----END PGP SIGNATURE-----
Hi Bryce and Skia,

On 3/17/25 03:22 PM, Bryce Harrington wrote:
> A few people have mentioned having problems using rmadison recently, and
> enquired about a little reimplementation I made a bit ago. I figure in
> case others are interested I'd throw out a PSA about it:
>
> https://git.launchpad.net/~ubuntu-server/+git/ubuntu-helpers/tree/bryce/pkg-versions
>
> It is a lot faster (for me) than rmadison, because it pulls data from
> qa.debian.org rather than people.canonical.com; the former server is in
> the PNW near me. European folks have not seen this performance benefit,
> so YMMV.
>
> The script is written in Bash, rather than Perl as rmadison is. It
> requires curl and distro-info as dependencies, but those should already
> be on everyone's system, so you should be able to plop the script
> somewhere in your $PATH, and go.

No qualms, I appreciate the work, but as a long-term goal, we might want to discuss porting to a compiled language.

I don't want the pitchforks and torches, so I won't go as far as to boldly suggest Rust, so I'll say C++.

> I've also changed the default output to be more immediately useful for
> my own needs: It includes Debian package versions, and excludes older
> ESM releases. Example output:
>
> $ pkg-versions dovecot
> ### Debian ###
> dovecot | 1:2.3.19.1+dfsg1-2.1+deb12u1 | bookworm-security
> dovecot | 1:2.3.19.1+dfsg1-2.1+deb12u1 | bookworm
> dovecot | 1:2.3.21.1+dfsg1-1~bpo12+1 | bookworm-backports
> dovecot | 1:2.3.21.1+dfsg1-1 | trixie
> dovecot | 1:2.3.21.1+dfsg1-1 | sid
> dovecot | 1:2.4.0+dfsg1-1~exp3 | experimental
> dovecot | 1:2.4.0+dfsg1-1~exp4 | experimental
>
> ### Ubuntu ###
> dovecot | 1:2.3.7.2-1ubuntu3 | focal
> dovecot | 1:2.3.7.2-1ubuntu3.7 | focal-security
> dovecot | 1:2.3.7.2-1ubuntu3.7 | focal-updates
> dovecot | 1:2.3.16+dfsg1-3ubuntu2 | jammy
> dovecot | 1:2.3.16+dfsg1-3ubuntu2.4 | jammy-security
> dovecot | 1:2.3.16+dfsg1-3ubuntu2.4 | jammy-updates
> dovecot | 1:2.3.21+dfsg1-2ubuntu5 | noble
> dovecot | 1:2.3.21+dfsg1-2ubuntu6 | noble-security
> dovecot | 1:2.3.21+dfsg1-2ubuntu6 | noble-updates
> dovecot | 1:2.3.21.1+dfsg1-1ubuntu1 | oracular
> dovecot | 1:2.3.21.1+dfsg1-1ubuntu2 | plucky
>
> There's just one command line option, --devel, which limits to just the
> devel release and debian, useful for checking for new syncs/merges:
>
> $ ~/bin/pkg-versions openldap --devel
> openldap | 2.5.19+dfsg-1 | sid
> openldap | 2.6.9+dfsg-2 | sid
> openldap | 2.6.9+dfsg-1~exp2ubuntu1 | plucky
>
>
> It's pretty bare bones beyond that; I've not implemented the many other
> options and functionalities that rmadison provides. Patches are welcome
> though, and I'll take feature requests. There's been one request to add
> support for looking up binary packages.
>
> Anyway, hope pkg-versions is helpful and I'd love to hear if it is.

I can think of a few bugs that could be addressed by this long-term: https://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&src=ubuntu-dev-tools

I still need to take some time to investigate this deeply, but you've piqued my interest, and I'd love to hear a followup soon.

On 3/18/25 10:59 AM, Florent 'Skia' Jacquet wrote:
> Le 17/03/2025 à 21:22, Bryce Harrington a écrit :
>> Anyway, hope pkg-versions is helpful and I'd love to hear if it is.
>
> Yes it is, thank you very much! Here, have some fast emojis: ⚡πŸš€πŸŽ️

⚡πŸš€πŸŽ️ πŸ”ŠπŸ”ŠπŸ”Š

> I'd say it's worth being more broadly pushed to `ubuntu-dev-tools` or else, but I'll let you be the judge of that.

Strong +1.

Thanks,
--
Simon Quigley
simon@tsimonq2.net
@tsimonq2:ubuntu.com on Matrix
tsimonq2 on LiberaChat and OFTC
5C7A BEA2 0F86 3045 9CC8
C8B5 E27F 2CF8 458C 2FA4