[MacPorts] #20496: base - 1.8 - permissions are set to root during install phase despite destroot permissions
#20496: base - 1.8 - permissions are set to root during install phase despite destroot permissions ------------------------------------+--------------------------------------- Reporter: jameskyle@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: ------------------------------------+--------------------------------------- This behavior only appears in 1.8, it works as expected in 1.7.1. It appears the install phase is changing file and directory ownership from that specified and assigned in the destroot. For example: {{{sudo port destroot backuppc ls -ld work/destroot/${destroot}${prefix}/var/backups drwxrwx--- 7 backuppc backuppc 272 Jul 30 17:08 work/destroot/${destroot}${prefix}/var/backups And after install: ls -ld ${prefix}/var/backups drwxrwx--- 7 root backuppc 272 Jul 30 17:09 ${prefix}/var/backups }}} -- Ticket URL: <http://trac.macports.org/ticket/20496> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20496: permissions are set to root during install phase despite destroot permissions ------------------------------------+--------------------------------------- Reporter: jameskyle@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.8.0 Keywords: | Port: ------------------------------------+--------------------------------------- Changes (by jmr@…): * component: ports => base * milestone: => MacPorts 1.8.0 -- Ticket URL: <http://trac.macports.org/ticket/20496#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20496: permissions are set to root during install phase despite destroot permissions ------------------------------------+--------------------------------------- Reporter: jameskyle@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.8.0 Keywords: | Port: ------------------------------------+--------------------------------------- Changes (by jmr@…): * cc: jmr@… (added) Comment: May be helped by r54706 (was a litle chown-happy before). -- Ticket URL: <http://trac.macports.org/ticket/20496#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20496: permissions are set to root during install phase despite destroot permissions ------------------------------------+--------------------------------------- Reporter: jameskyle@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.8.0 Keywords: | Port: ------------------------------------+--------------------------------------- Old description:
This behavior only appears in 1.8, it works as expected in 1.7.1. It appears the install phase is changing file and directory ownership from that specified and assigned in the destroot.
For example:
{{{sudo port destroot backuppc ls -ld work/destroot/${destroot}${prefix}/var/backups drwxrwx--- 7 backuppc backuppc 272 Jul 30 17:08 work/destroot/${destroot}${prefix}/var/backups
And after install:
ls -ld ${prefix}/var/backups drwxrwx--- 7 root backuppc 272 Jul 30 17:09 ${prefix}/var/backups }}}
New description: This behavior only appears in 1.8, it works as expected in 1.7.1. It appears the install phase is changing file and directory ownership from that specified and assigned in the destroot. For example: {{{ sudo port destroot backuppc ls -ld work/destroot/${destroot}${prefix}/var/backups drwxrwx--- 7 backuppc backuppc 272 Jul 30 17:08 work/destroot/${destroot}${prefix}/var/backups And after install: ls -ld ${prefix}/var/backups drwxrwx--- 7 root backuppc 272 Jul 30 17:09 ${prefix}/var/backups }}} -- Comment(by jameskyle@…): updated to trunk. it's better, the sub directories are getting proper permissions. But the top level one I create is still root:admin after install phasse. {{{ ls -ld ${destroot}${prefix}/var/wwwbackup drwxrwx--- 6 backuppc backuppc 204 Aug 3 11:00 ${destroot}${prefix}/var/wwwbackup % ls -ld ../../../mports/var/wwwbackup drwxr-xr-x 6 root admin 204 Aug 3 11:07 ../../../mports/var/wwwbackup }}} -- Ticket URL: <http://trac.macports.org/ticket/20496#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20496: permissions are set to root during install phase despite destroot permissions ------------------------------------+--------------------------------------- Reporter: jameskyle@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.8.0 Keywords: | Port: ------------------------------------+--------------------------------------- Comment(by jmr@…): I can't reproduce on latest trunk, with a simple test port that creates nested directories in ${prefix}/var owned by me. Are you sure the top level dir wasn't already present? -- Ticket URL: <http://trac.macports.org/ticket/20496#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20496: permissions are set to root during install phase despite destroot permissions -------------------------------------+-------------------------------------- Reporter: jameskyle@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.8.0 Resolution: fixed | Keywords: Port: | -------------------------------------+-------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: It's been a fortnight; assuming the aforementioned revision fixed this. -- Ticket URL: <http://trac.macports.org/ticket/20496#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts