develooper Front page | perl.perl5.porters | Postings from July 2007

Re: [PATCH] Add add-package.pl to the core (was Re: Why no (XML|DBI|WWW|Template) modules in the core?)

Thread Previous | Thread Next
From:
Craig Berry
Date:
July 2, 2007 17:46
Subject:
Re: [PATCH] Add add-package.pl to the core (was Re: Why no (XML|DBI|WWW|Template) modules in the core?)
Message ID:
c9ab31fc0707021746m2e93d5e9g79063c6862264c02@mail.gmail.com
On 7/2/07, Jos I. Boumans <kane@dwim.org> wrote:

> For your consideration, I've attached a patch to add the 'add-
> package.pl' utility to the
> Porting/ directory to make adding packages easier. You point it at a
> extracted CPAN
> tarball and it will do the right thing, add stuff where needed and
> generate a patch.

Cool.

> There's 3 caveats to mention:
>
>    * It doesn't deal with XS modules yet, that live under ext/
>    * It uses a lot of unix command line tools, so very unix centric

At first blush it looks like the bulk of that could be converted to
File::Path and File::Copy without too much struggle.  I think MJD has
pure-Perl diff program if you wanted to go whole-hog in the
portability direction.

>    * It doesn't patch VMS hints/makefiles properly (as i have no clue
> about them),
>      just warns about the need to do so. I'm sure Craig can help
> there though.

Since this only applies when you are adding a new utility under
utils/, and since that doesn't happen very often, and since the
relevant bits to be updated aren't that amenable to autocoding at the
moment, I think I will leave the warning as is for now.  But thanks
for thinking of me.

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