[MacPorts] #41680: Non-existent variants do not cause a failure messge

MacPorts noreply at macports.org
Wed Dec 4 05:32:51 PST 2013


#41680: Non-existent variants do not cause a failure messge
---------------------+--------------------------------
 Reporter:  ralph@…  |      Owner:  macports-tickets@…
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  base     |    Version:  2.2.1
 Keywords:           |       Port:
---------------------+--------------------------------
 I tried
 {{{
 sudo port install perl5 +perl5.18
 }}}
 not realising that variant +perl5.18 does not exist. Instead of giving an
 error message and asking to chose a valid variant, macports silently used
 the default variant:
 {{{
 --->  Computing dependencies for perl5
 --->  Fetching archive for perl5
 --->  Attempting to fetch perl5-5.12.4_0+perl5_12.darwin_13.noarch.tbz2
 from http://mse.uk.packages.macports.org/sites/packages.macports.org/perl5
 --->  Attempting to fetch
 perl5-5.12.4_0+perl5_12.darwin_13.noarch.tbz2.rmd160 from
 http://mse.uk.packages.macports.org/sites/packages.macports.org/perl5
 --->  Installing perl5 @5.12.4_0+perl5_12
 --->  Deactivating perl5 @5.12.4_0+perl5_16
 --->  Cleaning perl5
 --->  Activating perl5 @5.12.4_0+perl5_12
 --->  Cleaning perl5
 }}}
 which in this case was certainly unhelpful to say the least, essentially
 downgrading my perl.

 If a variant is missing, macports should stop and give an error.

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


More information about the macports-tickets mailing list