Public bug reported:

unattended-upgrades overrides the setting of APT_LISTCHANGES_FRONTEND.
per the comments, this was done at a time when apt-listchanges would
"always send a mail if there is a mail address set in the config
regardless of the frontend used."  this is no longer the case and this
(now unnecessary) local override of APT_LISTCHANGES_FRONTEND can cause
confusion when apt-listchanges appears to ignore its configured
settings.

What I expected to happen:

i expected apt-listchanges to conform to its configuration.  setting the
"none" frontend in /etc/apt/listchanges.conf should ensure it "Does
nothing" as per the manpage.

What happened instead:

unattended-upgrades does not respect the frontend setting, essentially
now replicating the bad behavior this snippet was originally meant to
workaround (i.e., mail is currently sent when email_address is set but
frontend=none).  with the attached patch the frontend specified in
listchanges.conf is no longer unnecessarily overridden.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: unattended-upgrades 0.90
ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
Uname: Linux 4.4.0-31-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Thu Oct 13 07:07:44 2016
JournalErrors:
 -- Logs begin at Tue 2016-10-11 08:02:03 PDT, end at Thu 2016-10-13 07:06:49 
PDT. --
 Oct 11 08:13:30 hostname systemd-tmpfiles[10524]: 
[/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
 Oct 12 08:13:50 hostname systemd-tmpfiles[25099]: 
[/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
PackageArchitecture: all
ProcEnviron:
 TERM=rxvt-unicode-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: unattended-upgrades
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: unattended-upgrades (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

** Patch added: "remove the APT_LISTCHANGES_FRONTEND override"
   
https://bugs.launchpad.net/bugs/1633098/+attachment/4760432/+files/unattended-upgrade_APT_LISTCHANGES_FRONTEND.patch

** Description changed:

  unattended-upgrades overrides the setting of APT_LISTCHANGES_FRONTEND.
  per the comments, this was done at a time when apt-listchanges would
  "always send a mail if there is a mail address set in the config
  regardless of the frontend used."  this is no longer the case and this
  (now unnecessary) local override of APT_LISTCHANGES_FRONTEND can cause
  confusion when apt-listchanges appears to ignore its configured
  settings.
  
  What I expected to happen:
  
  i expected apt-listchanges to conform to its configuration.  setting the
  "none" frontend in /etc/apt/listchanges.conf should ensure it "Does
  nothing" as per the manpage.
  
  What happened instead:
  
  unattended-upgrades does not respect the frontend setting, essentially
  now replicating the bad behavior this snippet was originally meant to
- workaround.  with the attached patch the frontend specified in
+ workaround (i.e., mail is currently sent when email_address is set but
+ frontend=none).  with the attached patch the frontend specified in
  listchanges.conf is no longer unnecessarily overridden.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: unattended-upgrades 0.90
  ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
  Uname: Linux 4.4.0-31-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  Date: Thu Oct 13 07:07:44 2016
  JournalErrors:
-  -- Logs begin at Tue 2016-10-11 08:02:03 PDT, end at Thu 2016-10-13 07:06:49 
PDT. --
-  Oct 11 08:13:30 hostname systemd-tmpfiles[10524]: 
[/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
-  Oct 12 08:13:50 hostname systemd-tmpfiles[25099]: 
[/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
+  -- Logs begin at Tue 2016-10-11 08:02:03 PDT, end at Thu 2016-10-13 07:06:49 
PDT. --
+  Oct 11 08:13:30 hostname systemd-tmpfiles[10524]: 
[/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
+  Oct 12 08:13:50 hostname systemd-tmpfiles[25099]: 
[/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
  PackageArchitecture: all
  ProcEnviron:
-  TERM=rxvt-unicode-256color
-  PATH=(custom, no user)
-  XDG_RUNTIME_DIR=<set>
-  LANG=en_US.UTF-8
-  SHELL=/bin/zsh
+  TERM=rxvt-unicode-256color
+  PATH=(custom, no user)
+  XDG_RUNTIME_DIR=<set>
+  LANG=en_US.UTF-8
+  SHELL=/bin/zsh
  SourcePackage: unattended-upgrades
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unattended-upgrades in
Ubuntu.
https://bugs.launchpad.net/bugs/1633098

Title:
  override of APT_LISTCHANGES_FRONTEND can/should be removed

Status in unattended-upgrades package in Ubuntu:
  New

Bug description:
  unattended-upgrades overrides the setting of APT_LISTCHANGES_FRONTEND.
  per the comments, this was done at a time when apt-listchanges would
  "always send a mail if there is a mail address set in the config
  regardless of the frontend used."  this is no longer the case and this
  (now unnecessary) local override of APT_LISTCHANGES_FRONTEND can cause
  confusion when apt-listchanges appears to ignore its configured
  settings.

  What I expected to happen:

  i expected apt-listchanges to conform to its configuration.  setting
  the "none" frontend in /etc/apt/listchanges.conf should ensure it
  "Does nothing" as per the manpage.

  What happened instead:

  unattended-upgrades does not respect the frontend setting, essentially
  now replicating the bad behavior this snippet was originally meant to
  workaround (i.e., mail is currently sent when email_address is set but
  frontend=none).  with the attached patch the frontend specified in
  listchanges.conf is no longer unnecessarily overridden.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: unattended-upgrades 0.90
  ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
  Uname: Linux 4.4.0-31-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  Date: Thu Oct 13 07:07:44 2016
  JournalErrors:
   -- Logs begin at Tue 2016-10-11 08:02:03 PDT, end at Thu 2016-10-13 07:06:49 
PDT. --
   Oct 11 08:13:30 hostname systemd-tmpfiles[10524]: 
[/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
   Oct 12 08:13:50 hostname systemd-tmpfiles[25099]: 
[/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
  PackageArchitecture: all
  ProcEnviron:
   TERM=rxvt-unicode-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/zsh
  SourcePackage: unattended-upgrades
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1633098/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to