Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TOOL]-Unclepine-Recursive Unmerge & Cleaning Tool _b18
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Fri Feb 04, 2005 5:21 pm    Post subject: Reply with quote

You've reinvented or at least for gentoo invented " russian roulette" :D I'll leave before you make a mess.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Fri Feb 04, 2005 8:10 pm    Post subject: Reply with quote

kamagurka wrote:
dammit. i'm trying to do
"unclepine -u -x | xargs emerge -Ca", but the last line looks like this:
Code:
Do you want me to unmerge these packages? [Yes/No] Interrupted.

so i don't actually get to tell him whether to unmerge or not. solutions?


woa...
never tried...

for now solution could be:

Code:

emerge -Ca `unclepine -u -x`



thank you!
bye
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
patwu
n00b
n00b


Joined: 23 Dec 2003
Posts: 23
Location: Dresden/Gemany

PostPosted: Sat Feb 05, 2005 5:56 pm    Post subject: Reply with quote

Hi folks,

first of all, nice tool xchris. But I've one question: What does the -dc switch mean?

Code:

-dc , --deps-check
checks current dependencies against ones from updated portage


can anybody explain?

A sample output:

Code:


Analyzing....Please Wait
If you feel bored launch it with -v switch!

* x11-libs/gtk+-2.4.14  Current: 15 New: 12
        - sys-apps/coreutils-5.2.1-r2 (BLUE)
        - sys-apps/findutils-4.1.20-r1 (BLUE)
        - sys-apps/sed-4.0.9 (BLUE)

* x11-libs/gtkglarea-1.99.0     Current: 6 New: 7
        + dev-util/pkgconfig-0.15.0 (RED)

* media-libs/jpeg-6b-r4         Current: 4 New: 3
        - sys-devel/gnuconfig-20040214 (BLUE)

* media-libs/libogg-1.1.2       Current: 2 New: 2
        - sys-devel/gnuconfig-20040214 (BLUE)
        + sys-devel/patch-2.5.9 (RED)

(shortened)



Thx.
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 524

PostPosted: Sun Feb 06, 2005 1:20 am    Post subject: Reply with quote

Code:
beetle_b gentoo-sources-2.4.20-r5 # unclepine -u -v

                ********************** WARNING **************************
                *                 USE AT YOUR OWN RISK!!!!!             *
                *                                                       *
                * MISUSE OF THIS TOOL CAN BREAK YOUR GENTOO             *
                * ESPECIALLY IF NOT WELL MANTAINED                      *
                *********************************************************
         (__) *
         (@@)
  /-------\/
 / |Larry||
*  ||----||
   ^^    ^^             ~ http://www.gechi.it ~



~ Version 0.1_beta13

>>> Psyco enabled! ;)
>>> Considering Build time Use
>>> Considering RDEPEND files
>>> Considering DEPEND files
>>> Considering PDEPEND files

>>> Reading portage parameters
        ARCH:           x86
        PORTDIR:        /usr/portage
        USEFLAGS:       120
>>> Building Virtuals
>>> Reading dependencies files from /var/db/pkg/ /var/cache/edb/dep/usr/portage/ (mix mode)
!!! Using only info from /var/db/pkg for: sys-kernel/gentoo-sources-2.4.20-r5

!!! Critical Error
!!! You miss this file : /var/db/pkg/sys-kernel/gentoo-sources-2.4.20-r5/DEPEND

beetle_b gentoo-sources-2.4.20-r5 # emerge --oneshot -a gentoo-sources

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-kernel/gentoo-sources-2.4.28-r5

Do you want me to merge these packages? [Yes/No] no

Quitting.

_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun Feb 06, 2005 9:40 am    Post subject: Reply with quote

patwu wrote:
can anybody explain?


Of course!
Once your system is up to date using -dc will print out difference between packages installed and correspondent packages in portage in term of dependencies.


I introduced this because i found so many times differences between my installed packages and portage ones.
Mainly they are bug fixes... but not always.


Using -dc you could recompile all packages and make your gentoo "really" up to date. (in the sense that your dependencies tree is identical to the portage one)
(could be useless! you are warned!)

To be honest this was a function born to analyze strange behavior of portage (which weren't strange) during development.


Bye ;)


@Beatle B.: do you still use old 2.4 tree? If no... it's better to remove it!
Otherwise it's clear that your /var/db/pkg is corrupted. (you miss an important file)
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Sun Feb 06, 2005 4:12 pm    Post subject: Reply with quote

One thing:
When evaluating kernel sources, it would be real nice if the program would not list the sources the /usr/src/linux symlink is pointed to. You know, most people still need those.
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Back to top
View user's profile Send private message
tgnb
Apprentice
Apprentice


Joined: 16 Apr 2002
Posts: 208
Location: New York, NY

PostPosted: Sun Feb 06, 2005 4:22 pm    Post subject: Reply with quote

Great tool thanks for making it :)
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Mon Feb 07, 2005 8:31 am    Post subject: Reply with quote

kamagurka wrote:
One thing:
When evaluating kernel sources, it would be real nice if the program would not list the sources the /usr/src/linux symlink is pointed to. You know, most people still need those.


yes, i know...
Kernel trees are particular.

However... unclepine is not for "the noob user"
Normaly anyone knows which tree he is "working" on :)

Being a "not modifying tool" i think this is not neccessary.
Thank you anyway for suggestion.
Bye
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Mon Feb 07, 2005 9:21 am    Post subject: Reply with quote

xchris wrote:
kamagurka wrote:
One thing:
When evaluating kernel sources, it would be real nice if the program would not list the sources the /usr/src/linux symlink is pointed to. You know, most people still need those.


yes, i know...
Kernel trees are particular.

However... unclepine is not for "the noob user"
Normaly anyone knows which tree he is "working" on :)

Being a "not modifying tool" i think this is not neccessary.
Thank you anyway for suggestion.
Bye


Well, having the needed kernel sources show up in the output makes it really tedious when you want to clean your system using "|xargs emerge -C", you know what I mean?
BTW, this is a really great script. 'Azz!
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Mon Feb 07, 2005 9:53 am    Post subject: Reply with quote

if your kernel is in System profile or world file it will never be passed using -x option!

Try!
Code:

unclepine -u -x > inspect


bye
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Mon Feb 07, 2005 10:47 am    Post subject: Reply with quote

Which leads me to my next request:
It'd be cool if you could make -dc --exec compatible.
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Mon Feb 07, 2005 11:12 am    Post subject: Reply with quote

as i told before... there is no real need for recompiling every package shown by -dc.

However... it could be done...
maybe next release :)
bye

EDIT:with a a little bit of "grep" you could realize it....
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Mon Feb 07, 2005 11:50 am    Post subject: Reply with quote

xchris wrote:
EDIT:with a a little bit of "grep" you could realize it....

Yea, that's the way I did it...
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Mon Feb 07, 2005 11:54 am    Post subject: Reply with quote

well..
however i already did this modify.
in beta14 it will be present together with tree-view function.

It will be a dependencies tree of selectable N depth
bye
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 524

PostPosted: Wed Feb 09, 2005 3:33 am    Post subject: Reply with quote

Quote:
@Beatle B.: do you still use old 2.4 tree? If no... it's better to remove it!
Otherwise it's clear that your /var/db/pkg is corrupted. (you miss an important file)


I am using a 2.4.x kernel.

Yes, it's corrupted, but how do I fix it? Other people simply re-emerged the offending package, but I can't do that here.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Wed Feb 09, 2005 9:21 am    Post subject: Reply with quote

i prepared some files for you. (few kb)
They come from a 2.4.20-r31 kernel..... but they're ok for you.

execute this:

Code:

cd /var/db/pkg/sys-kernel/gentoo-sources-2.4.20-r5/
wget http://xchris.altervista.org/kernel.tar.gz
tar zxvf kernel.tar.gz
rm kernel.tar.gz



it will replace *DEPEND IUSE USE PROVIDE files!
let me know when you've done.
Bye
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
reyneke
Guru
Guru


Joined: 09 Jan 2004
Posts: 542
Location: Augsburg / Germany

PostPosted: Thu Feb 10, 2005 4:40 pm    Post subject: Hmm ... Reply with quote

Code:

unclepine -db gconf -x | xargs unlepine -du

returns me the following
Quote:

!!! Deep Unmerge doesn't accept version on package!


This was the right way to check which dependent packages could be removed after unmerging the first, wasn't it?
I'm experiencing this since the last release - a bug?

Regards,
reyneke.
_________________
I like to wait to see how things turn out
If You Apply Some Pressure
WHAT HAPPENS when you lose EVERYTHING?
You start again.
You start all over again.

Maximo Park - Apply Some Pressure
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Fri Feb 11, 2005 8:15 am    Post subject: Reply with quote

no...
it's not a bug.

It was a bug!


deepunmerge has a bug if used with version!
So i removed this functionality.


Why?
Simply because deepunmerge works like this:
-unlinked routine
-fake remove of entries from world file
-unlinked routine
-diff

So...working with world file... versions does no sense!


In the past unclepine worked with a recursive routine but i removed it because of circular dependencies,very difficult to remove.

So.. you could pipe everithing to a file and with a little bit of "sed" you can remove versions...


Sorry for inconvenient!
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 524

PostPosted: Fri Feb 11, 2005 5:27 pm    Post subject: Reply with quote

Thanks for the kernel files.

I've now updated possibly over 20 packages, all giving similar errors. A closer look indicates that all these packages were installed around May 23, 2003 - around the time I installed Gentoo on my system.

Anyway, I'm stuck here:

Quote:

!!! Critical Error
!!! You miss this file : /var/db/pkg/app-doc/qt-docs-3.1.2/DEPEND


Apparently, the package no longer exists in portage.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Fri Feb 11, 2005 9:52 pm    Post subject: Reply with quote

just "touch" it...
as it's only doc..

bye
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Thu Feb 17, 2005 4:08 pm    Post subject: Reply with quote

new beta14

-launch it with -v (whichever function) and it will print out inherited useflags not setted in make.conf
-added -dc -x compatibility
-added tree-view function

Code:

unclepine -t2 mplayer



will print out and optimized tree of level 2
why optimized?
It will print dependencies only at the best level (read upper... so you can gather more info)

using -t7 it will be too much verbose ;)

bye
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Mon Feb 28, 2005 10:17 am    Post subject: Reply with quote

beta15 out - bug fix for cascading profiles.
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
kynx
n00b
n00b


Joined: 13 Dec 2004
Posts: 34

PostPosted: Thu Mar 10, 2005 4:47 pm    Post subject: Reply with quote

This was very handy for hoovering out all gnome-base/gnome deps from my world file after I did a stoopid. But I'm wondering about all the other stuff...

What's the actual advantage to having unclepine -sw come up totally clean? It just seems a little odd to take something like apache out of my world file just because mod_php already has it as a dependency for it. Or am I totally missing the point?

Thx,

Matt
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Thu Mar 10, 2005 5:12 pm    Post subject: Reply with quote

kynx wrote:
What's the actual advantage to having unclepine -sw come up totally clean? It just seems a little odd to take something like apache out of my world file just because mod_php already has it as a dependency for it. Or am I totally missing the point?



you do not need to clean -sw results.

-sw just gives you an idea of which pkgs depend from others.Nothing more...

The final decision it's up to you.

II this case i would leave apache in world file!

-sw gives you only a "snapshot" of your situation.

If you have other question don't hesitate!
Bye :)
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Sun Mar 13, 2005 12:53 pm    Post subject: Reply with quote

beta16 out

added --check-new or -cn

to see if your Unclepine is updated.

Thanks to everyone who tries Uncle Pine :)

Bye


edit:

if u have an old version with beta16 you could do:

Code:

unclepine -cn -x > download
. download


bye
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 4 of 9

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum