Skip Menu |

This queue is for tickets about the XML-Parser CPAN distribution.

Report information
The Basics
Id: 100642
Status: resolved
Priority: 0/
Queue: XML-Parser

People
Owner: TODDR [...] cpan.org
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in:
  • 2.41
  • 2.42_01
Fixed in: (no value)



Subject: Make LWP a soft dependency
XML::Parser already has code to gracefully handle the case where LWP is not available to resolve external entities. This is a great feature as it is useful when the user of XML::Parser knows that it will parse files that do not contain external entities at all.
But at the same time the XML::Parser distribution has hard ('requires') runtime dependency on LWP in Makefile.PL and so META.yml.

When using packaging tools such as Carton, it would be useful to have the dependencies reduced to what is really required at runtime for the packaged application. LWP is a package that has a big list of recursive dependencies. So this hard 'requires' dependency on LWP gets in the way.

So it would be helpful to soften this dependency and set it as a runtime/recommends.

-- 
Olivier Mengué - http://perlresume.org/DOLMEN - https://gratipay.com/dolmen/
Show quoted text
> So it would be helpful to soften this dependency and set it as a
> runtime/recommends.

The first easy and very helpful step would be to replace the dependency on LWP with a dependency on LWP::UserAgent. This is an important difference now that LWP::UserAgent is in a separate CPAN distribution lighter than the whole LWP with its dependencies.

-- 
Olivier Mengué - http://perlresume.org/DOLMEN - https://gratipay.com/dolmen/
Le 2014-12-01 19:11:54, DOLMEN a écrit :

Show quoted text
> The first easy and very helpful step would be to replace the
> dependency on LWP
> with a dependency on LWP::UserAgent.

Patch available: https://github.com/toddr/XML-Parser/pull/3


-- 
Olivier Mengué - http://perlresume.org/DOLMEN - https://gratipay.com/dolmen/
Merged. Releasing to CPAN now.