On 01/13/2013 03:36 PM, Ryan Schmidt wrote:
On Jan 11, 2013, at 22:19, [email protected] wrote:Revision: 101504 https://trac.macports.org/changeset/101504 Author: [email protected] Date: 2013-01-11 20:19:14 -0800 (Fri, 11 Jan 2013) Log Message: ----------- portextract::extract_main: use_dmg fails to mount DMG is user isn't root. The MacPorts user may not be able to mount a DMG with hdiutil; it will fail with an "hdiutil: attach failed - Device not configured" error. So only if a DMG is being used, elevate back to root to do the mount and unmount the DMG. Modified Paths: -------------- trunk/base/src/port1.0/portextract.tclThanks! Here is the ticket for this issue:
You're welcome!
https://trac.macports.org/ticket/21117 I think the problem still remains when you have a non-root MacPorts installation; that's the configuration I was using when I initially filed the ticket, before the privilege-dropping code was added to MacPorts and made it an issue for everyone. The way I was thinking of fixing it was to exclude those files from copying that we don't need anyway and I think that still might be a better way, but I didn't really know how to do that which is why I never did anything about the ticket.
If you're doing this as non-root, then presumably you have permissions yourself to mount a DMG. Are you saying that even if you can mount it, there's files in there you cannot see?
Blair _______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macports-dev
