Bug#760099: apt-listchanges: Incorrectly assumes that binary packages from the same source share NEWS files

2017-01-05 Thread Benjamin Kaduk
This bug report has been quiet for some time; does that imply that the
status quo is that I should assume that de facto I can only use the
toplevel NEWS.Debian and not binary-package-specific NEWS files?

I ask because openafs is putting out a new major release (currently
in experimental) and the source package produces both client and
server packages; server administrators must take a step on upgrade
that clients don't care about, so I wanted to only display the NEWS
for servers.  Unfortunately, servers tend to also have the client
installed for administration, and I have a report that upgrading
all the packages together fails to display the server NEWS entry.

Thanks,

Ben



Bug#760099: apt-listchanges: Incorrectly assumes that binary packages from the same source share NEWS files

2014-08-31 Thread Robert Luberda
Package: apt-listchanges
Version: 2.85.13
Severity: normal

Hi 

While working on patch for #730779, I tried to create a transitional 
realpath binary package (inside coreutils source package) together 
with debian/realpath.NEWS file. After a few tries to convince
apt-listchanges to display the NEWS file, I've noticed the following
lines in apt-listchanges source:

# For packages with non uniform binary versions wrt the source
# version, the version reported for the binary package is the
# source
# one, which lacks binNMU.
#
# This is why even if we've seen a package we may miss bits of
# changelog in some odd cases
if found.has_key(srcpackage) and \
apt_pkg.version_compare(srcversion, found[srcpackage]) = 0:
continue

The lines effectively ignore all changelog  NEWS files from the
second, third, and so on binary package built from same source.
This is most probably done for performance purposes, but on the other
hand this behavior might be highly surprising for users. 

I've just checked that there are a few source packages that already provide 
different NEWS files for different binaries - please see the attached file 
for a list. Even though this is less than per mill of all source packages, 
I guess people who maintain such separate NEWS files would like apt-listchanges 
to display them.

Regards,
robert

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (200, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.11-2-686-pae (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF8, LC_CTYPE=pl_PL.UTF8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-listchanges depends on:
ii  apt1.0.7
ii  debconf [debconf-2.0]  1.5.53
ii  debianutils4.4
ii  dpkg-dev   1.17.13
ii  python 2.7.8-1
ii  python-apt 0.9.3.9
ii  python-support 1.0.15
ii  ucf3.0030

apt-listchanges recommends no packages.

Versions of packages apt-listchanges suggests:
ii  aterm [x-terminal-emulator] 1.0.1-8+b1
ii  chromium [www-browser]  35.0.1916.153-2
ii  elinks [www-browser]0.12~pre6-5+b1
ii  eterm [x-terminal-emulator] 0.9.6-1
ii  evilvte [x-terminal-emulator]   0.5.1-1
ii  iceweasel [www-browser] 31.0-3
ii  links [www-browser] 2.8-2
ii  links2 [www-browser]2.8-2
ii  lxterminal [x-terminal-emulator]0.1.11-4
ii  lynx-cur [www-browser]  2.8.9dev1-2
ii  mrxvt [x-terminal-emulator] 0.5.4+utf8-1~
ii  netrik [www-browser]1.16.1-1.1
ii  postfix [mail-transport-agent]  2.11.1-1
ii  pterm [x-terminal-emulator] 0.63-7
ii  python-glade2   2.24.0-4
ii  python-gtk2 2.24.0-4
ii  roxterm-gtk3 [x-terminal-emulator]  2.9.3-1
ii  rxvt [x-terminal-emulator]  1:2.7.10-6
ii  sakura [x-terminal-emulator]3.1.4-1
ii  termit [x-terminal-emulator]2.10.0-2-gb8280ed-1
ii  w3m [www-browser]   0.5.3-17
ii  xterm [x-terminal-emulator] 310-1
ii  xvt [x-terminal-emulator]   2.1-20.1

-- Configuration Files:
/etc/apt/apt.conf.d/20listchanges changed [not included]

-- debconf information:
* apt-listchanges/save-seen: true
* apt-listchanges/email-address: root
* apt-listchanges/which: both
* apt-listchanges/confirm: false
* apt-listchanges/frontend: browser

pool/main/a/aolserver4/aolserver4_4.5.1-18.debian.tar.xz
debian/NEWS
debian/aolserver4-daemon.NEWS.debian

pool/main/b/bogofilter/bogofilter_1.2.4+dfsg1-3.debian.tar.xz
debian/bogofilter-bdb.NEWS
debian/bogofilter-common.NEWS

pool/main/c/cups/cups_1.7.5-1.debian.tar.xz
debian/cups.NEWS
debian/cups-daemon.NEWS
debian/cups-client.NEWS

pool/main/e/exim4/exim4_4.84-2.debian.tar.xz
debian/exim4-base.NEWS
debian/exim4-config.NEWS
debian/exim4-daemon-heavy.NEWS
debian/exim4-daemon-light.NEWS

pool/main/f/fltk1.3/fltk1.3_1.3.2-6.debian.tar.xz
debian/libfltk1.3-dev.NEWS
debian/fluid.NEWS

pool/main/g/git/git_2.1.0~rc2+next.20140808-1.debian.tar.xz
debian/gitweb.NEWS.Debian
debian/git.NEWS.Debian

pool/main/h/hplip/hplip_3.14.6-1.debian.tar.xz
debian/printer-driver-hpcups.NEWS
debian/hplip.NEWS

pool/main/i/isc-dhcp/isc-dhcp_4.3.1-1.debian.tar.xz
debian/isc-dhcp-server.NEWS
debian/isc-dhcp-client.NEWS

pool/main/k/kde4libs/kde4libs_4.14.0-1.debian.tar.xz
debian/NEWS
debian/kdelibs5-data.NEWS
debian/kdelibs5.NEWS

pool/main/libp/libpam-krb5/libpam-krb5_4.6-3.debian.tar.xz
debian/libpam-krb5.NEWS
debian/libpam-heimdal.NEWS

pool/main/libr/libreoffice/libreoffice_4.3.1-1.debian.tar.xz
debian/python3-uno.NEWS
debian/libreoffice-base.NEWS