This patch makes the public-inbox testsuite pass. Some tests are skipped,
so the test coverage could likely be increased with more massaging.
Perhaps the most significant change is using tini to run the testsuite so
that the testsuite's sub-processes are reaped. The ‘check’ phase is based on
the one from the mutter package. Thanks to Maxim Cournoyer for pointing out
this solution.
* gnu/packages/patches/public-inbox-fix-spawn-test.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add new patch.
* gnu/packages/mail.scm (public-inbox)[source]: Add new patch.
[arguments]<#:tests?>: Remove argument.
<#:imported-modules>: Add argument.
<#:modules>: Likewise.
<#:phases>{qualify-paths}: Substitute path for ‘/bin/cp’.
{pre-check}: Don't skip httpd-unix.t test. Remove unnecessary path
substitutions for “env” and “/bin/sh”.
{check}: Replace with custom version that launches the tests under tini.
[native-inputs]: Add tini.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Some fixes are needed in both the testsuite and the package itself before
tests can pass so disable them for now.
Also, the lei command needs curl to work, so add it to the PATH in
‘wrap-program’.
* gnu/packages/mail.scm (public-inbox)[version]: Change to 1.8.0.
[source]: Update hash.
[arguments]<#:tests?>: Set to #f.
[arguments]<#:phases>{wrap-programs}: Add curl to PATH.
[inputs]: Add curl and perl-socket-msghdr.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
The file ‘script/public-inbox-compact’ doesn't call ‘xapian-compact’ directly
anymore, so the substitution in the ‘qualify-paths’ phase doesn't do anything.
Now there's a reference to ‘xapian-compact’ in ‘lib/PublicInbox/Xapcmd.pm’,
so substitute the path there.
And move xapian from native-inputs to inputs and use its input path in the
substitution, since ‘xapian-compact’ is called during normal execution of
public-inbox.
Also add ‘bash-minimal’ to the package's inputs, since it uses ‘wrap-program’.
Finally, take the opportunity to change build phases to not return #t
unconditionally, since that isn't necessary anymore.
* gnu/packages/mail.scm (public-inbox)[arguments]<#:phases>: Don't return #t
from each phase.
{qualify-paths}: Substitute ‘xapian-compact’ path in the correct file. Use
‘search-input-file’ rather than ‘which’ to find it.
[native-inputs]: Move ‘xapian’ from here ...
[inputs]: ... to here. Add ‘bash-minimal’.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* gnu/packages/mail.scm (rspamd): Update to 3.2
I also added a new build option, that changes the LOCAL_CONFDIR variable to
/etc/rspamd. This allows for rspamd configuration via the /etc/rspamd/local.d
and override.d directories, which by default were located in the PREFIX which
is in /gnu/store.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
[[PGP Signed Part:No public key for 2208D20958C1DEB0 created at 2022-03-28T11:03:48+0200 using RSA]]
* gnu/packages/mail.scm (l2md): Update to 9db252bc.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* gnu/packages/mail.scm (python-notmuch2)[#:phases]: Add
‘create-notmuch-config’ and ‘patch-setup.’py after ‘enter-python-dir’.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
* gnu/packages/mail.scm (mblaze)[arguments]: Enable tests
and remove comment about broken tests since tests are not broken.
See <https://github.com/leahneukirchen/mblaze/issues/221>.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>