diff options
author | Eric Wong <e@80x24.org> | 2019-12-22 22:17:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-12-24 03:48:12 +0000 |
commit | cd8dd7b08fddc7c2b5f218c3fcaa5dca5f9ad945 (patch) | |
tree | 0989e4981be20e2408dda31314da019bd1841647 /lib/PublicInbox/Admin.pm | |
parent | 9484944697a1bf76d00d84d081e6a7d633074336 (diff) | |
download | public-inbox-cd8dd7b08fddc7c2b5f218c3fcaa5dca5f9ad945.tar.gz |
Xapian upstream is slowly phasing out the XS-based Search::Xapian in favor of the SWIG-generated "Xapian" package. While Debian and both FreeBSD have Search::Xapian, OpenBSD only includes the "Xapian" binding. More information about the status of the "Xapian" Perl module here: https://trac.xapian.org/ticket/523
Diffstat (limited to 'lib/PublicInbox/Admin.pm')
-rw-r--r-- | lib/PublicInbox/Admin.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm index 3d0d80b9..32a9f65e 100644 --- a/lib/PublicInbox/Admin.pm +++ b/lib/PublicInbox/Admin.pm @@ -159,6 +159,10 @@ sub check_require { while (my $mod = shift @mods) { if (my $groups = $mod_groups{$mod}) { push @mods, @$groups; + } elsif ($mod eq 'Search::Xapian') { + require PublicInbox::Search; + PublicInbox::Search::load_xapian() or + $err->{'Search::Xapian || Xapian'} = $@; } else { eval "require $mod"; $err->{$mod} = $@ if $@; |