Opened 19 years ago

Closed 19 years ago

#5426 closed defect (wontfix)

port cli process changed, breaks "port +variant build"

Reported by: opendarwin.org@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

port CLI processing has changed, resulting in "port +variant build" failing as it looks for a target of "+variant". This is with base/ updated at 20051017.10.10 (US/Pacific), cvs up today showed no changes in base/ that looked related to this (i.e. startupitems and portmgr only).

Example: net/ethereal: % port -v -d +adns +ipv6 +pcre build DEBUG: Changing to port directory: . DEBUG: Changing to port directory: . DEBUG: Requested variant powerpc is not provided by port ethereal. DEBUG: Requested variant darwin is not provided by port ethereal. DEBUG: Requested variant macosx is not provided by port ethereal. DEBUG: Executing variant darwin_8 provides darwin_8 DEBUG: Executing variant ipv6 provides ipv6 DEBUG: Executing variant pcre provides pcre Error: unknown target: +adns Error: /opt/DP/bin/port: Status 1 encountered during processing. %

Change History (4)

comment:1 Changed 19 years ago by jberry@…

Hi Eric,

You're right, it's changed. In that the command line processing has been entirely re-written. So it may not work in exactly the way it worked previously. But I believe it works as it's been documented and intended.

Your command: port -v -d +adns +ipv6 +pcre build

Should be: port -v -d build +adns +ipv6 +pcre

Basically the action needs to come before the portspec (portname, options, and variants).

comment:2 Changed 19 years ago by opendarwin.org@…

Ya, got the workaround figured out. Its rather annoying though, if one wants to put the action at the end of the line to make it easy to do "port -v -d +variants build" and then "sudo port -v -d +variants install".

comment:3 Changed 19 years ago by jberry@…

Sorry about that. But it's not a workaround...it's the one true way ;) I guess we trade off the previous very lax parsing of the command line with the new ability to specify multiple ports to a given command, pseudo ports, etc. In order to do those things we have to have a tighter syntax.

comment:4 Changed 19 years ago by toby@…

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.