Bug 193847 - make package and make clean as non-root user vs. NEED_ROOT=yes
Summary: make package and make clean as non-root user vs. NEED_ROOT=yes
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-22 20:02 UTC by Matthias Andree
Modified: 2019-09-05 08:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Andree freebsd_committer 2014-09-22 20:02:41 UTC
Apparently there are several bugs that prevent the ports framework from building ports such as emulators/linux-c6 as non-root user, even with NEED_ROOT=yes is set.

1. the port extracts directories to which it itself does not have permissions. This can be worked around by the port.

2. "make package" does not run as root even if NEED_ROOT=yes is given on the make command line, making it unable to package files such as compat/linux/etc/shadow with extremely restricted permissions.

3. "make clean" does not perform the equivalent of chmod -R u+rwX ${WRKDIR} so it fails deleting directories without write permission.
Comment 1 Baptiste Daroussin freebsd_committer 2019-09-05 08:17:57 UTC
NEED_ROOT is not supported anymore in the ports tree it was a temporary requirement