git-stitch-repo & troubles using cpan2port (missing path in @INC)

Mojca Miklavec mojca.miklavec.lists at gmail.com
Wed May 9 08:03:52 PDT 2012


Hello,

I wanted to use git-stitch-repo
(https://metacpan.org/module/git-stitch-repo,
http://stackoverflow.com/questions/277029/combining-multiple-git-repositories),
but I realized that it is just a CPAN module that is currently not in
MacPorts yet. It has been a long time since I last used CPAN and it
seemed that having a tiny port would be a more appropriate way to
install the module.

Following the instructions on
    https://trac.macports.org/wiki/howto/cpan2port
I fetched the cpan2port script, realized that I had a few dependencies
missing and installed them, but now the script still fails with

> ./cpan2port -t Git::FastExport::Stitch
Can't locate List/MoreUtils.pm in @INC (@INC contains:
/opt/local/lib/perl5/site_perl/5.12.4/darwin-thread-multi-2level
/opt/local/lib/perl5/site_perl/5.12.4
/opt/local/lib/perl5/vendor_perl/5.12.4/darwin-thread-multi-2level
/opt/local/lib/perl5/vendor_perl/5.12.4
/opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level
/opt/local/lib/perl5/5.12.4 /opt/local/lib/perl5/site_perl
/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-thread-multi-2level
/opt/local/lib/perl5/vendor_perl/5.12.3
/opt/local/lib/perl5/vendor_perl) at ./cpan2port line 68.
BEGIN failed--compilation aborted at ./cpan2port line 68.

I did install p5-list-moreutils, but:

> port contents p5.12-list-moreutils
Port p5.12-list-moreutils contains:
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/List/MoreUtils.pm
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/List/MoreUtils/.packlist
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/List/MoreUtils/MoreUtils.bs
  /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/List/MoreUtils/MoreUtils.bundle
  /opt/local/share/man/man3/List::MoreUtils.3pm.gz

The INC only contains
    /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-thread-multi-2level
but the necessary file is installed in
    /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level

What am I missing? (I will probably manage to include the right path,
but it seems as if some port is not initializing all the necessary
variables in a proper way or I might have screwed up in some way.)

Thank you,
    Mojca


More information about the macports-users mailing list