Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 115072
Status: open
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: TRIZEN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Makefile.PL is generated in random order after each "Build dist"
With M::B version 0.4218, the Makefile.PL gets generated each time in a random order, which is quite annoying for those that work under git, as after each "Build dist" (and even "Build disttest"), new changes appear in `git diff`. This only happens in the latest versions of M::B. A simple sort of the keys will fix the issue. Thanks!
Module::Build::Compat is horrible. Its time in the sun has come and gone. If your distribution doesn't rely on Module::Build-specific features and is therefore capable of producing an ExtUtils::MakeMaker-compatible build, then you're better off ditching MB altogether and just using EUMM. -a toolchainer
Ether: a response that actually addresses the reported bug would have been more appropriate. Trizen: I'm not seeing the behavior you reported, also using 0.4218. Nothing in Module::Build::Compat has changed in a really long time, is it possible something else in your toolchain has changed that would affect this? The most recent change that I can see affecting this is 6 years ago in version 0.36_18, when David G. changed the version of Tie::IxHash we depend on.
Subject: Re: [rt.cpan.org #115072] Makefile.PL is generated in random order after each "Build dist"
Date: Sun, 5 Jun 2016 16:28:57 +0200
To: bug-Module-Build [...] rt.cpan.org
From: Leon Timmermans <fawaka [...] gmail.com>
On Sat, Jun 4, 2016 at 11:43 PM, Trizen Daniel via RT < bug-Module-Build@rt.cpan.org> wrote: Show quoted text
> With M::B version 0.4218, the Makefile.PL gets generated each time in a > random order, which is quite annoying for those that work under git, as > after each "Build dist" (and even "Build disttest"), new changes appear in > `git diff`. > > This only happens in the latest versions of M::B. A simple sort of the > keys will fix the issue. >
Perl 5.18 introduces hash randomization, I would guess you're observing that. The patch in #102862 may fix your issue. Leon