removing unneeded package dependencies

2010-12-27 Thread Dmitrij D. Czarkoff
Hello!

I use a custom script to remove automaticly installed dependencies to the
manually installed packages I deleted.

AFAIK ``pkg'' doesn't provide this functionality (if I'm wrong, correct me,
please).

The things I wanted to ask are:

1. Is there any reason for this functionality being missing in ``pkg''? (I
would like to make a patch to ``pkg'' to make it possible if there is a chance
that the patch would be accepted.)

2. Is anyone working on this functionality already?

--
Dmitrij D. Czarkoff



Re: removing unneeded package dependencies

2010-12-27 Thread Frank Bax

On 12/27/10 09:35, Dmitrij D. Czarkoff wrote:

I use a custom script to remove automaticly installed dependencies to the
manually installed packages I deleted.




If you had used -D dependencies when you manually deleted a package; 
the dependencies would also be deleted (unless they are required for 
another package).




Re: removing unneeded package dependencies

2010-12-27 Thread Joachim Schipper
On Mon, Dec 27, 2010 at 10:08:09AM -0500, Frank Bax wrote:
 On 12/27/10 09:35, Dmitrij D. Czarkoff wrote:
 I use a custom script to remove automaticly installed dependencies to the
 manually installed packages I deleted.
 
 If you had used -D dependencies when you manually deleted a
 package; the dependencies would also be deleted (unless they are
 required for another package).

That switch deletes all packages that *depend on* the package being
deleted; the OP is asking for the reverse relation.

Ask espie@, I'm pretty sure it's on the list.

Joachim

-- 
PotD: databases/p5-Class-DBI-Plugin-Type - determine type information for 
columns
http://www.joachimschipper.nl/



Re: removing unneeded package dependencies

2010-12-27 Thread Дмитрий Царьков
On Mon, Dec 27, 2010 at 4:08 PM, Frank Bax f...@sympatico.ca wrote:
 On 12/27/10 09:35, Dmitrij D. Czarkoff wrote:

 I use a custom script to remove automaticly installed dependencies to the
 manually installed packages I deleted.

 If you had used -D dependencies when you manually deleted a package; the
 dependencies would also be deleted (unless they are required for another
 package).

Sorry for that. A dramatic fuck up on my side.

Meanwhile, why this behaviour isn't the default one? Generally one
would prefer to delete dependencies as far as the mail package is
deleted.

-- 
Dmitrij D. Czarkoff



Re: removing unneeded package dependencies

2010-12-27 Thread Luis Useche
I recently submitted a patch to do this. I haven't received much feedback
but check if it works for you.

http://marc.info/?l=openbsd-techm=129320921012808w=2

Luis

On Mon, Dec 27, 2010 at 9:35 AM, Dmitrij D. Czarkoff czark...@gmail.comwrote:

 Hello!

 I use a custom script to remove automaticly installed dependencies to the
 manually installed packages I deleted.

 AFAIK ``pkg'' doesn't provide this functionality (if I'm wrong, correct me,
 please).

 The things I wanted to ask are:

 1. Is there any reason for this functionality being missing in ``pkg''? (I
 would like to make a patch to ``pkg'' to make it possible if there is a
 chance
 that the patch would be accepted.)

 2. Is anyone working on this functionality already?

 --
 Dmitrij D. Czarkoff



Re: removing unneeded package dependencies

2010-12-27 Thread Marc Espie
Sorry about the lack of feedback.

Basically, there are quite a few severe limitations to the way pkg_delete
currently walks dependencies.

Putting a band-aid such as your patch is not going to help, and yeah,
redesigning that to work better is on my list.