permissions of DESTROOT

JASON TILLEY jdtilley at aol.com
Sat Jun 11 08:51:21 PDT 2016


I am attempting to create my first port in a local repository. I can get it to configure, but it seems to be having trouble installing into destroot. I get the error:

for i in libnn.a; do \
	   /usr/bin/install -c -m 644 $i /opt/local/lib/$i; \
	done
install: /opt/local/lib/libnn.a: Operation not permitted
make: *** [install] Error 71
make: Leaving directory `/opt/local/var/macports/build/_Users_username_ports_gis_nn-c/nn-c/work/nn-c-1.85/trunk/nn'
Command failed:  cd "/opt/local/var/macports/build/_Users_username_ports_gis_nn-c/nn-c/work/nn-c-1.85/trunk/nn" && /usr/bin/make -w install /opt/local/var/macports/build/_Users_username_ports_gis_nn-c/nn-c/work/destroot 
Exit code: 2
Error: org.macports.destroot for port nn-c returned: command execution failed
DEBUG: Error code: CHILDSTATUS 14431 2
DEBUG: Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec destroot"
    (procedure "portdestroot::destroot_main" line 2)
    invoked from within
"portdestroot::destroot_main org.macports.destroot"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
Warning: targets not executed for nn-c: org.macports.activate org.macports.destroot org.macports.install

The beginning of the destroot phase looks like:

DEBUG: changing euid/egid - current euid: 0 - current egid: 0
DEBUG: egid changed to: 501
DEBUG: euid changed to: 502
DEBUG: destroot phase started at Sat Jun 11 10:19:29 CDT 2016
--->  Staging nn-c into destroot
DEBUG: Can't run destroot under sudo without elevated privileges (due to mtree).
DEBUG: Run destroot without sudo to avoid root privileges.
DEBUG: Going to escalate privileges back to root.
DEBUG: euid changed to: 0. egid changed to: 0.
. changed
	gid expected 0 found 80 modified
./usr missing (created)
. missing (directory not created: File exists)
./Applications missing (created)

etc., etc

Does anyone know what my problem is? Thanks.

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20160611/eafffba6/attachment.html>


More information about the macports-dev mailing list