Hi Petter, On Mi 12 Aug 2020 09:20:40 CEST, Petter Reinholdtsen wrote:
Package: debian-edu-config Version: 2.10.65+deb10u6 Severity: normal There is an issue with how three Debian Edu packages interact. It involves debian-edu-config, sitesummary and shutdown-at-night. After setting up outgoing emails on my laptop, where debian-edu-config and shutdown-at-night, but not sitesummary, is installed, I started getting cron emails like this:Subject: Cron <root@minerva> test -x /usr/lib/shutdown-at-night/wakeupclients && /usr/lib/shutdown-at-night/wakeupclientsCan't locate SiteSummary.pm in @INC (you may need to install the SiteSummary module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /etc/shutdown-at-night/clients-generator line 7. BEGIN failed--compilation aborted at /etc/shutdown-at-night/clients-generator line 7. The cause seem to be that the cron job from shutdown-at-night (/etc/cron.d/shutdown-at-night) calls the /etc/shutdown-at-night/clients-generator script from debian-edu-config, which fail to work when SiteSummary.pm from the sitesummary package is not available. I suspect some dependencies need to be adjusted to ensure the perl module is available when needed, or the script need to cope with the missing module in a better way.
the client-generator script in /etc/shutdown-at-night/ shipped in d-e-c requires SiteSummary.pm. So the quick fix would be a dependency of debian-edu-config on sitesummary.
However, for your notebook setup this might feel like an overload. My approach would be to split out the Perl module SiteSummary.pm into a separate bin:pkg within the sitesummary src:pkg and then let d-e-c depend on libsitesummary-perl.
Feedback? Too much of a change? Mike -- DAS-NETZWERKTEAM c\o Technik- und Ökologiezentrum Eckernförde Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde mobile: +49 (1520) 1976 148 landline: +49 (4351) 850 8940 GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
Attachment:
pgpH3gR4eH86M.pgp
Description: Digitale PGP-Signatur