Opened 19 years ago

Closed 19 years ago

#4653 closed defect (fixed)

port command not working after selfupdate (invalid command name ui_debug)

Reported by: fulkkari@… Owned by: macports-tickets@…
Priority: Not set Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

After installing the newest version of DarwinPorts (1.011) from tarball and doing "port selfupdate", port exits with the following error (whole error log in the URL provided):

Unable to execute port: invalid command name "darwinports::ui_debug"

DarwinPorts configured with "--with-install-user=dports --with-install-group=dports --with-directory- mode=755".

If you leave selfupdate, DarwinPorts seems to work with "port sync", altough "port version" returns -1 in that case.

Change History (3)

comment:1 Changed 19 years ago by pguyot (Paul Guyot)

Did you also pass --prefix to DP? --with-tclpackage=/? What was the full configuration line?

comment:2 Changed 19 years ago by gad@…

(In reply to comment #0)

After installing the newest version of DarwinPorts (1.011) from tarball and doing "port selfupdate", port exits with the following error (whole error log in the URL provided):

Unable to execute port: invalid command name "darwinports::ui_debug"

I am seeing the same error on a MacOS 10.4 machine. In my case, I'm new to darwinports, so I just downloaded the package file from: http://www.darwinports.org/downloads/DarwinPorts-1.0.dmg

and installed that. I then did a 'sudo port sync' and 'sudo port selfupdate'. I then tried to 'sudo install minicom', and it failed with the same basic error. It happens that I had gone through this same sequence last night on a different machine (although that machine is running 10.3). So, I knew that 'minicom' would want to install both 'kermit' and 'lrzsz'. I tried to install both of those ports, and got the same error. With debug on, I see:

  • - - - [begin]

(6) # sudo port -d install lrzsz DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/comms/lrzsz DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/comms/lrzsz DEBUG: invalid command name "darwinports::ui_debug"

invoked from within

"ui_debug "Requested variant $key is not provided by port $portname.""

(procedure "eval_variants" line 15) invoked from within

"eval_variants variations install"

invoked from within

"$workername eval eval_variants variations $target"

(procedure "dportexec" line 7) invoked from within

"dportexec $workername $target" Unable to execute port: invalid command name "darwinports::ui_debug"

  • - - - [end]

If I add a ui_debug {} clause to the port file, I can change the error message. However, I have no clue what that clause is actually supposed to do, so I have no idea what might sidestep the problem.

comment:3 Changed 19 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

Found out the bug and fixed it.

Note: See TracTickets for help on using tickets.