Opened 6 years ago

Last modified 20 months ago

#55468 closed defect

macports destroot.umask not recursively applied — at Version 1

Reported by: tcwan (TC Wan) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.4.2
Keywords: highsierra Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Change History (3)

Changed 6 years ago by tcwan (TC Wan)

Attachment: rftg-main.log.gz added

Build Log where destroot fails when trying to run install -d with subdirectories under /opt/local/share

Changed 6 years ago by tcwan (TC Wan)

Attachment: Portfile added

Portfile for rftg

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: highsierra added; destroot.umask removed
Port: macports removed
Note: See TracTickets for help on using tickets.