[MacPorts] #50262: octave port group: Remove orphaned paths
#50262: octave port group: Remove orphaned paths ----------------------------+-------------------------------- Reporter: mschamschula@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: octave ----------------------------+-------------------------------- When upgrading/deactivating/removing octave packages octave paths for the removed paths remain behind. Octave warns the user of these. For example: {{{ warning: load_path: /opt/local/lib/octave/packages/interval-1.2.0/x86_64 -apple-darwin13.4.0-api-v50+: No such file or directory warning: load_path: /opt/local/share/octave/packages/interval-1.2.0: No such file or directory warning: load_path: /opt/local/lib/octave/packages/io-2.2.11/x86_64-apple- darwin13.4.0-api-v50+: No such file or directory warning: load_path: /opt/local/share/octave/packages/io-2.2.11: No such file or directory warning: load_path: /opt/local/lib/octave/packages/tsa-4.3.2/x86_64-apple- darwin13.4.0-api-v50+: No such file or directory warning: load_path: /opt/local/share/octave/packages/tsa-4.3.2: No such file or directory }}} Use the octave {{{rmpath}}} command to remove these. -- Ticket URL: <https://trac.macports.org/ticket/50262> MacPorts <https://www.macports.org/> Ports system for OS X
#50262: octave port group: Remove orphaned paths -----------------------------+-------------------------------- Reporter: mschamschula@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: octave | -----------------------------+-------------------------------- Comment (by michaelld@…): where and how do I use this command in the PortGroup? -- Ticket URL: <https://trac.macports.org/ticket/50262#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50262: octave port group: Remove orphaned paths -----------------------------+-------------------------------- Reporter: mschamschula@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: octave | -----------------------------+-------------------------------- Comment (by mschamschula@…): I was hoping you knew… The octave port group is rather nebulous to me - starting with the fact the the build happens in the configure stage, and so on. That being said, this needs to happen in the post-deactivate stage. The main trick will be to figure out which directories need to be deleted and then sending the appropriate {{{system}}} call, i.e. something like {{{ system "${prefix}/bin/octave-cli -q -f --eval 'rmpath(\"/path/to/directory\")'" }}} My escapes may not be correct, i.e. untested, but you get the idea. -- Ticket URL: <https://trac.macports.org/ticket/50262#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50262: octave port group: Remove orphaned paths -----------------------------+------------------------ Reporter: mschamschula@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: octave | -----------------------------+------------------------ Changes (by mcalhoun@…): * owner: macports-tickets@… => mcalhoun@… * cc: michaelld@… (removed) * status: new => assigned -- Ticket URL: <https://trac.macports.org/ticket/50262#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts