user/dev discussion of public-inbox itself
 help / color / Atom feed
From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH 0/6] make Search::Xapian optional for v2, NNTP, etc
Date: Wed, 15 May 2019 06:33:48 +0000
Message-ID: <20190515063354.52259-1-e@80x24.org> (raw)

Search::Xapian is missing from CentOS 7 and probably other
distros; so make it optional as all of our NNTP and a large
chunk of our WWW functionality doesn't rely on it, anymore.

Xapian databases is also the most expensive in terms of space
for indexing overhead, so indexlevel=basic users may appreciate
not having to install Xapian at all.

This has passed all test profiles (ci/profiles.sh) on Debian 9
and FreeBSD 11.2 (x86-64); but I haven't dogfooded it enough
to be comfortable having it in 'master'...  and I might not be
online much the next few days in case something goes sideways
on public-inbox.org.

The following changes since commit 2d51a2accd28465c915f91ab48c7e52a81d87a68:

  tests: get rid of unnecessary Cwd module use (2019-05-14 04:00:10 +0000)

are available in the Git repository at:

  https://80x24.org/public-inbox.git xap-optional

for you to fetch changes up to d0e8bfd866ed1e924e8d9f551939eecbea4920ef:

  admin: improve warnings and errors for missing modules (2019-05-15 06:15:34 +0000)

----------------------------------------------------------------
Eric Wong (6):
      inbox: add ->over method to ease access
      nntp: use Inbox->over directly
      www: use Inbox->over where appropriate
      lazy load Xapian and make it optional for v2
      searchidx: do not create empty Xapian partitions for basic
      admin: improve warnings and errors for missing modules

 INSTALL                       |   2 +-
 TODO                          |   2 -
 ci/deps.perl                  |   7 +--
 ci/profiles.sh                |   3 +-
 lib/PublicInbox/Admin.pm      |  60 ++++++++++++++++++++
 lib/PublicInbox/Feed.pm       |  11 ++--
 lib/PublicInbox/Inbox.pm      |  40 +++++++++-----
 lib/PublicInbox/Mbox.pm       |  25 +++++----
 lib/PublicInbox/NNTP.pm       |  40 +++++++-------
 lib/PublicInbox/OverIdx.pm    |  13 ++++-
 lib/PublicInbox/Search.pm     | 125 +++++++++++++++++-------------------------
 lib/PublicInbox/SearchIdx.pm  |  57 +++++++++++++------
 lib/PublicInbox/SearchMsg.pm  |  14 +++++
 lib/PublicInbox/SearchView.pm |  13 +++--
 lib/PublicInbox/View.pm       |  53 ++++++++----------
 lib/PublicInbox/WWW.pm        |  39 +++++--------
 script/public-inbox-index     |  43 ++++++++++-----
 script/public-inbox-init      |   8 ++-
 script/public-inbox-purge     |  48 +++++++++++++---
 t/admin.t                     |   2 +-
 t/cgi.t                       |  16 ++++--
 t/indexlevels-mirror.t        |  22 ++++++--
 t/nntp.t                      |   2 +-
 t/nntpd.t                     |  15 +++--
 t/over.t                      |   3 +-
 t/psgi_bad_mids.t             |   3 +-
 t/psgi_scan_all.t             |   4 +-
 t/psgi_search.t               |   4 +-
 t/purge.t                     |   2 +-
 t/search-thr-index.t          |   5 +-
 t/search.t                    |  11 ++--
 t/v1reindex.t                 |   3 +-
 t/v2reindex.t                 |   5 +-
 t/v2writable.t                |   2 +-
 t/view.t                      |   1 +
 t/watch_maildir_v2.t          |   4 +-
 36 files changed, 432 insertions(+), 275 deletions(-)

             reply index

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-15  6:33 Eric Wong [this message]
2019-05-15  6:33 ` [PATCH 1/6] inbox: add ->over method to ease access Eric Wong
2019-05-15  6:33 ` [PATCH 2/6] nntp: use Inbox->over directly Eric Wong
2019-05-15  6:33 ` [PATCH 3/6] www: use Inbox->over where appropriate Eric Wong
2019-05-15  6:33 ` [PATCH 4/6] lazy load Xapian and make it optional for v2 Eric Wong
2019-05-15  6:33 ` [PATCH 5/6] searchidx: do not create empty Xapian partitions for basic Eric Wong
2019-05-15  6:33 ` [PATCH 6/6] admin: improve warnings and errors for missing modules Eric Wong
2019-05-22  0:35 ` [PATCH 0/6] make Search::Xapian optional for v2, NNTP, etc Eric Wong

Reply instructions:

You may reply publically 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: http://public-inbox.org/README

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

  git send-email \
    --in-reply-to=20190515063354.52259-1-e@80x24.org \
    --to=e@80x24.org \
    --cc=meta@public-inbox.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

user/dev discussion of public-inbox itself

Archives are clonable:
	git clone --mirror http://public-inbox.org/meta
	git clone --mirror http://czquwvybam4bgbro.onion/meta
	git clone --mirror http://hjrcffqmbrq6wope.onion/meta
	git clone --mirror http://ou63pmih66umazou.onion/meta

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.mail.public-inbox.meta
	nntp://ou63pmih66umazou.onion/inbox.comp.mail.public-inbox.meta
	nntp://czquwvybam4bgbro.onion/inbox.comp.mail.public-inbox.meta
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.mail.public-inbox.meta
	nntp://news.gmane.org/gmane.mail.public-inbox.general

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox