[MacPorts] #30332: MacPorts tails to open a portfile due to denied permissions

MacPorts noreply at macports.org
Sat Jul 23 16:14:22 PDT 2011


#30332: MacPorts tails to open a portfile due to denied permissions
-----------------------------+----------------------------------------------
 Reporter:  mk@…             |       Owner:  macports-mgr@…                   
     Type:  defect           |      Status:  new                              
 Priority:  Normal           |   Milestone:                                   
Component:  ports            |     Version:  2.0.0                            
 Keywords:                   |        Port:  port                             
-----------------------------+----------------------------------------------
 I recently upgraded to MacPorts 2.0.0.

 It looks like I have found a MacPorts permission problem now.

 Here is an example of a usual workflow when I work with a local port tree.

 * Right at the beginning one sees that the install of kdepimlibs4 fails.

 * A look at the log file reveals that MacPorts changes gid and uid to 505
 and 511 respectively being the macports user.

 * dscl shows that marko has uid 502

 * ls -l shows that the Portfile should be readable to anyone, BUT IT ISN'T
 OBVIOUSLY. :-(

 {{{
 [ MP-devel ] :kdepimlibs4 marko$ sudo port install
 Error: Unable to execute port: could not read
 "/Users/marko/WC/MacPorts/ports/kde/kdepimlibs4/Portfile": permission
 denied
 To report a bug, see <http://guide.macports.org/#project.tickets>
 [ MP-devel ] :kdepimlibs4 marko$
 [ MP-devel ] :kdepimlibs4 marko$
 [ MP-devel ] :kdepimlibs4 marko$
 [ MP-devel ] :kdepimlibs4 marko$ tail /opt/macports-
 test/var/macports/logs/_Users_marko_WC_MacPorts_ports_kde_kdepimlibs4/kdepimlibs4/main.log
 :debug:main Found Dependency: receipt exists for openldap
 :debug:main Searching for dependency: gpgme
 :debug:main Found Dependency: receipt exists for gpgme
 :msg:main
 :debug:main Executing org.macports.main (kdepimlibs4)
 :debug:main changing euid/egid - current euid: 0 - current egid: 0
 :debug:main egid changed to: 505
 :debug:main euid changed to: 511
 :info:main Warning: the following items did not execute (for kdepimlibs4):
 org.macports.activate org.macports.archivefetch org.macports.fetch
 org.macports.checksum org.macports.extract org.macports.patch
 org.macports.configure org.macports.build org.macports.destroot
 org.macports.install
 :notice:main Log for kdepimlibs4 is at: /opt/macports-
 test/var/macports/logs/_Users_marko_WC_MacPorts_ports_kde_kdepimlibs4/kdepimlibs4/main.log
 [ MP-devel ] :kdepimlibs4 marko$
 [ MP-devel ] :kdepimlibs4 marko$
 [ MP-devel ] :kdepimlibs4 marko$
 [ MP-devel ] :kdepimlibs4 marko$ dscl localhost -read
 /Local/Default/Users/marko | tailNFSHomeDirectory: /Users/marko
 Password: ********
 Picture:
  /Library/User Pictures/Nature/Cactus.tif
 PrimaryGroupID: 20
 RealName: Marko
 RecordName: marko
 RecordType: dsRecTypeStandard:Users
 UniqueID: 502
 UserShell: /bin/bash
 [ MP-devel ] :kdepimlibs4 marko$
 [ MP-devel ] :kdepimlibs4 marko$
 [ MP-devel ] :kdepimlibs4 marko$
 [ MP-devel ] :kdepimlibs4 marko$ ls  -l
 total 24
 -rw-r--r--  1 marko  staff  1220 Jul 18 19:31 Portfile
 -rw-r--r--  1 marko  staff  1220 Jul 18 17:26 Portfile.my
 lrwxr-xr-x  1 root   staff   101 Jul 24 01:01 work -> /opt/macports-
 test/var/macports/build/_Users_marko_WC_MacPorts_ports_kde_kdepimlibs4/kdepimlibs4/work
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/30332>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list