From nobody@FreeBSD.ORG  Thu Aug 24 18:02:18 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 32B2437B424; Thu, 24 Aug 2000 18:02:18 -0700 (PDT)
Message-Id: <20000825010218.32B2437B424@hub.freebsd.org>
Date: Thu, 24 Aug 2000 18:02:18 -0700 (PDT)
From: david@bushong.net
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: pkg_add -r only fetchs one-level deep dependencies
X-Send-Pr-Version: www-1.0

>Number:         20827
>Category:       bin
>Synopsis:       pkg_add -r only fetchs one-level deep dependencies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    billf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 24 18:10:01 PDT 2000
>Closed-Date:    Thu Oct 11 04:33:05 PDT 2001
>Last-Modified:  Thu Oct 11 04:34:20 PDT 2001
>Originator:     David Bushong
>Release:        4.1-STABLE
>Organization:
>Environment:
FreeBSD everest.DataMain.COM 4.1-STABLE FreeBSD 4.1-STABLE #0: Tue Aug  1 16:19:45 PDT 2000     dbushong@everest.DataMain.COM:/usr/obj/usr/src/sys/EVEREST  i386

>Description:
Given a functional package server and pkg_add -r, dependencies of
dependencies of a given package are not fetched, and thus the install
fails.

>How-To-Repeat:
# setenv PACKAGE_SITE http://www.example.com/packages/All/
# pkg_add -r evolution-0.4.1
Fetching http://localhost/packages/All/evolution-0.4.1.tgz... Done.
Fetching http://localhost/packages/All/bonobo-0.18.tgz... Done.
pkg_add: could not find package gdk-pixbuf-0.8.0 !
pkg_add: could not find package gnomecontrolcenter-1.2.1 !
pkg_add: could not find package gnomeprint-0.20 !
pkg_add: pkg_add of dependency `bonobo-0.18' failed!
Fetching http://localhost/packages/All/gconf-0.8.tgz... Done.
pkg_add: could not find package gdk-pixbuf-0.8.0 !
pkg_add: could not find package gnomecontrolcenter-1.2.1 !
...

and so on.  All of these dependent packages _do_ exist on the server.

>Fix:
Pass the remote flag to child pkg_add's?  I have a feeling that this
might cause problems with duplicate dependencies, not sure.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->billf 
Responsible-Changed-By: billf 
Responsible-Changed-When: Thu Aug 24 18:11:17 PDT 2000 
Responsible-Changed-Why:  
If it's possible to "own" an option to a program, I guess I "own" pkg_add -r. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20827 

From: "Dan Peterson" <danp@danp.net>
To: <freebsd-gnats-submit@FreeBSD.org>, <david@bushong.net>
Cc:  
Subject: Re: bin/20827: pkg_add -r only fetchs one-level deep dependencies
Date: Thu, 24 Aug 2000 20:57:51 -0700

 try:
 
 setenv PACKAGE_SITE http://www.example.com/packages/All/
 setenv PKG_ADD_BASE http://www.example.com/packages/All/
 pkg_add -r evolution-0.4.1
 
 -dan
 
 -- 
 Dan Peterson / danp@danp.net / 415-505-4855
 
 
 
 

From: David Bushong <david@bushong.net>
To: Dan Peterson <danp@danp.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/20827: pkg_add -r only fetchs one-level deep dependencies
Date: Thu, 24 Aug 2000 22:46:05 -0700

 Hmm.  Thanks!  This seems to work, but it still seems like a bug to me for
 you to have to override that..  otherwise what's the point of the PACKAGESITE
 (note: no '_') env var?  Also, when you set both and run, it quietly installs
 the dependent dependencies without saying anything.. not what you'd want.
 
 --David Bushong
 
 
 On Thu, Aug 24, 2000 at 08:57:51PM -0700, Dan Peterson wrote:
 > try:
 > 
 > setenv PACKAGE_SITE http://www.example.com/packages/All/
 > setenv PKG_ADD_BASE http://www.example.com/packages/All/
 > pkg_add -r evolution-0.4.1
 > 
 > -dan
 > 
 > -- 
 > Dan Peterson / danp@danp.net / 415-505-4855
 > 
 > 
 

From: "Dan Peterson" <danp@danp.net>
To: "David Bushong" <david@bushong.net>
Cc: <freebsd-gnats-submit@FreeBSD.org>
Subject: Re: bin/20827: pkg_add -r only fetchs one-level deep dependencies
Date: Fri, 25 Aug 2000 09:26:19 -0700

 yes, it is rather odd. i just happened about PKG_ADD_BASE while i was
 browsing the source (usr.sbin/pkg_install/add/perform.c). when pkg_add (and
 its slaves) installs a package, having PKG_ADD_BASE set in the environment
 will force it to see the full file path as a URL (i.e.,
 $PKG_ADD_BASE/evolution-0.4.1.tgz) and fetch it accordingly regardless of
 what's actually in PKG_ADD_BASE. i don't know if this is some kind of
 internal thing, but perhaps it should be documented. :)
 
 -dan
 
 --
 Dan Peterson / danp@danp.net / 415-505-4855
 
 
 ----- Original Message -----
 From: "David Bushong" <david@bushong.net>
 To: "Dan Peterson" <danp@danp.net>
 Cc: <freebsd-gnats-submit@FreeBSD.org>
 Sent: Thursday, August 24, 2000 10:46 PM
 Subject: Re: bin/20827: pkg_add -r only fetchs one-level deep dependencies
 
 
 > Hmm.  Thanks!  This seems to work, but it still seems like a bug to me for
 > you to have to override that..  otherwise what's the point of the
 PACKAGESITE
 > (note: no '_') env var?  Also, when you set both and run, it quietly
 installs
 > the dependent dependencies without saying anything.. not what you'd want.
 >
 > --David Bushong
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Thu Oct 11 04:33:05 PDT 2001 
State-Changed-Why:  
I've resolved the problem some time ago by forcing pkg_create sort dependencies 
in such a way that they are added in right order. Thank you for reporting! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20827 
>Unformatted:
