Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#10936 closed defect (fixed)

port deps / port variants port1 port2 ... does not clear result between ports

Reported by: ecronin (Eric Cronin) Owned by: darwinports-bugs@…
Priority: Normal Milestone: MacPorts 1.4
Component: base Version: 1.3.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port:

Description

When running port variants with multiple ports specified causes incorrect output for ports with no variants when following ports with variants:

[mrteeny] ecronin% port variants boxbackup; port variants duckytool boxbackup has the variants:

server darwin

duckytool has no variants

[mrteeny] ecronin% port variants boxbackup duckytool boxbackup has the variants:

server darwin

duckytool has the variants:

server darwin

either ports with no variants should explicitly clear the variable in question, or variants should clear it itself between iterations.

Change History (5)

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

Summary: port variants port1 port2 ... does not clear result between portsport deps / port variants port1 port2 ... does not clear result between ports

On 2006-11-26 a variant was added to the duckytool port, so the above example no longer works. However using cogito instead of duckytool still shows the problem:

Output correct:

$ port variants boxbackup; port variants cogito
boxbackup has the variants:
        server
        darwin
cogito has no variants

Output incorrect:

$ port variants boxbackup cogito
boxbackup has the variants:
        server
        darwin
cogito has the variants:
        server
        darwin

Note also that "port deps" suffers from the same problem as "port variants":

Output correct:

$ port deps cvsgraph; port deps cvslock
cvsgraph has library dependencies on:
        gd
cvslock has no dependencies

Output incorrect:

$ port deps cvsgraph cvslock
cvsgraph has library dependencies on:
        gd
cvslock has library dependencies on:
        gd

http://lists.macosforge.org/pipermail/macports-dev/2007-January/000412.html

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

Cc: ryandesign@… added

comment:3 Changed 18 years ago by pipping@…

Resolution: fixed
Status: newclosed

fixed in 1.4rc2 (or earlier)

comment:4 Changed 18 years ago by jmpalacios (Juan Manuel Palacios)

Milestone: MacPorts 1.4

comment:5 Changed 17 years ago by nox@…

Priority: ExpectedNormal
Note: See TracTickets for help on using tickets.