From nobody@FreeBSD.org  Sun Oct  3 23:09:19 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7269B106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Oct 2010 23:09:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 3B2E88FC1A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Oct 2010 23:09:19 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o93N9ImD054306
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 3 Oct 2010 23:09:18 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o93N9Ieq054305;
	Sun, 3 Oct 2010 23:09:18 GMT
	(envelope-from nobody)
Message-Id: <201010032309.o93N9Ieq054305@www.freebsd.org>
Date: Sun, 3 Oct 2010 23:09:18 GMT
From: grarpamp <grarpamp@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pkg_add(1): allow different pkgdep location
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         151187
>Category:       bin
>Synopsis:       pkg_add(1): allow different pkgdep location
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 03 23:10:04 UTC 2010
>Closed-Date:    
>Last-Modified:  Mon Oct  4 02:50:03 UTC 2010
>Originator:     grarpamp
>Release:        i386: HEAD, RELENG_8
>Organization:
>Environment:
>Description:
pkg_add(1) needs to be able to fetch the primary package file
[pkg-name argument] from one location and any dependencies
[+CONTENTS: @pkgdep] from a second location.

In other words, these two examples should be made to work.

# remote pkg-name
PKGDEPSITE=ftp://ftp.freebsd.org/.../All/ \
 pkg_add ftp://ftp.example.com/.../foo.tgz

# local pkg-name
PKGDEPSITE=ftp://ftp.example.com/.../pkg/ \
 pkg_add /home/.../foo.tgz


Also, consider enhancing the 'path' type environment
variables to allow multiple paths/methods in order:

PKG_PATH=/foo:'ftp://1.com/':'http://2.com/':'ftp://ftp.freebsd.org/'
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: grarpamp <grarpamp@gmail.com>
To: bug-followup@FreeBSD.org
Cc: freebsd-openoffice@freebsd.org
Subject: Re: bin/151187: pkg_add(1): allow different pkgdep location
Date: Sun, 3 Oct 2010 22:14:32 -0400

 One of the reasons this is needed is to allow
 develop[ment/ers] of local code or packages to
 easily bring in libraries and things they need.
 Without having to build and deal with them
 locally. Automation of build environments.
 
 Less or selected bandwidth use.
 
 Another case is openoffice. 2.4.x is outdated
 and good-day does not carry the deps for any
 version, thus it needs manual intervention and
 pointing to freebsd.org/mirror to install the deps.
>Unformatted:
