Page MenuHomeFreeBSD

Make LOCALBASE available as a sysctl value
ClosedPublic

Authored by se on Oct 29 2020, 3:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 8:25 PM
Unknown Object (File)
Nov 22 2024, 11:03 AM
Unknown Object (File)
Nov 20 2024, 2:38 PM
Unknown Object (File)
Nov 3 2024, 8:33 PM
Unknown Object (File)
Nov 3 2024, 8:33 PM
Unknown Object (File)
Nov 3 2024, 8:33 PM
Unknown Object (File)
Nov 3 2024, 8:18 PM
Unknown Object (File)
Sep 23 2024, 10:30 PM
Subscribers
None

Details

Summary

Make the value of _PATH_LOCALBASE the base system was built with available to user-land programs, libraries and scripts

This sysctl variable could e.g. be used in the rc framework to adjust values in /etc/defaults/rc.conf to the LOCALBASE of the running system, in most cases removing the need to locally overwrite the default values.
Start-up scripts that have to consider port/package supplied data could also be adjusted to use this value.

Test Plan

Build kernel and world with these patches applied
Test that "sysctl user.localbase" returns the value that has been used to build the world.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 34479