Hi, Please apply this little patch that makes cron & systemd-cron play nice together. I would do the same in systemd-cron - as soon as I package v1.5.1 that does grok /etc/cron.allow & /etc/cron.deny - to allow users to switch back and forth at will. Cheers, (non-)handling of /var/run/crond.reboot is already OK. Alexandre Detiste
Hi, I'm afraid it's not that simple, see https://www.debian.org/doc/debian-policy/ch-files.html#s10.7.4 and https://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces Furthermore, regardless of the above, a "purge" request is an explicit user request to remove everything, including conffiles. I don't see the connection to systemd-cron here: AFAIUI, a switch to the latter would not call a "remove". Regards, Christian
^^^^^^
Sorry, that should have been "purge", of course.
As indicated by Christian, I'm afraid we cannot accept this patch. We can either close it or, if you agree, we change this into a "wishlist" patch asking cron to provide its conffiles in a separate package. As discussed in the thread you started in debian-devel [1] Bear in mind, moving conffiles from a package to another one is not that simple and is quite error-prone. I'm not sure we want to introduce such a big change during the freeze (and even if we do it might not be accepted by RMs). Also please note that if system-crond starts manipulating cron's postrm files it could be considered a serious bug (and policy violation). Please don't go through that road... Best regards Javier [1] https://lists.debian.org/debian-devel/2014/12/msg00287.html
control: severity -1 wishlist control: tags -1 + moreinfo - patch Ok, the right thing to do can be discussed after Jessie is released. I guess spliting out crontab , /etc/cron.allow & /etc/cron.deny in a separate "crontab" package would solve this problem properly; and you would keep full control over both pieces. I know this was wrong & this is why the discussion on debian-devel started. Regards, Alexandre Detiste
We believe that the bug you reported is fixed in the latest version of
systemd-cron, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 773095@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Georges Khaznadar <georgesk@debian.org> (supplier of updated systemd-cron package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 02 Jul 2022 11:33:20 +0200
Source: systemd-cron
Architecture: source
Version: 1.15.18-1.2
Distribution: unstable
Urgency: medium
Maintainer: Debian Systemd Maintainers <pkg-systemd-maintainers@lists.alioth.debian.org>
Changed-By: Georges Khaznadar <georgesk@debian.org>
Closes: 773095
Changes:
systemd-cron (1.15.18-1.2) unstable; urgency=medium
.
* Non-maintainer upload. (closes: #773095)
* Modified d/postrm to move files /etc/cron.allow and /etc/cron.deny
out of the way when systemd-cron is purged. A message telling that
those files are kept in /var/tmp is issued.
Checksums-Sha1:
9dde19d752e02b82f3f3d1c7f1a25f3730902110 2112 systemd-cron_1.15.18-1.2.dsc
91c03cf802073e0a0a4fa8f9a914f78c4fb16a68 7568 systemd-cron_1.15.18-1.2.debian.tar.xz
e1f57c83e28bb308063345f7abce2a7f9e9e4459 6201 systemd-cron_1.15.18-1.2_source.buildinfo
Checksums-Sha256:
9e92c3bed9e9fe87c728904bcd8f09fc540ea4fe0e6d380e7a3daa517dad1b53 2112 systemd-cron_1.15.18-1.2.dsc
269f02124e1e313d22fb91c0fc6e89e91577cfb391a7a6f0664c3fc5e6be486a 7568 systemd-cron_1.15.18-1.2.debian.tar.xz
8a7d7f14fe35e6b63e222b68f91a484678b503996a6d02a8eda15e443b1fc908 6201 systemd-cron_1.15.18-1.2_source.buildinfo
Files:
400bd624d94c4d852848ea3a926ba74a 2112 admin optional systemd-cron_1.15.18-1.2.dsc
d2fd15af1d07c8c2400c7bc193137059 7568 admin optional systemd-cron_1.15.18-1.2.debian.tar.xz
af3e118ae2af658b16d0399aa441cf62 6201 admin optional systemd-cron_1.15.18-1.2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJIBAEBCAAyFiEEM0CzZP9nFT+3zK6FHCgWkHE2rjkFAmLAEXQUHGdlb3JnZXNr
QGRlYmlhbi5vcmcACgkQHCgWkHE2rjkcXhAApoxwQmgckCHjagclihK075mxOJWj
ogbW5YpkFFfj8KYNvUn+EmuWhjPH8E+oetDQWplFAQuFQqOBXNshYNEC+bPZfVxo
Xzf7/OlMf/V5UAhO6etbp5SYv8kekIk48/Q05KZTLs+cdReHXLRI5J8IlzQiq+wD
bHuQD3PY6EVdKgDnWLj6jLBKSxD0SOtIiIq0jPIS+N6UNcrmzrEPE7pnt3x2rTx2
MQjXQ0eIMBNjW3zHLf4Phs1USU713zosl4aY6RgWrU2NZ1PDpfWPJQjFpEZcldpy
UpY+xy38zUcq3ButTR8v83VUl/fDUX9/qm6qqldZHrCMOe4yuy0uhulzTK0o40rC
jXgKqgAUauZ8BV65bC7ZgWkbJYwF37lqV0W3xC/nhZngRqDWQIOkcrPjK3cvRLtN
YDOrytiza7MEAekbJA+mSqjVSOl9KQYgsJfAVO97tHPl1AltrTnGYDGW8HjaKwVE
aw9nXG1fg6iqN8FtjLgRul1l3ClyJ32GEEVM4BzN7vaYHbCs8xP0prKArHLi+wQL
iu/CV43UPGIO5WKhEngPcNdM+fJHUsWVSGtPZRkjY04F1N+AfP5NNXvQI7nyD75e
TnxB0IaDnn4ZeOHHKojVdodGWxXbJ9YZtDYF8Du76yRPKJYdDGKcc8RFTXTtp8Uy
0lcV6BX7WQxtNCU=
=XrjH
-----END PGP SIGNATURE-----
We believe that the bug you reported is fixed in the latest version of
cron, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 773095@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Georges Khaznadar <georgesk@debian.org> (supplier of updated cron package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 04 Jul 2022 09:37:15 +0200
Source: cron
Architecture: source
Version: 3.0pl1-145
Distribution: unstable
Urgency: medium
Maintainer: Javier Fernández-Sanguino Peña <jfs@debian.org>
Changed-By: Georges Khaznadar <georgesk@debian.org>
Closes: 773095 983817
Changes:
cron (3.0pl1-145) unstable; urgency=medium
.
* included Jorge Rocha Gualtieri's patch, and shifted the change
by many lines (closes: #983817)
* moved part of debian/cron.postrm to debian/cron-daemon-common.postrm,
added a condition in debian/cron-daemon-common.postrm: systemd-cron
must not be installed, to let it remove /etc/cron.allow and
/etc/cron.deny (closes: #773095)
Checksums-Sha1:
71e17300a4ba3e64c71c1de5232048190a41c905 2114 cron_3.0pl1-145.dsc
2edf61e3866a9e9fb55d7c0f9f10a534602a5f3f 111012 cron_3.0pl1-145.debian.tar.xz
1b2f29737ea810f93408ff5ac8810cc7d2dda9fc 5898 cron_3.0pl1-145_source.buildinfo
Checksums-Sha256:
ae52cc42de974ccd4a2c0b42cb7a4f11bf81cdb4531f8c98b91ca51aacaa57c1 2114 cron_3.0pl1-145.dsc
6e4bd307b790068424a0a8c608208571f44c73383b2908fc7642845e2a3b44b8 111012 cron_3.0pl1-145.debian.tar.xz
3d5d4ee940502eb61f2834467aa688aaaa7c9c1821aafac79fd9f49457b9d2dd 5898 cron_3.0pl1-145_source.buildinfo
Files:
f7beea7308e5b91afc126bcedd45601f 2114 admin important cron_3.0pl1-145.dsc
5ffc5ad09b6cdf2c49994377ae3329dd 111012 admin important cron_3.0pl1-145.debian.tar.xz
cbd48157058b914905ceedb4504898a7 5898 admin important cron_3.0pl1-145_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJIBAEBCAAyFiEEM0CzZP9nFT+3zK6FHCgWkHE2rjkFAmLHIUkUHGdlb3JnZXNr
QGRlYmlhbi5vcmcACgkQHCgWkHE2rjmephAAi1Vt+uPLgB808BdCoZpXOnHcAnlE
nvjLUobSJVedTRbWZGQzjBF1eTWMyxfICEu0vp6Q+hJPEbYEzqCYrPRqaWlE55Yi
Ywgjyy4l+CmxdoYkzndEN2UKQHJUqsOAoPqH7uvf3UiPQhq9abIz3Ws13JDM13bW
FjdxQUPbbP4c4Jzi3qse7gXP1dlDCDKaooEkclmgv/qErnrvCQkpc6G4NgvqFHF/
D7FyzxI53jg4cvM8IJ269ujkjJ9J2pYf4H+oDuzgrEuY2DkkNgwDsdn2LoPFrvdO
m+UQRm25b3mH8zR7s/fKsd5C7vgoavub5nnGSGAlUgRpMkn8WKL882DNWlMVXaN/
wORYI2Th6uQPdSjGo2yIP0pEYT+EX3NEUxmyxz/xwv3s6esjsrdw5lhb8wW+OUF3
k+b/do3WB+LTZFwowK0p+BK0SN5LnxKpl4g71woZoNbF7tWmOUeFh/GfwhPwkPtf
t80y9+MW1aiimwTQ44HsCmEM6zQSYxBiWe4T4W3f+F12hTmDMZUZtZnBSOFo7qrf
DIVTL1pXll1XwGikaKSUOll3mLKJuoFX7iAJlB3ADkoa/npG+Ge9Ipv45zkLY4FV
ZsG3e5o/UWiQADp3BRREw8vMcW5YEUNI7GrrC8b0pilWmg49taXHxKU//pblBs5V
d90qeaoejFQiCUA=
=p5T7
-----END PGP SIGNATURE-----