pkg_add -r doesn't process sub dependencies?

2008-03-07 Thread Steven Hartland

Seems if you have package X which depends on package Y which
depends on package Z then pkg_add -r X will always fail unless
you first :-
1. pkg_add -r Y
2. pkg_add -r Z

The failure will be:-
pkg_add: could not find package Z !

This happens even though Z exists in the remote source package
directory.

Surely I've missed something very basic here and pkg_add isn't
that broken?

   Regards
   Steve


This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 


In the event of misdirection, illegible or incomplete transmission please 
telephone +44 845 868 1337
or return the E.mail to [EMAIL PROTECTED]

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pkg_add -r doesn't process sub dependencies?

2008-03-07 Thread walt

Steven Hartland wrote:

Seems if you have package X which depends on package Y which
depends on package Z then pkg_add -r X will always fail unless
you first :-
1. pkg_add -r Y
2. pkg_add -r Z

The failure will be:-
pkg_add: could not find package Z !

This happens even though Z exists in the remote source package
directory...


If you are using RELENG_7, pkg_add is looking in the wrong place
on the remote server for packages.  I just submitted a patch on
the -STABLE list for this problem.


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pkg_add -r doesn't process sub dependencies?

2008-03-07 Thread Steven Hartland
- Original Message - 
From: walt [EMAIL PROTECTED]

If you are using RELENG_7, pkg_add is looking in the wrong place
on the remote server for packages.  I just submitted a patch on
the -STABLE list for this problem.


I'm actually using PACKAGESITE which is meant to bypass all path
calculations but it simply doesn't. I've now found PKG_ADD_BASE
which seems to fix this issue but is not documented anywhere.

I had to dig around in the code to find it, where its commented
as:-
/* Special tip that sysinstall left for us */

It seems really strange that the default behaviour of pkg_add -r
can't deal with sub dependencies properly without this undocumented
feature.

   Regards
   Steve




This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 


In the event of misdirection, illegible or incomplete transmission please 
telephone +44 845 868 1337
or return the E.mail to [EMAIL PROTECTED]

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]