Opened 21 years ago

Closed 20 years ago

Last modified 9 years ago

#714 closed defect (invalid)

Variant disable option doesn't work

Reported by: aqua-dabbler (kogule) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The current port command cannot detect variant disable option unless you specify "--" argument at command line.

$ sudo port install escm -gauche +guile
Usage: /opt/local/bin/port [-vdqof] [action] [-D portdir] [options]
$ sudo port -- install escm -gauche +guile
--->  Fetching escm
--->  Verifying checksum for escm
--->  Extracting escm
--->  Configuring escm
--->  Building escm with target escm doc
--->  Installing escm

The following patch changes the behavior a little (-D option has to be placed before action) but fix this issue and port's argument parser is still simple.

--- port.tcl.orig       Sun Jul 20 12:09:06 2003
+++ port.tcl    Sun Jul 20 12:10:32 2003
@@ -147,6 +147,7 @@

        # action
     } elseif {[regexp {^([A-Za-z0-9/._\-^$\[\[?\(\)\\|\+\*]+)$} $arg match opt] == 1} {
+       set separator 1
        if [info exists action] {
            set portname $opt
        } else {

Change History (2)

comment:1 Changed 20 years ago by aqua-dabbler (kogule)

Resolution: invalid
Status: newclosed

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

Description: modified (diff)
Note: See TracTickets for help on using tickets.