View previous topic :: View next topic |
Author |
Message |
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Feb 04, 2005 8:10 pm Post subject: |
|
|
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 |
|
|
patwu n00b
Joined: 23 Dec 2003 Posts: 23 Location: Dresden/Gemany
|
Posted: Sat Feb 05, 2005 5:56 pm Post subject: |
|
|
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 |
|
|
Beetle B. Guru
Joined: 01 Mar 2003 Posts: 524
|
Posted: Sun Feb 06, 2005 1:20 am Post subject: |
|
|
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 |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Sun Feb 06, 2005 9:40 am Post subject: |
|
|
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 |
|
|
kamagurka Veteran
Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Sun Feb 06, 2005 4:12 pm Post subject: |
|
|
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 |
|
|
tgnb Apprentice
Joined: 16 Apr 2002 Posts: 208 Location: New York, NY
|
Posted: Sun Feb 06, 2005 4:22 pm Post subject: |
|
|
Great tool thanks for making it |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Mon Feb 07, 2005 8:31 am Post subject: |
|
|
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 |
|
|
kamagurka Veteran
Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Mon Feb 07, 2005 9:21 am Post subject: |
|
|
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 |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Mon Feb 07, 2005 9:53 am Post subject: |
|
|
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 |
|
|
kamagurka Veteran
Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Mon Feb 07, 2005 10:47 am Post subject: |
|
|
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 |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Mon Feb 07, 2005 11:12 am Post subject: |
|
|
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 |
|
|
kamagurka Veteran
Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Mon Feb 07, 2005 11:50 am Post subject: |
|
|
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 |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Mon Feb 07, 2005 11:54 am Post subject: |
|
|
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 |
|
|
Beetle B. Guru
Joined: 01 Mar 2003 Posts: 524
|
Posted: Wed Feb 09, 2005 3:33 am Post subject: |
|
|
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 |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Wed Feb 09, 2005 9:21 am Post subject: |
|
|
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 |
|
|
reyneke Guru
Joined: 09 Jan 2004 Posts: 542 Location: Augsburg / Germany
|
Posted: Thu Feb 10, 2005 4:40 pm Post subject: Hmm ... |
|
|
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 |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Feb 11, 2005 8:15 am Post subject: |
|
|
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 |
|
|
Beetle B. Guru
Joined: 01 Mar 2003 Posts: 524
|
Posted: Fri Feb 11, 2005 5:27 pm Post subject: |
|
|
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 |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Feb 11, 2005 9:52 pm Post subject: |
|
|
just "touch" it...
as it's only doc..
bye _________________ while True:Gentoo() |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Thu Feb 17, 2005 4:08 pm Post subject: |
|
|
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 |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Mon Feb 28, 2005 10:17 am Post subject: |
|
|
beta15 out - bug fix for cascading profiles. _________________ while True:Gentoo() |
|
Back to top |
|
|
kynx n00b
Joined: 13 Dec 2004 Posts: 34
|
Posted: Thu Mar 10, 2005 4:47 pm Post subject: |
|
|
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 |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Thu Mar 10, 2005 5:12 pm Post subject: |
|
|
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 |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Sun Mar 13, 2005 12:53 pm Post subject: |
|
|
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 |
|
|
|