Date: Thu, 3 Apr 2014 15:01:56 -0400 From: Julio Merino <jmmv@freebsd.org> To: python@freebsd.org Subject: Make python27 build as an unprivileged user Message-ID: <20140403190156.GA83695@mastodon.meroh.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140403190156.GA83695>