On 2011-03-18, Andres Perera <andre...@zoho.com> wrote: > On Fri, Mar 18, 2011 at 3:45 AM, Gregory Edigarov ><g...@bestnet.kharkov.ua> wrote: >> Hello, >> >> Is this working ever? >> Yesterday I was trying to add a certain packages and wanted them to >> reside in the very separate base (/usr/opt) so them will be easilly >> removed after my trial of them. >> I did 'pkg_add -L /usr/opt/<package name> B package' and got: >> pkg_add: Unknown option -L >> Usage: pkg_add [-acIinqrsUuvxz] [-A arch] [-B pkg-destdir] [-D >> name[=value]] [-L localbase] [-l file] [-P type] [-Q quick-destdir] >> pkg-name [...] >> >> What am I missing? > > --- usr/src/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm Mon Jan 3 14:31:04 2011 > +++ usr/libdata/perl5/OpenBSD/PkgAdd.pm Fri Mar 18 12:51:28 2011 > @@ -68,7 +68,7 @@ > sub handle_options > { > my $state =3D shift; > - $state->SUPER::handle_options('aruUzl:A:P:Q:', > + $state->SUPER::handle_options('aruUzl:A:L:P:Q:', > '[-acIinqrsUuvxz] [-A arch] [-B pkg-destdir] [-D name[=3Dvalue]= > ]', > '[-L localbase] [-l file] [-P type] [-Q quick-destdir] > pkg-name [...]');
I guess this is not used very often then :-) The altered localbase must also be set when the packages are built.