Subject: | Make check for wxWidgets compiled using Alien::wxWidgets optional |
Hi,
the Alien::wxWidgets module's Build.PL file checks whether there is a
wxWidgets installation on the local system that was compiled using
Alien::wxWidgets. The code fragment that does this looks like this:
my $ok = eval {
require Alien::wxWidgets;
[...]
};
It would be useful if that code fragment could be disabled by setting an
environment variable or a command-line option.
CPANPLUS cannot only be used to install modules on the local system but
also to create packages like RPM, DEB and TGZ. The problem is that the
command "./Build install destdir=$DESTDIR" won't copy the wxWidgets
libraries to the package's staging directory if the above eval block
returns true. Consequently the libraries will be missing from the package.
If the eval block is disabled, i.e. if $ok is set to false, everything
works as expected. If the wxWidgets libraries are provided by a separate
RPM or DEB, a dependency on that package can be added. Otherwise, the
libraries will be provided by the newly created package no matter
whether Alien::wxWidgets is installed on the local system or not.
Regards,
Andreas