Hello,

I needed the patch below to be able to build python27 when using ports as
an unprivileged user.  It is a bit too coarse-grained, but I think ports
does not offer a finer-grained mechanism to indicate that only the staging
phase needs root.

(Note that pkgsrc marks all python packages as requiring root for the
stage phase... and I suppose it's because of the same problem I encountered.)

What do you think?  (If you think this is OK, I'll need an explicit approval
to commit.)

Thanks.


Index: Makefile
===================================================================
--- Makefile    (revision 349914)
+++ Makefile    (working copy)
@@ -22,6 +22,13 @@
 
 INSTALL_TARGET=        altinstall
 
+# The compilation of all modules during the staging phase fails when not
+# run as root because the compiler attemps to rewrite .pyc files
+# previously-created with 444 permissions.  Either the compiler should be
+# fixed to not rewrite such files or they should be temporarily created
+# with 644 permissions and later changed to 444.
+NEED_ROOT=     yes
+
 USES=          readline
 USE_LDCONFIG=  yes
 USE_PYTHON=    yes
_______________________________________________
freebsd-python@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"

Reply via email to