Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Load modules for pkgconfig blessed classes

Currently, pkgconfig objects (as stored in Alien::MyModule::ConfigData)
were properly pulling in their serialized selves and blessing
themselves into their proper ::PkgConfig classes. However, there
was no guarantee that the Perl module that implemented that class
was present. This change adds a check that runs through all
PkgConfig objects and loads the modules by the same name as their

fixes #2
  • Loading branch information...
commit e6c9d9d27a0f761e6de6419c44738937b05a6189 1 parent 6401cc8
@run4flat run4flat authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Alien/
6 lib/Alien/
@@ -96,6 +96,12 @@ sub pkgconfig {
croak "No Alien::Base::PkgConfig objects are stored!"
unless keys %all;
+ # Run through all pkgconfig objects and ensure that their modules are loaded:
+ for my $pkg_obj (values %all) {
+ my $perl_module_name = blessed $pkg_obj;
+ eval "require $perl_module_name";
+ }
return @all{@_} if @_;
Please sign in to comment.
Something went wrong with that request. Please try again.