Bug 201087 - Bootstrapping pkg(8) could be more LOCALBASE friendly
Summary: Bootstrapping pkg(8) could be more LOCALBASE friendly
Status: Closed Works As Intended
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-24 00:53 UTC by lyndon
Modified: 2016-04-20 08:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lyndon 2015-06-24 00:53:19 UTC

    
Comment 1 lyndon 2015-07-03 03:43:38 UTC
Hmm ... I was pretty sure this bug report had some content when I sent it in.

But in a nutshell:

1) Install a pristine system.
2) echo 'LOCALBASE=/u/local' >> /etc/make.conf
3) Try to bootstrap and use pkg(8).

I get that remotely installed packages won't work in this environment.  But pkg(8) fails miserably when used as the underlying inventory management tool for things like /usr/ports/ports-mgmt/portupgrade.
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2015-07-03 13:30:55 UTC
LOCALBASE is a compile time thing, can is broken by design a runtime thing.

As a runtime thing it is broken by design since ever.

If you want another localbase, then you will have to rebuild packages with the proper PREFIX/LOCALABSE corresponding to your needs and they install those packages.
the pkg bootstrap respects localbase so as long as you set /u/local in LOCALBASE in your env AND you have packages built with PREFIX and LOCALBASE == /u/local it will work ootb