On Tue, Aug 01, 2006 at 11:25:56PM -0500, J Moore wrote:
> On Tue, Aug 01, 2006 at 05:59:04PM +0200, the unit calling itself Nikolay 
> Sturm wrote:
> > > This worked well for the most part - the exceptions being unrar &
> > > unarj; a couple of archivers required by clamav. The pkg_add update
> > > said it couldn't upgrade those packages. As I understand it, pkg_add
> > > doesn't work with these apps due to some political/licensing issue -
> > > they are provided as ports ONLY (not packages).
> > 
> > pkg_add works perfectly fine with these packages, they are just not
> > provided by OpenBSD. That means you have to build the packages yourself
> > and then pkg_add -r and -u will work, assuming your PKG_PATH environment
> > variable is set correctly or you use absoulte pathnames.
> > 
> > BTW: Providing details means as well to provide exact comand lines and
> > error messages. Interpretations of error messages are basically useless.
> 
> Yes - in many cases you are correct. So here's what did finally work:
> 
> # pkg_add -r /usr/ports/packages/i386/all/unrar-3.54p0.tgz
> unrar-3.54p0 (extracting): complete
> unrar-3.43 (deleting): complete
> unrar-3.54p0 (installing): complete
> Clean shared items: complete
> 
> Some things I learned:
> 1) a successful 'make' produces a package; pkg_create doesn't appear to 
> be required.

Wrong. pkg_create is definitely *required*. It just invokes pkg_create with
the right arguments.


> 2) all "made" packages go to /usr/ports/packages/i386/all

> 3) both ftp sites *and* local packages can be specified in PKG_PATH

Of course ;-)


> So perhaps if I had followed this sequence I could have avoided the 
> problems I encountered:
> 
> # setenv PKG_PATH 
> ftp://ftp3.usa.openbsd.org/pub/OpenBSD/3.9/packages/i386/;/usr/ports/packages/i386/all

Nope. What is that ; ?  Use : to separate elements, as usual. pkg_add is smart
enough to desambiguate ftp:// from path separators.

Note that, in most cases, you can use `make update' to update the installation
of existing packages.  `make update FORCE_UPDATE=Yes' will even force the
update with precisely -F update -F updatedepends -F installed....

I'll make a note to add a quick description of make update to ports(7), since
it's currently documented in bsd.port.mk(5), which is a bit too much for
the average user....

Reply via email to