Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#54086 closed defect (fixed)

mpbb: unrecognized option `--archive-site' Try `./mpbb/mpbb help' for more information.

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: admin@…
Priority: Normal Milestone:
Component: server/hosting Version:
Keywords: Cc: jmroot (Joshua Root)
Port:

Description

I updated the buildmaster to the latest version of master.cfg. Builds now don't run because listing subports fails because:

./mpbb/mpbb: unrecognized option `--archive-site'
Try `./mpbb/mpbb help' for more information.

It looks like mpbb should understand this.

Change History (9)

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

Buildbot is running e.g.:

./mpbb/mpbb --prefix /opt/local --archive-site https://packages.macports.org list-subports ncarg

But mpbb (specifically parseopt I guess) only understands it if we run --archive-site=https://packages.macports.org.

Using the = sign makes more sense to me, but all options should use the same syntax...

comment:2 in reply to:  1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign:

But mpbb (specifically parseopt I guess) only understands it if we run --archive-site=https://packages.macports.org.

On second thought, that's not it; parseopt uses getopt(1) which claims to support either form.

I think the problem is that the parseopt call was added to print-subports but needs to be added instead to list-subports. Not sure the best way to then pass the result to print-subports where it's needed.

comment:3 Changed 7 years ago by neverpanic (Clemens Lang)

Here's my ad-hoc analysis from IRC, hoping that it helps. Don't have time to make the change right now, though.

comment:4 Changed 7 years ago by neverpanic (Clemens Lang)

Cc: jmroot added

Cc jmroot, who implemented this.

comment:5 in reply to:  3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Yes those were the conclusions I reached as well.

comment:6 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

I reverted to the previous master.cfg for now and re-ran the failed builds.

comment:7 Changed 7 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

comment:8 in reply to:  7 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to jmroot:

[62daca49/macports-infrastructure]

Is that the only change we need? What about:

Replying to neverpanic:

comment:9 Changed 7 years ago by jmroot (Joshua Root)

Note: See TracTickets for help on using tickets.