develooper Front page | perl.perl5.porters | Postings from May 2008

Re: helping 5.8.9

Thread Previous | Thread Next
From:
Yitzchak Scott-Thoennes
Date:
May 6, 2008 00:18
Subject:
Re: helping 5.8.9
Message ID:
39413.71.35.173.249.1210058272.squirrel@webmail.efn.org
On Mon, May 5, 2008 12:30 pm, Bram wrote:
>> 3: taking Porting/Maintainers.pl, identifying dual life modules,
>> finding their VERSION, and compare against a clean checkout of the same
>> VERSION from
>> CPAN, to make sure that files that claim to be the same are the same.
>> (This one is definitely incremental - every single one helps, so
>> (say) just
>> saying "I checked Digest::MD5 and it's the same as CPAN is a start, as I
>>  can collate a list)
>
> Would it be useful to turn this into a script?
> (Decided to ask before starting on one)

I also thought about a script, but decided to do some manually to have
a better idea what the script should do.

For the ext/ modules, a straight diff will mostly work, but the lib/
ones tend to have files in different places.  Even ext/ has exceptions
like Module/Pluggable, which has it's t files under perl's t instead
of ext/.  It may work best to find all the filenames in the core
and diff each against the same filename in the CPAN distro, though even
there there're test.pl files on CPAN that become Module/Name.t in the
core.

Other problems: finding the version number, in the case of things like
libnet or podlators, or finding the distribution name in the case of
things like Filter::Util::Call or Cmd/File::Spec.  Some reworking of
Maintainers.pl may be needed.


>
>
>
> What I'm thinking about:
>
>
> a) fetching the latest version from CPAN - compare that with the version
> in ext/. If it's the same - end + report as such.
> If not the same:
> - show the output of diff -u
> - show the output of diff -b -B -u
>
>
> b) Try to figure out what version is in ext/ (based on VERSION) get that
> version from CPAN and compare.
>
> If it's the same - end + report as such.
> If not the same:
> - show the output of diff -u (should be ready for patch)
> - show the output of diff -b -B -u
> - create a patch that increments version numbers in ext/ (using _01,
> _02, ....)
>
>
>
> Ideas? Comments?
>
>
>
> Kind regards,
>
>
> Bram
>
>
>
>
>



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About