unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH] spawn: reinstate directory existence check
@ 2023-10-09 18:16 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-10-09 18:16 UTC (permalink / raw)
  To: meta

We must not attempt to use Inline::C unless a user requests
it (by creating the directory) or running lei.
---
 lib/PublicInbox/Spawn.pm | 1 +
 1 file changed, 1 insertion(+)

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;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-09 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-09 18:16 [PATCH] spawn: reinstate directory existence check Eric Wong

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).