NetBSD Problem Report #48177
From www@NetBSD.org Tue Sep 3 18:03:35 2013
Received: from mail.netbsd.org (mail.netbsd.org [188.8.131.52])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 9F8A2703F9
for <gnats-bugs@gnats.NetBSD.org>; Tue, 3 Sep 2013 18:03:35 +0000 (UTC)
Date: Tue, 3 Sep 2013 18:03:34 +0000 (UTC)
Subject: the pkgsrc binary package installation instructions are lacking
>Synopsis: the pkgsrc binary package installation instructions are lacking
>Arrival-Date: Tue Sep 03 18:05:00 +0000 2013
>Originator: Michal Suchanek
Between the NetBSD guide and pkgsrc guide (referenced from NetBSD guide) there are some bits missing when it comes to setting up binary package installation.
> Precompiled binaries are available on the NetBSD FTP server for some ports. To install them the PKG_PATH variable needs to be adjusted in the following way (under the sh(1) shell):
> # export PKG_PATH="http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/<PORT>/<RELEASE-NUMBER>/All"
> # export PKG_PATH
> Where <RELEASE-NUMBER> needs to be replaced by the release number of an existing NetBSD release (for example, 5.0). <PORT> needs to be replaced by the Port name for the used architecture (for example, amd64)
It may be obvious for an experienced user what port is and what is the compatibility between different major and minor releases but for user inexperienced with NetBSD this is insufficient.
The version policy should be referenced as well as a way to obtain <PORT> on running system.
the pkgsrc guide has only this text:
> # PKG_PATH="ftp://ftp.NetBSD.org/pub/pkgsrc/packages/OPSYS/ARCH/VERSIONS/All"
> # export PATH PKG_PATH
It does not explain OPSYS ARCH and VERSION at all.
There are nice examples in /root/.profile but they are commented out (and even if they weren't it does not mean they would be effective) and it's not obvious that the user should look in that file for examples.
The pkgsrc home page has quickstart guide which has this example:
> PKG_PATH="http://ftp.NetBSD.org/pub/pkgsrc/packages/$(uname -s)/$(uname -m)/$(uname -r|cut -f '1 2' -d.)/All"
> export PKG_PATH
This is however not referenced from neither NetBSD guide nor pkgsrc guide.
Try to install a binary package following the NetBSD guide.
Add more examples and/or references in the guides.
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.