From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 86B7D1F454 for ; Mon, 9 Oct 2023 18:16:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1696875378; bh=6YpuiBOK1ekm7sQ+fTqzK9wKBJSiaVga2KvPf4s7Rn8=; h=From:To:Subject:Date:From; b=14jgEEbGkbZYnJSQk0tEDTWZ+48amWQO28sS5itlI0poCb9fzGxfOXJT9o4FBVld3 39nDowtSV6QhlC0CVe8PYTITw6xnGdqY7i+N+a8Qk5kDoheMGw7lW0tkOtu7w0WkHc AXSkd4PXY/WRyBwvX2F3ubY+DMdHQKm6tpYHbsZs= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] spawn: reinstate directory existence check Date: Mon, 9 Oct 2023 18:16:18 +0000 Message-ID: <20231009181618.2814158-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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;