Page MenuHomeFreeBSD

Make pkg use environment variables specified in pkg.conf
ClosedPublic

Authored by moritz_schmi.tt on Apr 18 2021, 2:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 11:08 PM
Unknown Object (File)
Wed, Oct 23, 11:25 PM
Unknown Object (File)
Sep 22 2024, 8:55 PM
Unknown Object (File)
Sep 18 2024, 11:22 AM
Unknown Object (File)
Sep 10 2024, 8:33 PM
Unknown Object (File)
Aug 28 2024, 1:36 PM
Unknown Object (File)
Aug 17 2024, 5:19 AM
Unknown Object (File)
Aug 16 2024, 6:29 AM

Details

Summary

Modify /usr/sbin/pkg to use environment variables specified in pkg.conf.
This allows control over underlying libraries like fetch(3), which can
be configured by setting HTTP_PROXY.

Test Plan

On a freshly installed FreeBSD system that needs to use a proxy for
accessing the internet, set http_proxy as shown in the example in
pkg.conf(5). Without the patch bootstrapping full pkg does not work;
with the patch, everything works as expected.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable