[MacPorts] #19863: mmencode hardcodes root privilages

MacPorts noreply at macports.org
Thu Jun 4 08:06:11 PDT 2009


#19863: mmencode hardcodes root privilages
---------------------------------------+------------------------------------
 Reporter:  marcin.zalewski@…          |       Owner:  macports-tickets@…                   
     Type:  defect                     |      Status:  new                                  
 Priority:  Normal                     |   Milestone:                                       
Component:  ports                      |     Version:  1.7.1                                
 Keywords:                             |        Port:  mmencode                             
---------------------------------------+------------------------------------
 I am trying to install mmencode in my local (non-root) port tree, but the
 need for root privileges:

 {{{
 destroot        { system "install -o root -m 755 -d
 ${destroot}${prefix}/bin"
 37                        system "install -o root -m 755
 ${worksrcpath}/mmencode \
 38                          ${destroot}${prefix}/bin"
 39                        system "install -o root -m 755 -d \
 40                          ${destroot}${prefix}/share/man/man1"
 41                        system "install -o root -m 644 \
 42                          ${worksrcpath}/../man/mmencode.1 \
 43                          ${destroot}${prefix}/share/man/man1" }
 }}}

 Note the "-o root" sprinkled around. I am not sure what would be the
 MacPorts way to handle this, but it should not be difficult.

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


More information about the macports-tickets mailing list