Skip Menu |

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 21621
Status: rejected
Priority: 0/
Queue: libwww-perl

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

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



Subject: Better defaults for Makefile.PL
I think it should be possible to change the default for the @request_aliases (GET, POST, HEAD) depending if the aliases already exist in $Config{installscript}. This would prevent the following scenario: - Sysadmin A installed GET/HEAD/POST aliases with a former installation of libwww (I think it was default some day?) - Sysadmin B does not know about the aliases when he installs the current version of libwww, and chooses to not install it - User wants to use the aliases, but gets outdated versions of them Regards, Slaven
Seems like a good idea, but it would need to be careful to not default to overwriting files that were not installed by a previous version of LWP. For instance if you install into a perl with /usr/bin as prefix on a case insensitive system (like OS X) we need to be careful not to overwrite the standard Unix commmand /usr/bin/head. Patches welcome.
Subject: Re: [rt.cpan.org #21621] Better defaults for Makefile.PL
Date: 11 Apr 2008 21:21:22 +0200
To: bug-libwww-perl [...] rt.cpan.org
From: Slaven Rezic <slaven [...] rezic.de>
"Gisle_Aas via RT" <bug-libwww-perl@rt.cpan.org> writes: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=21621 > > > Seems like a good idea, but it would need to be careful to not default > to overwriting files that were not installed by a previous version of > LWP. For instance if you install into a perl with /usr/bin as prefix on > a case insensitive system (like OS X) we need to be careful not to > overwrite the standard Unix commmand /usr/bin/head. >
Ouch ... this is true. Maybe it's sufficient to grep for some strings like "require LWP" and "Gisle Aas" in "$Config{installscript}/HEAD" etc. and only if successful change the default. And to be on the safe side, add a small test which does the same string search to prevent problems if you replace "require LWP" with "use LWP". Regards, Slaven -- Slaven Rezic - slaven <at> rezic <dot> de tkrevdiff - graphical display of diffs between revisions (RCS, CVS or SVN) http://ptktools.sourceforge.net/#tkrevdiff
It's quite complicated to get right right in all cases, so I don't really think it's worth it. Consider for instance how you would have to deal with 'perl Makefile.PL INSTALLDIRS=vendor' and similar. Also for 5.814 I've reduced the Makefile.PL to a minimum, getting rid of all the crappy interactive prompts and I don't really want to complicate it again.