unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org
Subject: Re: [PATCH] doc: drop use of env with sphinx-build
Date: Wed, 22 Dec 2021 20:54:11 -0400	[thread overview]
Message-ID: <87r1a4jg3w.fsf@tethera.net> (raw)
In-Reply-To: <20211204183849.427098-1-david@tethera.net>

David Bremner <david@tethera.net> writes:

> NOTMUCH_BUILDDIR is not defined in make, only in test scripts, so this
> cannot be doing any good. Without the notmuch2 python module
> installed, it the docs still build, so removing the use of env seems
> to do no harm.
>
> This is a partial revert of 2739549c

It's true that NOTMUCH_BUILDDIR is not defined in make, but I now
understand what that change was trying to accomplish. Autodoc wants to
load the python module, which in turn wants to load the notmuch shared
library. So somehow the doc build needs to find the shared library.

> ---
>  doc/Makefile.local | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/doc/Makefile.local b/doc/Makefile.local
> index 730ad4fb..a8e25037 100644
> --- a/doc/Makefile.local
> +++ b/doc/Makefile.local
> @@ -4,7 +4,7 @@ dir := doc
>  
>  # You can set these variables from the command line.
>  SPHINXOPTS    := -q
> -SPHINXBUILD   = env LD_LIBRARY_PATH=${NOTMUCH_BUILDDIR}/lib sphinx-build
> +SPHINXBUILD   = sphinx-build
>  DOCBUILDDIR      := $(dir)/_build
>  
>  # Internal variables.
> -- 
> 2.33.0

      reply	other threads:[~2021-12-23  0:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-04 18:38 [PATCH] doc: drop use of env with sphinx-build David Bremner
2021-12-23  0:54 ` David Bremner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1a4jg3w.fsf@tethera.net \
    --to=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).