[MacPorts] #17076: Being in an soon-to-be-deactivated directory causes port to error
#17076: Being in an soon-to-be-deactivated directory causes port to error ------------------------------+--------------------------------------------- Reporter: blb@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Low | Milestone: MacPorts base bugs Component: base | Version: 1.7.0 Keywords: cwd | Port: ------------------------------+--------------------------------------------- This is an extremely esoteric bug, but for tracking purposes (while sitting in /opt/local/lib/erlang, which is exclusively from the erlang port): {{{ $ sudo port deactivate erlang Password: ---> Deactivating erlang cd couldn't change working directory to "/opt/local/lib/erlang": no such file or directory while executing "cd $savedir" (procedure "foreachport" line 17) invoked from within "foreachport $portlist { if { [catch {portimage::deactivate $portname [composite_version $portversion [array get variations]] [array get option..." (procedure "action_deactivate" line 6) invoked from within "$action_proc $action $portlist [array get global_options]" (procedure "process_cmd" line 86) invoked from within "process_cmd $remaining_args" invoked from within "if { [llength $remaining_args] > 0 } { # If there are remaining arguments, process those as a command # Exit immediately, by default, unless..." (file "/opt/local/bin/port" line 3225) }}} -- Ticket URL: <http://trac.macports.org/ticket/17076> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17076: Being in an soon-to-be-deactivated directory causes port to error -------------------------------+-------------------------------------------- Reporter: blb@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Low | Milestone: MacPorts base bugs Component: base | Version: 1.7.0 Resolution: | Keywords: cwd Port: | -------------------------------+-------------------------------------------- Changes (by ryandesign@macports.org): * cc: ryandesign@macports.org (added) Comment: It's not so esoteric IMHO. I often find myself in a port's work directory when I try to install it again, which deletes the work directory, so when the port command is done, the above error occurs. -- Ticket URL: <http://trac.macports.org/ticket/17076#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17076: Being in a soon-to-be-deactivated directory causes port to error ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Low | Milestone: MacPorts Future Component: base | Version: 1.7.0 Keywords: cwd | Port: ------------------------------+--------------------------------------------- -- Ticket URL: <http://trac.macports.org/ticket/17076#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17076: Being in a soon-to-be-deactivated directory causes port to error ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Low | Milestone: MacPorts Future Component: base | Version: 1.7.0 Keywords: cwd | Port: ------------------------------+--------------------------------------------- Comment(by jmr@…): I think this may have been fixed with the gsoc08-privileges merge? -- Ticket URL: <http://trac.macports.org/ticket/17076#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17076: Being in a soon-to-be-deactivated directory causes port to error -------------------------------+-------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Low | Milestone: MacPorts Future Component: base | Version: 1.7.0 Resolution: fixed | Keywords: cwd Port: | -------------------------------+-------------------------------------------- Changes (by blb@…): * status: new => closed * resolution: => fixed Comment: It no longer errors out, but does leave you in that now-removed directory. Probably not worth it trying to detect that case and to cd someplace else, so I call it fixed. -- Ticket URL: <http://trac.macports.org/ticket/17076#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17076: Being in a soon-to-be-deactivated directory causes port to error -------------------------------+-------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Low | Milestone: MacPorts 1.8.0 Component: base | Version: 1.7.0 Resolution: fixed | Keywords: cwd Port: | -------------------------------+-------------------------------------------- Changes (by jmr@…): * milestone: MacPorts Future => MacPorts 1.8.0 -- Ticket URL: <http://trac.macports.org/ticket/17076#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts