#13766: make install fails as non-root even with different --prefix and --with-tclpackage (chown/chgrp error with ${prefix}/etc/macports)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

#13766: make install fails as non-root even with different --prefix and --with-tclpackage (chown/chgrp error with ${prefix}/etc/macports)

Calendar and Contacts Server
#13766: make install fails as non-root even with different --prefix and --with-
tclpackage (chown/chgrp error with ${prefix}/etc/macports)
-------------------------------------+--------------------------------------
 Reporter:  [hidden email]  |       Owner:  [hidden email]
     Type:  defect                   |      Status:  new                                  
 Priority:  Normal                   |   Milestone:  MacPorts base bugs                  
Component:  base                     |     Version:  1.6.0                                
 Keywords:                           |  
-------------------------------------+--------------------------------------
 You should be able to configure, make and install MacPorts into a prefix
 under your user's control, and not have to use root to install it. But
 this doesn't work because the Makefile in the config directory is still
 trying to change the owner of ${prefix}/etc/macports to root:

 {{{
 $ PATH=/usr/bin:/usr/sbin:/bin:/sbin ./configure \
 --prefix=/tmp/macports \
 --with-tclpackage=/tmp/macports/share/macports/Tcl
 [snip]
 $ make
 [snip]
 $ make install
 [snip]
 ===> making install in config
 /usr/bin/install -c -d -o root -g admin -m 0755 /tmp/macports/etc/macports
 install: chown 0:80 /tmp/macports/etc/macports: Operation not permitted
 /usr/bin/install -c -o root -g admin -m 644 mp_version
 /tmp/macports/etc/macports
 install: /tmp/macports/etc/macports/mp_version: chown/chgrp: Operation not
 permitted
 make[1]: *** [install] Error 71
 make: *** [install] Error 1
 $
 }}}

--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13766>
MacPorts </projects/macports>
Ports system for Mac OS
_______________________________________________
macports-tickets mailing list
[hidden email]
http://lists.macosforge.org/mailman/listinfo/macports-tickets
Reply | Threaded
Open this post in threaded view
|

Re: #13766: make install fails as non-root even with different --prefix and --with-tclpackage (chown/chgrp error with ${prefix}/etc/macports)

Calendar and Contacts Server
#13766: make install fails as non-root even with different --prefix and --with-
tclpackage (chown/chgrp error with ${prefix}/etc/macports)
--------------------------------------+-------------------------------------
  Reporter:  [hidden email]  |       Owner:  [hidden email]
      Type:  defect                   |      Status:  new                                  
  Priority:  Normal                   |   Milestone:  MacPorts base bugs                  
 Component:  base                     |     Version:  1.6.0                                
Resolution:                           |    Keywords:                                      
--------------------------------------+-------------------------------------
Comment (by [hidden email]):

 can you use the ''--with-install-user'' option to configure ?

--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13766#comment:1>
MacPorts </projects/macports>
Ports system for Mac OS
_______________________________________________
macports-tickets mailing list
[hidden email]
http://lists.macosforge.org/mailman/listinfo/macports-tickets
Reply | Threaded
Open this post in threaded view
|

Re: #13766: make install fails as non-root even with different --prefix and --with-tclpackage (chown/chgrp error with ${prefix}/etc/macports)

Calendar and Contacts Server
In reply to this post by Calendar and Contacts Server
#13766: make install fails as non-root even with different --prefix and --with-
tclpackage (chown/chgrp error with ${prefix}/etc/macports)
--------------------------------------+-------------------------------------
  Reporter:  [hidden email]  |       Owner:  [hidden email]
      Type:  defect                   |      Status:  closed                              
  Priority:  Normal                   |   Milestone:  MacPorts base bugs                  
 Component:  base                     |     Version:  1.6.0                                
Resolution:  invalid                  |    Keywords:                                      
--------------------------------------+-------------------------------------
Changes (by [hidden email]):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 Sorry, yes, adding `--with-install-user=me --with-install-group=me` works
 fine. I forgot that was necessary.

--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13766#comment:2>
MacPorts </projects/macports>
Ports system for Mac OS
_______________________________________________
macports-tickets mailing list
[hidden email]
http://lists.macosforge.org/mailman/listinfo/macports-tickets