Opened 6 years ago

Closed 5 years ago

#56606 closed defect (wontfix)

port -D install doesn't work for subports

Reported by: wyuenho (Jimmy Yuen Ho Wong) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.5.1
Keywords: Cc:
Port:

Description

I've clone macports-ports and point port to it with -D (i.e. port -D ~/macports-ports), the install command recognizes the changes on the top level port but not any subports, this makes testing subports difficult.

Also, how come none of the subports functionality is documented?

Change History (8)

comment:1 Changed 6 years ago by jmroot (Joshua Root)

There's no way for the program to know which subport you want, unless you indicate it somehow. Specifying a port name in the command is the usual way this is done, but it only works if the name is in the PortIndex. If you have to work with unindexed ports for some reason, you can append subport=something to the command.

comment:2 Changed 6 years ago by wyuenho (Jimmy Yuen Ho Wong)

Is any of this documented somewhere?

comment:3 Changed 6 years ago by raimue (Rainer Müller)

I do not think there is any documentation on this, besides the generic description of overriding options from the command line. Contributions to the guide are always appreciated!

comment:4 Changed 6 years ago by wyuenho (Jimmy Yuen Ho Wong)

Thanks for the invitation, but I don't think asking a person who doesn't even know about the thing they are supposed to be documenting to document makes any sense...

comment:5 Changed 6 years ago by wyuenho (Jimmy Yuen Ho Wong)

This problem has gotten worse now. It doesn't even work for the main port any more. Now I'm getting an Error: Unable to execute port: Could not open file:... for every port

comment:6 Changed 6 years ago by wyuenho (Jimmy Yuen Ho Wong)

I checked out the dir into ~/Documents and sudo port -D ~/Documents/... doesn't seem to be very happy about it, even when execing under a sudoer account.

comment:7 Changed 5 years ago by wyuenho (Jimmy Yuen Ho Wong)

@raimue @jmroot Is there any movement on this ticket? How is a port maintainer suppose to test their port update and subports now?

Last edited 5 years ago by wyuenho (Jimmy Yuen Ho Wong) (previous) (diff)

comment:8 Changed 5 years ago by wyuenho (Jimmy Yuen Ho Wong)

Resolution: wontfix
Status: newclosed

Looks like the way to do it now is portindex

Note: See TracTickets for help on using tickets.