[MacPorts] #55468: macports destroot.umask not recursively applied
MacPorts
noreply at macports.org
Tue Dec 5 04:46:09 UTC 2017
#55468: macports destroot.umask not recursively applied
---------------------+------------------------
Reporter: tcwan | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.4.2
Resolution: | Keywords: highsierra
Port: |
---------------------+------------------------
Changes (by ryandesign):
* keywords: destroot.umask => highsierra
* port: macports =>
Old description:
> '''''This was working fine in Sierra (10.12), and as far as I can tell,
> the initial release of High Sierra 10.13, but it no longer works after
> apply the High Sierra 10.13.1 root security patch.'''''
>
> I'm trying to build a user port which installs files under
> /opt/local/share/, but the default owner and umask no longer allows the
> install to write to the directories.
>
> Invoking destroot.umask 002 does not solve the problem as it does not
> apply the mask to all subdirectories.
>
> {{{
>
> ll /opt/local/var/macports/build/___DELETED___/rftg/work/destroot/
> total 0
> drwxr-xr-x 7 root wheel 238 5 Dec 10:53 ./
> drwxr-xr-x 8 macports wheel 272 5 Dec 10:53 ../
> drwxr-xr-x 3 root admin 102 5 Dec 10:53 Applications/
> drwxr-xr-x 2 root admin 68 5 Dec 10:53 Developer/
> drwxr-xr-x 2 root admin 68 5 Dec 10:53 Library/
> drwxrwxr-x 3 root wheel 102 5 Dec 10:53 opt/
> drwxr-xr-x 2 root wheel 68 5 Dec 10:53 usr/
>
> ll /opt/local/var/macports/build/___DELETED___/rftg/work/destroot/opt/
> total 0
> drwxrwxr-x 3 root wheel 102 5 Dec 10:53 ./
> drwxr-xr-x 7 root wheel 238 5 Dec 10:53 ../
> drwxr-xr-x 12 root admin 408 5 Dec 10:53 local/
> }}}
>
> I expect that destroot.umask to be recursively applied to all folders
> under /opt.
New description:
'''''This was working fine in Sierra (10.12), and as far as I can tell,
the initial release of High Sierra 10.13, but it no longer works after
apply the High Sierra 10.13.1 root security patch.'''''
I'm trying to build a user port which installs files under
/opt/local/share/, but the default owner and umask no longer allows the
install to write to the directories.
Invoking `destroot.umask 002` does not solve the problem as it does not
apply the mask to all subdirectories.
{{{
ll /opt/local/var/macports/build/___DELETED___/rftg/work/destroot/
total 0
drwxr-xr-x 7 root wheel 238 5 Dec 10:53 ./
drwxr-xr-x 8 macports wheel 272 5 Dec 10:53 ../
drwxr-xr-x 3 root admin 102 5 Dec 10:53 Applications/
drwxr-xr-x 2 root admin 68 5 Dec 10:53 Developer/
drwxr-xr-x 2 root admin 68 5 Dec 10:53 Library/
drwxrwxr-x 3 root wheel 102 5 Dec 10:53 opt/
drwxr-xr-x 2 root wheel 68 5 Dec 10:53 usr/
ll /opt/local/var/macports/build/___DELETED___/rftg/work/destroot/opt/
total 0
drwxrwxr-x 3 root wheel 102 5 Dec 10:53 ./
drwxr-xr-x 7 root wheel 238 5 Dec 10:53 ../
drwxr-xr-x 12 root admin 408 5 Dec 10:53 local/
}}}
I expect that `destroot.umask` to be recursively applied to all folders
under /opt.
--
--
Ticket URL: <https://trac.macports.org/ticket/55468#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list