aptitude changelog not working
aptitudeis a console-based frontend to
apt. The version in Devuan originates from Debian and mentions it (where it should mention Devuan).
# aptitude changelog btrfs-progs E: btrfs-progs is not an official Debian package, cannot display its changelog.
Looking more closely, there's an "URL to use to download changelogs" setting that defaults to
http://packages.debian.org/changelogs: this URL doesn't exist, and should be in
FWIW the correct URL for Debian changelogs is
Pressing 'C' in aptitude gives a red alert: "You can only view changelogs of official Debian packages."
I've looked into this - its actually hardcoding the distro it wants to see in src/generic/apt/pkg_changelog.cc:check_valid_origin - if it doesn't find 'Debian' or 'Debian Backports', it returns the 'Cannot display changelog' error. I have hacked it to accept 'Devuan' and naturally 'aptitude changelog ' started working ( allow-devuan-repo-changelog-source.patch ).
Presumably this is too trivial to fork over in Devuan, do you think I should ask Debian if they would make this check at least configurable? Although you could argue that the config change would still require a Devuan fork to implement for people that don't want to manually mess with the defaults?
As of the move to pkgmaster.devuan.org, Origin is no longer exposed on the repo (but Label is set), so the old patch no longer works - extended hack has been attached - this is definitely implemented wrong now as aptitude only cares about checking the validity of Origin and not Label, yet the current hack falls back to the latter in the current case.
Raised this with KatolaZ 19.01.18, pending repo Origin before I see if I can get upstream interested in this hardcoding problem.
This has now been raised as a Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=889924 - might go the route of not caring at all about the Origin.