From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.4 required=3.0 tests=ALL_TRUSTED,BAYES_00,THIS_AD shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A21C61F670; Tue, 19 Oct 2021 11:53:05 +0000 (UTC) Date: Tue, 19 Oct 2021 11:53:05 +0000 From: Eric Wong To: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason Cc: meta@public-inbox.org Subject: Re: [PATCH] Makefile.PL: drop generated lib/PublicInbox.pm in blib/ Message-ID: <20211019115305.GA6727@dcvr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: Ævar Arnfjörð Bjarmason wrote: > Running "make test" on this project doesn't pass unless you've got an > existing PublicInbox.pm in your @INC, presumably nobody's set this up > on a fresh machine in a while. > > This Makefile.PL trickery seems to do it, I've validated this with > this ad-hoc test of committing blib/ and Makefile to the repository: > > git clean -dxf; perl Makefile.PL && make -j8 all && git add -f blib Makefile.PL Makefile && git commit -m"now" > > Running that in interactive rebase before/after shows that only the > PublicInbox.pm file was added to blib/lib/. We use $(INST_LIB) instead > of a hardcoded 'blib/lib' now, but it's what ExtUtils::MakeMaker > recommends, so it's probably for the better. That works for me. > As far as I can tell this broke with 1fae720d (build: generate > PublicInbox.pm with $VERSION, 2021-04-01), but I have not tested > that. See also 1fae720d (build: generate PublicInbox.pm with $VERSION, > 2021-04-01) which made the PublicInbox.pm a generated file. Thanks, applied and pushed as 8377d44046ade5becb21f71e4d1d68dd6ae2bbf0 Fwiw, "make check" or "make check-run" can be way faster on SMP systems; so I don't think anybody's run the EU::MM "make test" in ages.