[MacPorts] #47015: Usage of perl variant for a perl application

MacPorts noreply at macports.org
Tue Mar 3 06:17:19 PST 2015


#47015: Usage of perl variant for a perl application
------------------------------+----------------------------------
 Reporter:  Joel.Brogniart@…  |      Owner:  macports-tickets@…
     Type:  defect            |     Status:  new
 Priority:  Normal            |  Milestone:
Component:  ports             |    Version:  2.3.3
 Keywords:  perl              |       Port:  auto-multiple-choice
------------------------------+----------------------------------
 Hi,

 Using informations from <http://trac.macports.org/ticket/46570> I tried to
 modify port x11/auto-multiple-choice to use perl variants. I added the
 lines:

 PortGroup               perl5 1.0
 ...
 perl5.require_variant   yes
 perl5.conflict_variants yes
 perl5.branches          5.16 5.18 5.20
 perl5.create_variants   ${perl5.branches}

 and changed all "port:p5.16" to "port:p${perl5.major}"

 All my tests where done after having "sudo port uninstall installed"
 before .

 If I do
         sudo port install auto-multiple-choice
         auto-multiple-choice

 All works fine, the application is built, installed and works.

 If I do
         sudo port install perl5
         sudo port install auto-multiple-choice
         auto-multiple-choice

 All works fine too, the application is built, installed and works.

 But if I do
         sudo port install perl5 +perl5_20
         sudo port install auto-multiple-choice
         auto-multiple-choice
 The application is built, installed but when launched I get the error:

 Can't locate AMC/Basic.pm in @INC (you may need to install the AMC::Basic
 module) (@INC contains: /opt/local/lib/perl5/site_perl/5.20/darwin-thread-
 multi-2level /opt/local/lib/perl5/site_perl/5.20
 /opt/local/lib/perl5/vendor_perl/5.20/darwin-thread-multi-2level
 /opt/local/lib/perl5/vendor_perl/5.20 /opt/local/lib/perl5/5.20/darwin-
 thread-multi-2level /opt/local/lib/perl5/5.20 .) at
 /opt/local/lib/AMC/perl/AMC-gui.pl line 45.
 BEGIN failed--compilation aborted at /opt/local/lib/AMC/perl/AMC-gui.pl
 line 45.

 I get the same error when I install perl5_18. All auto-multiple-choice
 files stays at the same places, whatever perl variant is installed. The
 unreachable file is in "/opt/local/lib/perl5/vendor_perl/AMC/Basic.pm".
 With the default perl5 install (perl5_16), it seems that @INC contains the
 path "/opt/local/lib/perl5/vendor_perl' but not with perl5_18 and
 perl5_20.

 Are there other informations I should have added for the application to
 work with perl5_18 or perl5_20 variants?

-- 
Ticket URL: <https://trac.macports.org/ticket/47015>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list