Control: severity -1 wishlist

On Wed, 01 Feb 2023 10:25:21 -0500 Antoine Beaupre wrote:

> Package: apt-listbugs
> Version: 0.1.40
> Severity: minor

Hello Antoine!
Thanks for your bug report.   :-)

> 
> Since I'm running bookworm, apt-listbugs started pestering me with
> emails that look like this:
> 
> Date: Wed, 01 Feb 2023 07:25:20 -0500
> From: apt-listbugs timer <root@curie>
> To: r...@anarc.at
> Subject: prefclean output on curie
> 
> /usr/libexec/apt-listbugs/prefclean:
>  Paquets corrigés : breeze kactivitymanagerd ksshaskpass kwayland-integration 
> polkit-kde-agent-1
> 
> That "Paquets corrigés" string there means "Fixed packages" in
> english.

Yes, it's in the French translation catalog of messages.

> I've traced it down to /usr/libexec/apt-listbugs/aptcleanup,
> itself called from /usr/libexec/apt-listbugs/prefclean which
> specifically makes a point of explicitely writing an email if you're
> running under systemd.

It does so, in order to provide an equivalent functionality with
respect to the cron.daily job, which runs if you are _not_ running
under systemd.
By default, cron jobs have their output sent by (local) mail, if any
output is produced.
When I implemented the equivalent systemd timer, I had to manually
implement the output-mailing feature...

I must admit that I am somewhat surprised that you see all these mail
notifications about fixed packages as something new.
apt-listbugs has notified root by (local) mail about fixed packages for
ages. Through the cron job mechanism and, starting from 2019, through
the manually-implemented mailing in the systemd timer.

So, I wonder what has changed in your box, when you began to see these
mail notifications...

> 
> I'd love a way to turn that stuff off or, preferably, have it logged
> normally in syslog/journald. I don't need to be told when those things
> are fixed: I'm assuming apt-listbugs will do its job correctly unless
> otherwise noted. In other words, this is not a failure condition, it's
> actually a *success* condition, and I don't really need to be told
> about those.

Well, it's the first time that someone complains about these mail
notifications.

Personally, I like to be informed, when a bug that I feared has been
fixed, and the fixed package can finally be upgraded on my box.

Anyway, that's a matter of preference, I must admit.
Hence, it may make sense to implement an option to silence those
notifications...

> 
> Could we make this a knob at least? It looks like aptcleanup looks at
> the apt preferences to that might be a good place, but prefclean is
> where the decision is actually mean on how to treat the aptclean
> output, so I'm not sure how best this could be done...

I think that the best place where I can implement the option is
probably an APT preference to be read (via 'apt-config') by aptcleanup,
which would suppress its " Fixed packages:" output.

But I am afraid that this is not the right time to implement that for
bookworm.
I won't introduce such a change during the freeze.
I will probably do so for trixie, after bookworm is released.

In the meanwhile, you could try the attached patch as temporary
workaround for your specific case (the "I do not want any mail
notifications" case).
Please let me know whether it works as intended.

Bye.


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE

Attachment: bug1030249_tempworkaround.diff.xz
Description: application/xz

Attachment: pgpcMgs0FKmxm.pgp
Description: PGP signature

Reply via email to