git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v4] Makefile: replace perl/Makefile.PL with simple make rules

From
Todd Zullinger <tmz@pobox.com>
Date
Dec 20, 2017, 06:15 UTC
Message-ID
<20171220061545.GF3693@zaya.teonanacatl.net>
In-Reply-To
<20171219235759.27570-1-avarab@gmail.com>
Hi Ævar,
Ævar Arnfjörð Bjarmason wrote:
Show 12 quoted lines
> Here's a hopefully final version. The only difference with v3 is:
> 
>     -    local @_ = ($caller, @_);
>     +    unshift @_, $caller;
> 
> As it turns out localizing @_ isn't something that worked properly
> until
> https://github.com/Perl/perl5/commit/049bd5ffd62b73325d4b2e75e59ba04b3569137d
> 
> That commit isn't part of the 5.16.3 version that ships with CentOS 7,
> which explains why Michael J Gruber had issues with it. I've tested
> this on CentOS 7 myself, it passes all tests now.
Thanks for tracking this down!

FWIW, I applied this version to next and tested it with CentOS 6 and 7. The tests pass on both (though there are some unrelated failures on CentOS 6 in t5700-protocol-v1, which I haven't looked into further yet).

I also applied this patch to 2.15.1 and ran the tests in the Fedora build system for all fedora and epel releases, which also passed (though with some spurious git-svn failures on x86_64 in fedora 28, AKA rawhide).

The .pmc extensions seem to cause rpm to fail to parse the files for rpm 'provides' as it normally would. This causes scripts like git-send-email which generates a 'requires' on Git::Error to fail to find anything which provides it.

I'm not familiar with the .pmc extenstion. Searching the fedora repositories, there is only one other package - and one file within it - which has a .pmc extension.

(The package is perl-test, the file is /usr/libexec/perl5-tests/perl-tests/t/run/flib/t2.pmc.)

Perhaps it's a bug in rpm's perl dependency generator, but I'd like to think that git wouldn't be the first package to find it.

Is the .pmc extension important to ensure these files are loaded in the right order? Since they're all in the Git namespace, I don't imagine there should be anything else in @INC which would be provided by the system or another package.

Pardon my ignorance if I've missed the obvious (I haven't fully read "perldoc -f require" which you referenced in the commit message).

-- 
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Suppose I were a member of Congress, and suppose I were an idiot. But,
I repeat myself.
    -- Mark Twain
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 24 of 35 in “Makefile: replace the overly complex perl build system with something simple”
  1. Makefile: replace the overly complex perl build system with something simpleÆvar Arnfjörð Bjarmason, Nov 29, 2017
  2. Makefile: replace perl/Makefile.PL with simple make rulesÆvar Arnfjörð Bjarmason, Nov 29, 2017
  3. Jonathan NiederNov 30, 2017
  4. Ævar Arnfjörð BjarmasonNov 30, 2017
  5. Jonathan NiederNov 30, 2017
  6. Eric WongNov 30, 2017
  7. Jeff KingNov 30, 2017
  8. Ævar Arnfjörð BjarmasonNov 30, 2017
  9. Alex VandiverDec 21, 2017
  10. Makefile: replace perl/Makefile.PL with simple make rulesÆvar Arnfjörð Bjarmason, Dec 3, 2017
  11. Junio C HamanoDec 4, 2017
  12. Ævar Arnfjörð BjarmasonDec 4, 2017
  13. Junio C HamanoDec 4, 2017
  14. Dan JacquesDec 4, 2017
  15. Makefile: replace perl/Makefile.PL with simple make rulesÆvar Arnfjörð Bjarmason, Dec 10, 2017
  16. Junio C HamanoDec 11, 2017
  17. Randall S. BeckerDec 12, 2017
  18. Ævar Arnfjörð BjarmasonDec 12, 2017
  19. Michael J GruberDec 15, 2017
  20. Todd ZullingerDec 15, 2017
  21. Ævar Arnfjörð BjarmasonDec 15, 2017
  22. Junio C HamanoDec 19, 2017
  23. Makefile: replace perl/Makefile.PL with simple make rulesÆvar Arnfjörð Bjarmason, Dec 19, 2017
  24. Todd ZullingerDec 20, 2017
  25. Makefile: replace perl/Makefile.PL with simple make rulesÆvar Arnfjörð Bjarmason, Dec 20, 2017
  26. Todd ZullingerDec 20, 2017
  27. Makefile: replace perl/Makefile.PL with simple make rulesÆvar Arnfjörð Bjarmason, Dec 20, 2017
  28. Todd ZullingerDec 20, 2017
  29. Alex RiesenDec 21, 2017
  30. Junio C HamanoDec 22, 2017
  31. Ævar Arnfjörð BjarmasonDec 27, 2017
  32. Junio C HamanoDec 28, 2017
  33. Jonathan NiederJan 2, 2018
  34. perl: treat PERLLIB_EXTRA as an extra path again (Re: [PATCH v6] Makefile: replace perl/Makefile.PL with simple make rules)Jonathan Nieder, Jan 2, 2018
  35. Ævar Arnfjörð BjarmasonJan 2, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.