local PKG_PATH searches only packages-stable on 6.3-release

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

local PKG_PATH searches only packages-stable on 6.3-release

Lauri Tirkkonen-2
>Synopsis: local PKG_PATH searches only packages-stable on 6.3-release
>Category: user
>Environment:
        System      : OpenBSD 6.3
        Details     : OpenBSD 6.3 (GENERIC.MP) #107: Sat Mar 24 14:21:59 MDT 2018
                         [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:

When PKG_PATH is set to a local directory, eg.
PKG_PATH=/var/www/htdocs/%m on 6.3-release, only
%c/packages-stable/amd64 is searched (pkg_add(1) says it should be
*also* searched in addition to %c/packages/%a).

>How-To-Repeat:

Have some packages (eg. a mirror) in
/var/www/htdocs/pub/OpenBSD/6.3/packages/amd64, and:

# ls -l /var/www/htdocs/pub/OpenBSD/6.3/packages/amd64/2048-*tgz  
-rw-r--r--  1 lotheac  wheel  9299 Mar 28 14:19 /var/www/htdocs/pub/OpenBSD/6.3/packages/amd64/2048-cli-0.9.1.tgz
# PKG_PATH=/var/www/htdocs/%m pkg_info 2048-cli                
file:/var/www/htdocs/pub/OpenBSD/6.3/packages-stable/amd64/: empty

>Fix:

'ln -s packages /var/www/htdocs/pub/OpenBSD/6.3/packages-stable' works
around the problem, as does using http(s) mirrors.

--
Lauri Tirkkonen | lotheac @ IRCnet