Re: pkg_add doesn't keep dependent pkgs

Previous thread: none

Next thread: Re: WOL not working with 3Com NIC by Stefan Sperling on Saturday, November 3, 2007 - 8:47 am. (2 messages)
From: Maslan
Date: Saturday, November 3, 2007 - 6:05 am

Hi,
pkg_add -rK seems not to keep the packages dependencies so as the
package itself.

i found this:
http://lists.freebsd.org/pipermail/freebsd-bugbusters/2006-August/000178.html

but no answer since then.

I don't if this is a bug, or not even implemented feature?

Thanks alot

-- 
System Programmer
--
I'm Searching For Perfection,
So Even If U Need Portability U've To Use Assembly ;-)
--
http://libosdk.berlios.de
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
From: Garrett Cooper
Date: Tuesday, November 6, 2007 - 12:42 am

Package dependencies may change, depending on the user settings and 
port maintainers configuration for the port (i.e. Makefiles). The same 
sort of applies to packages as well.
    Or were you referring to just packages instead of ports based 
package metadata :)?
    Or maybe a better question is: what are you trying to accomplish?
-Garrett
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
From: Maslan
Date: Tuesday, November 6, 2007 - 1:27 pm

The problem is that i always try FreeBSD snapshots, and each time i
did a fresh install, i found my self in need to install xorg & gnome.
so when i use pkg_add -rK xorg or pkg_add -rK gnome, it just keeps the
package itself only without its dependencies, it would be better for
me to keep the packages i use rather than downloading them every time.

The ports has no problem with that, since it leaves all the port
dependencies in /usr/ports/distfiles but i prefer packages than
recompiling every time i install a fresh system something like gnome
would eat my day compiling it.


-- 
System Programmer
--
I'm Searching For Perfection,
So Even If U Need Portability U've To Use Assembly ;-)
--
http://libosdk.berlios.de
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
From: Garrett Cooper
Date: Tuesday, November 6, 2007 - 2:01 pm

Hmm... that is indeed silly.

Let me see if I can fire up a patch for that little issue sometime 
either next week or the week after to fix that.

-Garrett
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
From: Maslan
Date: Tuesday, November 6, 2007 - 6:58 pm

That would be great.
I'll wait for the patch





-- 
System Programmer
--
I'm Searching For Perfection,
So Even If U Need Portability U've To Use Assembly ;-)
--
http://libosdk.berlios.de
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
From: Garrett Cooper
Date: Tuesday, November 6, 2007 - 7:52 pm

That's assuming (IIRC) pkg_add doesn't invoke libfetch related APIs 
directly and extract straight to the command line. It may take a bit 
more work than I initially think, but a patch *should* be trivial to create.
-Garrett
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
From: Garrett Cooper
Date: Friday, November 9, 2007 - 8:59 pm

The URL provided to this really simple patch should fix the problem 
for -K not being propagated down child pkg_add processes 
(http://students.washington.edu/youshi10/posted/pkg_add_keep_flag_prop.patch). 
I would test it out but my FreeBSD box is still not hooked up to the 
net, so no dice :(. It's simple enough though that I'm almost 100% 
positive that it's correct. If the behavior's wrong or slightly askew, 
please let me know and I'll see if I can hack around the code a bit more.
    You made a good point though in terms of usage and propagating / 
whitelisting options from parent to child (master to slave?) copies of 
pkg_install apps. I'll write that up for my todo list for the 
pkg_install rewrite (VLSI's kicking my ass this quarter along with work, 
so I haven't had a real chance to sit down and make a plan for 
developing pkg_install).
Cheers,
-Garrett
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
From: Wesley Shields
Date: Wednesday, November 7, 2007 - 1:10 pm

You could always use pkg_fetch -fR (from portupgrade) to fetch them all
first, and then pkg_add them after.  Of course, I think fixing pkg_add
to keep the dependencies also is a better solution.

-- WXS
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
Previous thread: none

Next thread: Re: WOL not working with 3Com NIC by Stefan Sperling on Saturday, November 3, 2007 - 8:47 am. (2 messages)