FS#61011 - [xfsprogs] /usr/lib/xfsprogs/xfs_scrub_fail requires /usr/bin/sendmail

Attached to Project: Arch Linux
Opened by nl6720 (nl6720) - Sunday, 09 December 2018, 08:26 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 17 August 2020, 14:35 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
After running `xfs_scrub_all` I got a few warnings and this message:

Job for xfs_scrub@-home.service failed because the control process exited with error code.

Journal shows:

systemd[1]: Starting Online XFS Metadata Check Failure Reporting for /home...
xfs_scrub_fail[2402]: /usr/sbin/sendmail: Mailer program not found.
systemd[1]: xfs_scrub_fail@-home.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: xfs_scrub_fail@-home.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Online XFS Metadata Check Failure Reporting for /home.

It looks like /usr/lib/xfsprogs/xfs_scrub_fail requires /usr/bin/sendmail.
Looking at the packages that have /usr/bin/sendmail, they all provide "smtp-forwarder". Please add "smtp-forwarder" to optional dependencies.

Additional info:
* package version(s)
* config and/or log files etc.
xfsprogs 4.19.0-1

Steps to reproduce:
Create a file with a control character (\x0a in my case) in the file name,
run `xfs_scrub_all`
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Monday, 17 August 2020, 14:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  5.7.0-3
Comment by nl6720 (nl6720) - Monday, 11 May 2020, 12:26 GMT
xfsprogs needs another optional dependency: python. /usr/bin/xfs_scrub_all is a Python3 script.
And also bash, /usr/lib/xfsprogs/xfs_scrub_fail is a bash script unlike the /usr/bin/xfs* POSIX shell scripts.
Comment by nl6720 (nl6720) - Monday, 17 August 2020, 12:49 GMT
xfsprogs 5.7.0-2 does not list "smtp-forwarder" as an optional dependency.
Comment by Tobias Powalowski (tpowa) - Monday, 17 August 2020, 12:52 GMT
smtp-forwarder for which program?
Comment by nl6720 (nl6720) - Monday, 17 August 2020, 13:00 GMT
Literally "smtp-forwarder". It is provided by multiple packages, see https://www.archlinux.org/packages/core/x86_64/s-nail/ for an example with such a optdepend.
Comment by nl6720 (nl6720) - Monday, 17 August 2020, 13:05 GMT
If you were asking which program needs "smtp-forwarder" (i.e. /usr/bin/sendmail), then it's /usr/lib/xfsprogs/xfs_scrub_fail that is started by xfs_scrub_fail@.service.

Loading...