about summary refs log tree commit homepage
path: root/lib/PublicInbox/Spawn.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-10-09 18:16:18 +0000
committerEric Wong <e@80x24.org>2023-10-09 18:41:54 +0000
commit0205e902056f9900c77840138894bf8884ea6568 (patch)
tree3a079c59692ac5667727eb29fcea12fdfd5ae399 /lib/PublicInbox/Spawn.pm
parent5754faeb3fa1c9aaeff8922b449127cfbc86236d (diff)
downloadpublic-inbox-0205e902056f9900c77840138894bf8884ea6568.tar.gz
We must not attempt to use Inline::C unless a user requests
it (by creating the directory) or running lei.

Fixes: ebdccd6666f9 (spawn: drop checks for directory writability)
Diffstat (limited to 'lib/PublicInbox/Spawn.pm')
-rw-r--r--lib/PublicInbox/Spawn.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm
index ec256698..265638fe 100644
--- a/lib/PublicInbox/Spawn.pm
+++ b/lib/PublicInbox/Spawn.pm
@@ -287,6 +287,7 @@ ALL_LIBC
                         $ENV{XDG_CACHE_HOME} //
                         ( ($ENV{HOME} // '/nonexistent').'/.cache' )
                 ).'/public-inbox/inline-c';
+        undef $all_libc unless -d $inline_dir;
         if (defined $all_libc) {
                 local $ENV{PERL_INLINE_DIRECTORY} = $inline_dir;
                 use autodie;