#39230: clang-3.3 @3.3-r180025 can't stage to destroot in non-root install (no +no_root variant) ------------------------+------------------------ Reporter: mtb19@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: clang-3.3 | ------------------------+------------------------ Comment (by mtb19@…): For version 3.3, the offending chown command can be found on line 38 of the libcxx/Makefile: {{{ 1 ## 2 # libcpp Makefile 3 ## 4 ... 32 33 # The installheaders target is used by clang's runtime/libcxx makefile. 34 installheaders:: 35 mkdir -p $(HEADER_DIR)/c++/v1/ext 36 rsync -r --exclude=".*" --exclude="support" $(SRCDIRS)/include/* \ 37 $(HEADER_DIR)/c++/v1/ 38 >>>> chown -R root:wheel $(HEADER_DIR)/c++ <<<< 39 chmod 755 $(HEADER_DIR)/c++/v1 40 chmod 644 $(HEADER_DIR)/c++/v1/* 41 chmod 755 $(HEADER_DIR)/c++/v1/ext 42 chmod 644 $(HEADER_DIR)/c++/v1/ext/* 43 ... }}} When I commented out line 38 in /__PATH__/var/macports/build/___PATH___var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/clang-3.3/work/trunk/projects/libcxx/Makefile, my build completed without issue. I do not know enough about port files to know how to apply a patch conditioned on a non-root install. I'm hoping the above info makes it easy for someone with more expertise.... -- Ticket URL: <https://trac.macports.org/ticket/39230#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X