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
F164839303: D29820.diff
Tue, Aug 4, 6:55 AM
Unknown Object (File)
Fri, Jul 24, 6:43 PM
Unknown Object (File)
Wed, Jul 22, 11:04 PM
Unknown Object (File)
Sat, Jul 18, 8:37 AM
Unknown Object (File)
Sat, Jul 11, 4:35 PM
Unknown Object (File)
Fri, Jul 10, 10:40 PM
Unknown Object (File)
Thu, Jul 9, 4:35 PM
Unknown Object (File)
Mon, Jul 6, 6:18 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38665
Build 35554: arc lint + arc unit