NetBSD Problem Report #28760

From kre@jade.coe.psu.ac.th  Thu Dec 23 11:32:54 2004
Return-Path: <kre@jade.coe.psu.ac.th>
Received: from jade.coe.psu.ac.th (unknown [192.150.250.67])
	by narn.netbsd.org (Postfix) with ESMTP id 07CAE63B400
	for <gnats-bugs@gnats.netbsd.org>; Thu, 23 Dec 2004 11:32:52 +0000 (UTC)
Message-Id: <200412231132.iBNBWjEI004542@jade.coe.psu.ac.th>
Date: Thu, 23 Dec 2004 18:32:45 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@netbsd.org
Subject: doc/pkgsrc.html (.txt, ...) error
X-Send-Pr-Version: 3.95

>Number:         28760
>Category:       pkg
>Synopsis:       doc/pkgsrc.html (.txt, ...) error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 23 11:33:00 +0000 2004
>Closed-Date:    Fri Dec 24 00:06:52 +0000 2004
>Last-Modified:  Fri Dec 24 00:06:52 +0000 2004
>Originator:     Robert Elz
>Release:        NetBSD 1.6X  (-- pkgsrc current as of date/time of this message)
>Organization:
	Prince of Songkla University
>Environment:
	None of this is relevant ...
System: NetBSD jade.coe.psu.ac.th 1.6X NetBSD 1.6X (JADE) #17: Wed Sep 24 20:25:35 ICT 2003 kre@jade.coe.psu.ac.th:/usr/src/real-sys/arch/i386/compile/JADE i386
Architecture: i386
Machine: i386
>Description:
	pkgsrc.txt says (section 4.2.3) ...
		[using .txt version to avoid markup noise confusing things]

If you want to install a binary package that you've either created yourself
(see next section), that you put into pkgsrc/packages manually or that is
located on a remote FTP server, you can use the "bin-install" target. This
target will install a binary package - if available - via pkg_add(1), else do a
make package. The list of remote FTP sites searched is kept in the variable
BINPKG_SITE, which defaults to ftp.NetBSD.org. Any flags that should be added
to pkg_add(1) can be put into BIN_INSTALL_FLAGS. See pkgsrc/mk/ 
bsd.pkg.defaults.mk for more details.

	BINPKG_SITE should be BINPKG_SITES
	bsd.pkg.defaults.mk should be defaults/mk.conf

>How-To-Repeat:
	By inspection (or perhaps more honestly, by attempting to do
	what it said to do and wondering why pkgsrc kept attempting
	to ftp to its default binpkg site after I thought I told it
	not to bother...)
>Fix:
	Add the missing S to BINPKG_SITE, and correct the path for the
	defaults file.    The appended patch does that assuming the .html
	file is the master copy (I suspect there's actually an XML
	version buried someplace else which isn't distributed, in which
	case you're going to need to go editing manually...)

	It might also be a good idea to explicitly mention that the
	value of BINPKG_SITES is intended to be a list of ftp URLs, not
	a list of "remote FTP sites", and include some mention of
	the correct way to construct those URLs so they work correctly.
	(Not relevant to me as all I wanted to do was "BINPKG_SITES=").


--- pkgsrc.html	2004-12-04 04:53:54.000000000 +0700
+++ pkgsrc.html-FIX	2004-12-23 18:29:12.000000000 +0700
@@ -2580,7 +2580,7 @@
             <span>make
             package</span>. The list of remote FTP sites
             searched is kept in the variable <code class=
-            "varname">BINPKG_SITE, which defaults to
+            "varname">BINPKG_SITES, which defaults to
             ftp.NetBSD.org. Any flags that should be added to
             <a href=
             "http://netbsd.gw.com/cgi-bin/man-cgi?pkg_add+1+NetBSD-current">
@@ -2588,7 +2588,7 @@
             "refentrytitle">pkg_add</span>(1)</span></a> can be put
             into BIN_INSTALL_FLAGS.
             See <code class=
-            "filename">pkgsrc/mk/bsd.pkg.defaults.mk for
+            "filename">pkgsrc/mk/defaults/mk.conf for
             more details.</p>

             <p>A final word of warning: If you setup a system that

>Release-Note:

>Audit-Trail:
From: Ben Collver <ben@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/28760 CVS commit: pkgsrc/doc/guide/files
Date: Thu, 23 Dec 2004 18:50:23 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	ben
 Date:		Thu Dec 23 18:50:23 UTC 2004

 Modified Files:
 	pkgsrc/doc/guide/files: using.xml

 Log Message:
 Correct variable for binary packages.  s/BINPKG_SITE/&S/

 Partially addresses PR#28760


 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.3 pkgsrc/doc/guide/files/using.xml

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Ben Collver <ben@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/28760 CVS commit: pkgsrc/doc/guide/files
Date: Thu, 23 Dec 2004 18:57:03 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	ben
 Date:		Thu Dec 23 18:57:03 UTC 2004

 Modified Files:
 	pkgsrc/doc/guide/files: binary.xml fixes.xml platforms.xml using.xml

 Log Message:
 Correct path for pkgsrc defaults.  s,bsd.pkg.defaults.mk,defaults/mk.conf,

 Partially addresses PR#28760


 To generate a diff of this commit:
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/doc/guide/files/binary.xml
 cvs rdiff -r1.4 -r1.5 pkgsrc/doc/guide/files/fixes.xml
 cvs rdiff -r1.2 -r1.3 pkgsrc/doc/guide/files/platforms.xml
 cvs rdiff -r1.3 -r1.4 pkgsrc/doc/guide/files/using.xml

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: ben@netbsd.org
State-Changed-When: Fri, 24 Dec 2004 00:06:52 +0000
State-Changed-Why:
Patches applied to pkgsrc guide.  Thank you for this PR!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.