Page MenuHomeFreeBSD

uniquefiles.mk: Let ports override directories
Needs ReviewPublic

Authored by 0mp on May 17 2021, 3:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 17 2024, 8:01 AM
Unknown Object (File)
May 8 2024, 8:05 AM
Unknown Object (File)
May 8 2024, 7:57 AM
Unknown Object (File)
May 8 2024, 5:06 AM
Unknown Object (File)
Jan 10 2024, 7:24 PM
Unknown Object (File)
Dec 26 2023, 4:48 PM
Unknown Object (File)
Nov 9 2023, 12:35 AM
Unknown Object (File)
Oct 7 2023, 11:25 PM
Subscribers
None

Details

Reviewers
mat
Group Reviewers
portmgr
Summary

This patch makes it possible to override directory manually names when
USES=uniquefiles:dirs is used. Some ports like Ansible have to override
values of ETCDIR and DATADIR in order to preserve the defaults and POLA.
Currently, Ansible ports override ETCDIR and DATADIR after including
bsd.port.mk, which feels like a hack.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 39245
Build 36134: arc lint + arc unit

Event Timeline

0mp requested review of this revision.May 17 2021, 3:06 PM

Idea: Alternatively, maybe we can use ?= instead of = to assign those *DIR variables so that uniquefile.mk does not assign values if the port already did that.