Page MenuHomeFreeBSD

Fix "need root" logic for PORT_DBDIR.
ClosedPublic

Authored by jonathan on May 13 2016, 4:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 30, 12:54 PM
Unknown Object (File)
Wed, Dec 24, 12:37 PM
Unknown Object (File)
Dec 2 2025, 11:13 AM
Unknown Object (File)
Nov 11 2025, 5:21 PM
Unknown Object (File)
Nov 7 2025, 9:53 PM
Unknown Object (File)
Nov 5 2025, 2:14 PM
Unknown Object (File)
Nov 5 2025, 1:55 PM
Unknown Object (File)
Nov 5 2025, 1:55 PM
Subscribers
None

Details

Summary

When PORT_DBDIR is set to a user directory, we shouldn't need su to
manipulate options. This also shouldn't depend on INSTALL_BY_USER, as
building != installing.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jonathan retitled this revision from to Fix "need root" logic for PORT_DBDIR..
jonathan updated this object.
jonathan edited the test plan for this revision. (Show Details)
jonathan added reviewers: bapt, bdrewery, mat.
bapt edited edge metadata.
This revision is now accepted and ready to land.May 13 2016, 7:53 PM
This revision was automatically updated to reflect the committed changes.
head/Mk/bsd.port.mk
5249–5250

It would have been nice to not change the sh style, in the ports/Mk/* we write:

if [ foo ]; then

not

if [ foo ];
then