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>
* gnu/packages/mail.scm (postorius)[inputs]: Change from PYTHON-DJANGO to
PYTHON-DJANGO-2.2. Move PYTHON-README-RENDERER early so that its propagated
cffi takes precedence, in order to placate the sanity check.
* gnu/packages/django.scm (python-djangorestframework): Define as deprecated
alias for ...
(python-django-rest-framework): ... this new variable.
(python-django-filter)[native-inputs]: Adjust accordingly.
* gnu/packages/mail.scm (python-hyperkitty)[propagated-inputs]: Likewise.
* gnu/packages/patchutils.scm (patchwork)[propagated-inputs]: Likewise.
This is the result of running:
./pre-inst-env guix style --input-simplification=safe
and manually undoing changes on a dozen of packages to reduce
rebuilds (derivations for emacs, icecat, and libreoffice are unchanged.)
There are three open pull requests adding this functionality:
- https://github.com/google/gmail-oauth2-tools/pull/17 (October 2019)
- https://github.com/google/gmail-oauth2-tools/pull/26 (May 2020)
- https://github.com/google/gmail-oauth2-tools/pull/37 (May 2021)
(The patch here is identical to #26, so I just closed this one.)
Meanwhile, the most recent commit to the upstream repository was in
May 2019: that was the commit that first added `sendgmail`.
This commit adjusts Guix's `sendgmail`, following Postel's advice,
to make the command "liberal in its receiving behavior" (RFC 760):
it always accepts email addresses with any domain name, as in #26,
and it accepts (and ignores) the `-gsuite` flag used in #17.
* gnu/packages/patches/sendgmail-remove-domain-restriction.patch:
New file. This is the patch from #26.
* gnu/packages/patches/sendgmail-accept-ignored-gsuite-flag.patch:
New file, based on #17.
* gnu/local.mk (dist_patch_DATA): Add the new patches.
* gnu/packages/mail.scm (sendgmail)[source]: Apply the new patches.
Increment the "revision" argument to `git-version` from 0 to 1.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Suggested by Ludo’ in <https://issues.guix.gnu.org/50420#3>.
* gnu/packages/golang.scm
(go-github-com-google-gmail-oauth2-tools-go-sendgmail): Move to ...
* gnu/packages/mail.scm (sendgmail): ... this variable.
Change `propagated-inputs` to `inputs`.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* gnu/packages/mail.scm (python-hyperkitty): Update to 1.3.5.
[arguments]: Add pythonpath in test invokation.
[propagated-inputs]: Add PYTHON-MISTUNE-NEXT. Change from PYTHON-DJANGO-2.2
to PYTHON-DJANGO.
[native-inputs]: Add PYTHON-LXML.
With the addition of a profile hook for computing the gdk-pixbuf loaders cache
file, there is no longer a need for gdk-pixbuf+svg, and librsvg can propagate
gdk-pixbuf without fear, so replace the former for the latter.
The replacement was automated with the following command:
$ git grep -l ',gdk-pixbuf+svg)' \
| xargs sed 's/(".*" ,gdk-pixbuf+svg)/("librsvg" ,librsvg)/' -i
* gnu/packages/gtk.scm (gdk-pixbuf+svg): Delete package.
(gtk+-2)[propagated-inputs]: Replace gdk-pixbuf+svg with librsvg.
(gtk+)[propagated-inputs]: Likewise.
* gnu/packages/gnome.scm (gdk-pixbuf+svg): Add deprecated package.