[MacPorts] #67968: muniversal PortGroups don't restore file permissions

MacPorts noreply at macports.org
Tue Aug 15 19:50:30 UTC 2023


#67968: muniversal PortGroups don't restore file permissions
--------------------+--------------------
 Reporter:  RJVB    |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:
--------------------+--------------------
 I just realised that using a `muniversal` PG on port that generates a
 setuid executable breaks that aspect of the port's functionality.

 The ports in question could of course fix this in the `post-destroot` step
 but IMHO it would be cleaner if the permissions were cached before and
 restored after the lipo operation.

 I'd read the permissions from the file corresponding to the current build
 platform but a more complete/pedantic implementation would check if all
 files to be lipo'd had the same permissions.

-- 
Ticket URL: <https://trac.macports.org/ticket/67968>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list