Mantis - pkg_get
Viewing Issue Advanced Details
1011 regular use feature always 2005-06-15 20:55 2008-11-13 20:06
T.Maier-Komor  
phil  
normal  
assigned  
open  
none    
none  
0001011: RFE: make pkg_get compatible with flag -R of pkgadd
It would be nice if one could select an alternative root directory for the installation of packages. This option is available in pkgadd with the command line parameter -R. Unfortunately passing such a flag to pkg_get via the config variable PKGADDFLAGS in pkg_get.conf does not do the trick, as this option is not passed to pkginfo during the check, if the package is already installed and all dependencies are fulfilled.
This feature would be nice to have in a live upgrade environment, where blastwave packages could be installed on a shared slice as an alternate root path and lofs mounted to the boot environment. This solves the problem of keeping blastwave package metadata consistent across different boot environments.
Issue History
2008-11-13 20:05 philadmin Note Added: 0005381
2008-11-13 20:06 philadmin Note Added: 0005382

Notes
(0005381)
philadmin   
2008-11-13 20:05   
Hmm. I revisited this request... unfortunately, since I use a "cheat" in package detection at some points, it requires more effort than just using PKGADDFLAGS. I will have to add a -R option to pkg-get itself.

I think this is a worthwhile effort, and I intend to do so in the future.
(0005382)
philadmin   
2008-11-13 20:06   
Until then, chroot should probably work for you, of course.