Skip Menu |

This queue is for tickets about the ExtUtils-PkgConfig CPAN distribution.

Report information
The Basics
Id: 77880
Status: open
Priority: 0/
Queue: ExtUtils-PkgConfig

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
PLICEASE [...] cpan.org
Cc:
AdminCc:

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



Subject: Wishlist: silent mode / object mode
I've been using ExtUtils::PkgConfig quite a lot in Build.PL scripts to detect optional dependencies. It would be great if it could not print some nasty-sounding errors to STDERR when it fails to find things, because these tend to sound more scary than they really are. On a related note, it is becoming the style of several Alien:: modules to expose an EU::PC-like interface: use Alien::unibilium; my $cflags = Alien::unbilium->cflags; It would be nice if an ExtUtils::PkgConfig object could be constructed that responds to these methods directly as well, supporting a much simplified coding style looking somewhat like: my $pkgconfig = eval { ExtUtils::PkgConfig->new( "unibilium" ) } || eval { require Alien::unibilium; "Alien::unibilium" } or die "OS unsupported - require 'unibilium'"; my $cflags = $pkgconfig->cflags; -- Paul Evans
I also would love to see a silent mode operation for this module. I sometimes use this to find optional deps and the extra noise is distracting.
"Silent mode" is now implemented (#119420).