Skip Menu |

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

Report information
The Basics
Id: 116461
Status: resolved
Priority: 0/
Queue: XML-LibXSLT

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

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



Subject: Makefile.PL shouldn't run "pkg-config libexslt" if LIBS or INC were provided
If LIBS or INC were provided manually on the command line, Makefile.PL shouldn't try to run exslt-config, just like it doesn't run xslt-config. Otherwise, it's impossible to build with LIBS and INC provided manually if "pkg-config libexslt" fails. Even if running "pkg-config libexslt" succeeds, its results shouldn't be used if values for LIBS or INC are provided manually. Example: $ perl Makefile.PL LIBS="-L/my/lib -lxslt -lexslt" INC="-I/my/include" looking for -lxslt... yes looking for -lexslt... yes running pkg-config libexslt... failed using fallback values for LIBS and INC Warning (mostly harmless): No library found for -ldb Generating a Unix-style Makefile Writing Makefile for XML::LibXSLT Writing MYMETA.yml and MYMETA.json libxslt and libexslt were found, but since "pkg-config libexslt" failed, Makefile.PL uses the fallback values which ignore the user's preference and typically won't work. I'd suggest to use the following test from the libxslt section in the libexslt section as well: # if a user defined INC and LIBS on the command line we must not # override them if ( not defined $config{LIBS} and not defined $config{INC} ) {
Hi! This should hopefully be fixed in XML-LibXSLT-1.95 which was just uploaded to CPAN. Please let me know if it works for you so I can close this bug report. On Mon Jul 25 13:36:33 2016, NWELLNHOF wrote: Show quoted text
> If LIBS or INC were provided manually on the command line, Makefile.PL > shouldn't try to run exslt-config, just like it doesn't run xslt- > config. Otherwise, it's impossible to build with LIBS and INC provided > manually if "pkg-config libexslt" fails. Even if running "pkg-config > libexslt" succeeds, its results shouldn't be used if values for LIBS > or INC are provided manually. Example:
On Sat Jul 30 07:14:04 2016, SHLOMIF wrote: Show quoted text
> This should hopefully be fixed in XML-LibXSLT-1.95 which was just > uploaded to CPAN. Please let me know if it works for you so I can > close this bug report.
Yes, 1.95 works for me. Thanks for the quick fix.
On Sat Jul 30 08:16:43 2016, NWELLNHOF wrote: Show quoted text
> On Sat Jul 30 07:14:04 2016, SHLOMIF wrote:
> > This should hopefully be fixed in XML-LibXSLT-1.95 which was just > > uploaded to CPAN. Please let me know if it works for you so I can > > close this bug report.
> > Yes, 1.95 works for me. Thanks for the quick fix.
You're welcome. Thanks for the report. Marking as RESOLVED.