Opened 18 years ago

Closed 17 years ago

#11176 closed defect (fixed)

"Variants" action broken

Reported by: scott_karana@… Owned by: macports-tickets@…
Priority: Low Milestone:
Component: base Version: 1.3.2
Keywords: Cc: markd@…
Port:

Description

The variants action doesn't work as it should:

$ port variants ocaml perl
ocaml has the variants:
        labltk
No port asdasd found.
asdasd has the variants:
        labltk

You'd expect that asdasd, which is not a real port, wouldn't show labltk as a variant. Self explanatory.

Change History (5)

comment:1 Changed 18 years ago by ryandesign (Ryan Carsten Schmidt)

Version: 1.3.11.3.2

Confirmed this incorrect behavior in 1.3.2.

comment:2 Changed 18 years ago by ehainry@…

There is no perl port in macports. With your command, I get perl instead of asdasd (which is not too surprising). However, the bug is real:

% port variants 4th
4th has no variants
% port variants ocaml 4th
ocaml has the variants:
        labltk
4th has the variants:
        labltk

I do not think variants (as deps) is supposed to be used with more than one portname.

comment:3 Changed 18 years ago by macports@…

Why not? It just has two bugs:

  1. The variant list isn't reset for invariant ports.
  2. Nonexistent ports are also treated as invariant.

comment:4 Changed 18 years ago by gwhitney@…

This appears to be fixed already (as of 1.4.3, anyway):

$ port variants ocaml perl
ocaml has the variants:
        universal
        labltk
No port perl found.
perl has no variants
$ port variants ocaml expat
ocaml has the variants:
        universal
        labltk
expat has the variants:
        universal
        no_static

I recommend closing this ticket as "FIXED".

comment:5 Changed 17 years ago by markd@…

Cc: markd@… added
Resolution: fixed
Status: newclosed

Confirmed this is fixed.

Note: See TracTickets for help on using tickets.