On 23 Jul 2014, at 15:04, Ryan Schmidt <[email protected]> wrote:

> 
> On Jul 23, 2014, at 7:58 AM, Andreas Kusalananda Kähäri wrote:
> 
>> I’m using perltidy from p5-perl-tidy (depends on p5.16-perl-tidy), but when 
>> I decided to run a “port upgrade installed” I noticed that it was “upgraded” 
>> to p5.12-perl-tidy (which also pulled in the previously uninstalled perl5.12 
>> port).
>> 
>> This confuses me, especially since the p5-perl-tidy port explicitly says 
>> "Replaced by: p5.16-perl-tidy”.     
> 
> Confuses me too. There's nothing special about the p5-perl-tidy port to 
> account for this, and the perl5 1.0 portgroup hasn't been changed since 
> January. "sudo port selfupdate" and try again?
> 
> Also, uninstall p5-perl-tidy (and any other p5-* stub port you may have 
> installed) and just install the p5.16-* version (or whichever perl version 
> you want).

Did this, which seems to be the right solution. I was hoping that by installing 
the versionless p5- ports I would always get the latest version of the port 
when upgrading. I’ll scrap that idea.

Also thanks for the “port installed” tip. I’m a new MacPorts user and haven’t 
quite found my way around the ins and outs of the port command.

Cheers!

> 
> 
>> $ sudo port -y upgrade p5-perl-tidy
>> --->  p5-perl-tidy is replaced by p5.12-perl-tidy
>> --->  Computing dependencies for perl5.12
>> For perl5.12: skipping org.macports.main (dry run)
>> --->  Computing dependencies for p5.12-perl-tidy
>> --->  Dependencies to be installed: perl5.12
>> For perl5.12: skipping org.macports.main (dry run)
>> For p5.12-perl-tidy: skipping org.macports.main (dry run)
>> Skipping deactivate p5-perl-tidy @20101217_3 (dry run)
>> Skipping activate p5.12-perl-tidy @20101217_3 (dry run)
>> 
>> $ port info p5-perl-tidy
>> p5-perl-tidy @20101217_3 (perl)
>> Replaced by:          p5.16-perl-tidy
>> Sub-ports:            p5.8-perl-tidy, p5.10-perl-tidy, p5.12-perl-tidy, 
>> p5.14-perl-tidy, p5.16-perl-tidy
>> 
>> Description:          Perltidy reads a perl script and writes an indented, 
>> reformatted script. Perltidy can produce
>>                     output on either of two modes, depending on the 
>> existence of an -html flag. Without this
>>                     flag, the output is passed through a formatter.
>> Homepage:             http://search.cpan.org/dist/Perl-Tidy/
>> 
>> Library Dependencies: p5.16-perl-tidy
>> Platforms:            darwin
>> License:              GPL-2+
>> Maintainers:          [email protected]
>> 
>> $ port list 'p5*perl-tidy*' and active
>> p5-perl-tidy                   @20101217       perl/p5-perl-tidy
>> p5.16-perl-tidy                @20101217       perl/p5-perl-tidy
>> 
>> $ port list inactive
>> # no output
> 
> Note that the command you want is "port installed", not "port list", which 
> does not provide the same information; see 
> https://trac.macports.org/wiki/FAQ#portlist
> 
> 

_______________________________________________
macports-users mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to