[101504] trunk/base/src/port1.0/portextract.tcl
Ryan Schmidt
ryandesign at macports.org
Sun Jan 13 15:36:32 PST 2013
On Jan 11, 2013, at 22:19, blair at macports.org wrote:
> Revision: 101504
> https://trac.macports.org/changeset/101504
> Author: blair at macports.org
> 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.tcl
Thanks! Here is the ticket for this issue:
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.
More information about the macports-dev
mailing list