#17579: With archive mode enabled, any command tries to create the directory if it doesn't exist ---------------------------------+------------------------------------------ Reporter: blb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Low | Milestone: MacPorts base bugs Component: base | Version: 1.8.0 Keywords: archive permissions | Port: ---------------------------------+------------------------------------------ If you enable archive mode ({{{portarchivemode yes}}} in macports.conf), and the packages directory (${prefix}/var/macports/packages) doesn't yet exist, every port command will fail if not run as root, like 'port info': {{{ $ /mp/bin/port info bind9 portarchivepath /mp/var/macports/packages does not exist and could not be created: can't create directory "/mp/var/macports/packages": permission denied while executing "mportinit ui_options global_options global_variations" Error: /mp/bin/port: Failed to initialize MacPorts, portarchivepath /mp/var/macports/packages does not exist and could not be created: can't create directory "/mp/var/macports/packages": permission denied }}} Since this is being done in [browser:trunk/base/src/macports1.0/macports.tcl#L553 mportinit] it will always be hit when port runs; perhaps this should be created when necessary in package1.0/portarchive.tcl? -- Ticket URL: <http://trac.macports.org/ticket/17579> MacPorts <http://www.macports.org/> Ports system for Mac OS