View previous topic :: View next topic |
Author |
Message |
GentooSamurai n00b
Joined: 06 Jun 2004 Posts: 42 Location: Colorado,USA
|
Posted: Thu Sep 09, 2004 7:39 am Post subject: |
|
|
hepta_sean,
Thank you very much for your help I am still a gentoo noob. Your post has been helpful, I located the dep file and then moved it to /usr/local/bin I then followed the directions in this post https://forums.gentoo.org/viewtopic.php?t=174371&highlight=pruneworld
but when I run pruneworld -d, I still get commnd not found even using tab
sorry for my total noobness |
|
Back to top |
|
|
hepta_sean Apprentice
Joined: 27 Apr 2004 Posts: 246 Location: Berlin, Germany
|
Posted: Thu Sep 09, 2004 8:51 am Post subject: |
|
|
torne wrote: | My package.use actually said imlib2 -gtk, not -gtk imlib2. This doesn't make any difference to portage, but it seems to confuse dep's handling of nested dependencies Putting -gtk first corrects the dep output, so there's a bug in dep somewhere with that. |
O.K., that one I did not test.
I'll see if I can find it, and keep the thread informed.
xante wrote: | This may be a redundant question, as I have not read through the whole topic, but 12 pages is quite a bit of reading for a 20 second answer. |
We need something like a How-to or FAQ for this. Volunteers?
xante wrote: | I was just wondering how you would specify to keep an older version...as I am using gentoo-dev-sources-2.6.7-r11and wish to upgrade to gentoo-dev-sources-2.6.8-r3 but still keep the older version |
I don't know, if additionally specifying something like "=sys-kernel/gentoo-dev-sources-2.6.7-r11" in the world file would help. I think, it should not count as an redundancy during pruneworld, because the dependencies are on the newest version. And it should prevent the depclean, but I may be wrong.
And, if you just want to keep the old kernel for safety reasons, you will most likely not recompile it, so you can let the sources be unmerged and still keep the kernel and its modules, since they are not managed by portage.
O.K., that was misleading. If you called it dep now, you, of course, also have to run it as dep, not pruneworld:
If that also fails, please just copy and paste the call and the error from the shell. Normally, bash also says, which command it can't find.
GentooSamurai wrote: | sorry for my total noobness |
No need to be sorry. We all started as noobs, really. |
|
Back to top |
|
|
manywele l33t
Joined: 12 Jul 2003 Posts: 739 Location: Inside
|
Posted: Thu Sep 09, 2004 9:02 am Post subject: |
|
|
Quote: |
I don't know, if additionally specifying something like "=sys-kernel/gentoo-dev-sources-2.6.7-r11" in the world file would help. I think, it should not count as an redundancy during pruneworld, because the dependencies are on the newest version. And it should prevent the depclean, but I may be wrong. |
I just used =sys-devel/gcc-3.3.4-r1 in world to keep dep from removing it and I can verify it works just fine with dep -s and dep -w. |
|
Back to top |
|
|
woZa Guru
Joined: 18 Nov 2003 Posts: 340 Location: The Steel City - UK
|
Posted: Tue Sep 14, 2004 3:44 pm Post subject: |
|
|
Having a few issues here - v 0.3.07 'Chocolate Salty Balls'
Code: | !!!REDUNDANT ENTRY!!! app-dicts/aspell-en depended on by:
app-editors/gedit-2.6.2 spell? virtual/aspell-dict
app-text/enchant-1.1.3 virtual/aspell-dict
!!!REDUNDANT ENTRY!!! app-editors/nano depended on by:
SYSTEM PROFILE *virtual/editor
!!!REDUNDANT ENTRY!!! media-video/ati-drivers depended on by:
games-puzzle/neverball-1.3.7 virtual/opengl
media-libs/libsdl-1.2.7-r2 opengl? virtual/opengl
media-libs/smpeg-0.4.4-r4 opengl? virtual/opengl
x11-libs/fox-1.2.6 opengl? virtual/opengl
x11-libs/gtkglarea-1.2.3-r1 virtual/opengl
x11-libs/wxGTK-2.4.2-r2 opengl? virtual/opengl
!!!REDUNDANT ENTRY!!! net-misc/openssh depended on by:
SYSTEM PROFILE *virtual/ssh
!!!REDUNDANT ENTRY!!! sys-kernel/gentoo-dev-sources depended on by:
media-libs/alsa-lib-1.0.5-r3 virtual/alsa
sys-apps/acpid-1.0.2-r2 virtual/linux-sources |
So I let it prune these entries and run
Code: | >>> These are the packages that I would unmerge:
<edit>
net-misc/openssh
selected: 3.8.1_p1-r1
protected: none
omitted: none
app-dicts/aspell-en
selected: 0.51.1
protected: none
omitted: none
sys-kernel/gentoo-dev-sources
selected: 2.6.8-r3
protected: none
omitted: none
media-video/ati-drivers
selected: 3.9.0-r1
protected: none
omitted: none
app-editors/nano
selected: 1.3.4
protected: none
omitted: none
<edit> |
????? Why does it want to unmerge these if they are depended on by other packages?
Code: | emerge -av depclean |
doesn't pick any of these packages for removal.
Any ideas why this is happening?
Thanks _________________ A few months struggling with gentoo is better than a lifetime struggling with windoze! |
|
Back to top |
|
|
chrisstankevitz Guru
Joined: 14 Dec 2003 Posts: 472 Location: Santa Barbara, CA, USA
|
Posted: Thu Sep 16, 2004 4:34 pm Post subject: |
|
|
dep's pruneworld wants my linux-headers out of the world file (redundant with virtuals)
When I remove it from world, dep's depclean wants to unmerge liinux-headers
What to do?
(same problem with the kernel sources, ghostscript, vim, and a few others)
Thanks so much!
Chris |
|
Back to top |
|
|
Pseud Apprentice
Joined: 19 Mar 2004 Posts: 273 Location: Bangalore, India
|
Posted: Thu Sep 16, 2004 9:29 pm Post subject: |
|
|
woZa and chrisstankevitz: Are you both using the latest version of dep? (The modified one by hepta_sean) _________________ eschew obfuscation |
|
Back to top |
|
|
chrisstankevitz Guru
Joined: 14 Dec 2003 Posts: 472 Location: Santa Barbara, CA, USA
|
Posted: Thu Sep 16, 2004 9:35 pm Post subject: |
|
|
Pseud wrote: | woZa and chrisstankevitz: Are you both using the latest version of dep? (The modified one by hepta_sean) |
No. I was using this one: http://home.jesus.ox.ac.uk/~ecatmur/my-bin/dep (chocolate salty balls).
Lemme try to find the modified one by hepta_sean... |
|
Back to top |
|
|
chrisstankevitz Guru
Joined: 14 Dec 2003 Posts: 472 Location: Santa Barbara, CA, USA
|
|
Back to top |
|
|
neenee Veteran
Joined: 20 Jul 2003 Posts: 1786
|
Posted: Tue Sep 21, 2004 11:37 am Post subject: |
|
|
hm.. i am using dep-hepta, and notice something odd:
when i run dep -w, various packages are listed which are not installed,
such as frozen-bubble, epiphany, xmule and reiserfsprogs.
i had all these packages installed one time or another, but no longer.
i wonder - why are they shown? |
|
Back to top |
|
|
hepta_sean Apprentice
Joined: 27 Apr 2004 Posts: 246 Location: Berlin, Germany
|
Posted: Tue Sep 21, 2004 1:16 pm Post subject: |
|
|
neenee wrote: | hm.. i am using dep-hepta, and notice something odd:
when i run dep -w, various packages are listed which are not installed,
such as frozen-bubble, epiphany, xmule and reiserfsprogs.
i had all these packages installed one time or another, but no longer.
i wonder - why are they shown? |
dep -w parses your world file and looks for packages depended on by others. So they are propably still in your world file. But then each emerge -uD world would try to reinstall them, do you use that?
If they are not in your world file, then could you give some example output, please?
dep -w normally outputs the packages in world in alphabetical order with some message for each redundant entry. Are these old packages put out in the list of packages being checked or in some "Redundant, because depended on by ..." list? |
|
Back to top |
|
|
woZa Guru
Joined: 18 Nov 2003 Posts: 340 Location: The Steel City - UK
|
Posted: Tue Sep 21, 2004 5:38 pm Post subject: |
|
|
Pseud wrote: | woZa and chrisstankevitz: Are you both using the latest version of dep? (The modified one by hepta_sean) |
That sorted it... Thanks Pseud _________________ A few months struggling with gentoo is better than a lifetime struggling with windoze! |
|
Back to top |
|
|
neenee Veteran
Joined: 20 Jul 2003 Posts: 1786
|
Posted: Wed Sep 22, 2004 2:04 pm Post subject: |
|
|
hepta_sean wrote: | neenee wrote: | hm.. i am using dep-hepta, and notice something odd:
when i run dep -w, various packages are listed which are not installed,
such as frozen-bubble, epiphany, xmule and reiserfsprogs.
i had all these packages installed one time or another, but no longer.
i wonder - why are they shown? |
dep -w parses your world file and looks for packages depended on by others. So they are propably still in your world file. But then each emerge -uD world would try to reinstall them, do you use that?
If they are not in your world file, then could you give some example output, please?
dep -w normally outputs the packages in world in alphabetical order with some message for each redundant entry. Are these old packages put out in the list of packages being checked or in some "Redundant, because depended on by ..." list? |
Code: | root:~> cat /var/cache/edb/world |grep frozen
root:~> dep -wp |grep frozen
games-arcade/frozen-bubble |
when i do it without grep, it just shows a list, without any redundancies; there
are more packages in that list which are no longer in my world file, nor installed -
such as 'verynice' and 'xmule'.
hm.. i just did a "grep -r "frozen" * > test" in /var/cache, and then opening that
file in nano, frozen-bubble was mentioned in some files in /var/cache/dep.
would it be looking in there? |
|
Back to top |
|
|
hepta_sean Apprentice
Joined: 27 Apr 2004 Posts: 246 Location: Berlin, Germany
|
Posted: Wed Sep 22, 2004 6:00 pm Post subject: |
|
|
neenee wrote: | Code: | root:~> cat /var/cache/edb/world |grep frozen
root:~> dep -wp |grep frozen
games-arcade/frozen-bubble |
when i do it without grep, it just shows a list, without any redundancies; there
are more packages in that list which are no longer in my world file, nor installed -
such as 'verynice' and 'xmule'.
hm.. i just did a "grep -r "frozen" * > test" in /var/cache, and then opening that
file in nano, frozen-bubble was mentioned in some files in /var/cache/dep.
would it be looking in there? |
No, no, it really should go through the world file and only through the world file. Anything else would make minimal sense for a "pruneworld".
But dep considers the new location (for portage >= 2.0.51) /var/lib/portage/world, before the old location /var/cache/edb/world. Perhaps, you have a copy of an old version of the world file there? |
|
Back to top |
|
|
neenee Veteran
Joined: 20 Jul 2003 Posts: 1786
|
Posted: Wed Sep 22, 2004 6:57 pm Post subject: |
|
|
hepta_sean wrote: | No, no, it really should go through the world file and only through the world file. Anything else would make minimal sense for a "pruneworld".
But dep considers the new location (for portage >= 2.0.51) /var/lib/portage/world, before the old location /var/cache/edb/world. Perhaps, you have a copy of an old version of the world file there? |
wow it seems i indeed have a world file there, which contains bad entries (hm.. in my
case i considered the /var/cache/edb/world the correct one).
i'll make a symlink from /var/lib/portage/world to /var/cache/edb/world.
ps. i just noticed that /var/cache/edb/world is a mess; it even has packages mentioned in
there which are not installed. would a dep -w clean those out too? (belay that - i am running
dep -w now, and i'll find out if it clears them out)
*update* it seems not to remove packages which are not installed. i'll do it by hand. |
|
Back to top |
|
|
patwu n00b
Joined: 23 Dec 2003 Posts: 23 Location: Dresden/Gemany
|
Posted: Thu Sep 23, 2004 3:44 pm Post subject: |
|
|
Hello,
I've found another issue with dep:
Code: |
thinker ~ $ qpkg -I -v splashutils
media-gfx/splashutils-0.9_pre09 *
thinker ~ $ dep splashutils
/usr/local/bin/dep: line 632: [[: 08: value too great for base (error token is "08")
/usr/local/bin/dep: line 633: [[: 08: value too great for base (error token is "08")
Error! comm_ver failed 0.9_pre07 0.9_pre08
thinker ~ $
|
Can anyone help?
pat |
|
Back to top |
|
|
hepta_sean Apprentice
Joined: 27 Apr 2004 Posts: 246 Location: Berlin, Germany
|
Posted: Thu Sep 23, 2004 6:37 pm Post subject: |
|
|
Moin Pat!
patwu wrote: | I've found another issue with dep:
Code: | thinker ~ $ qpkg -I -v splashutils
media-gfx/splashutils-0.9_pre09 *
thinker ~ $ dep splashutils
/usr/local/bin/dep: line 632: [[: 08: value too great for base (error token is "08")
/usr/local/bin/dep: line 633: [[: 08: value too great for base (error token is "08")
Error! comm_ver failed 0.9_pre07 0.9_pre08 |
Can anyone help? |
That was an easy one: bash interprets numbers with leading zeros as octal numbers, where there are no digits 8 and 9.
Ed already implemented to remove leading zeros from version numbers and revision numbers, but somehow forgot the status codes. It is fixed in dep-hepta.
If you don't want the other changes in dep-hepta (fix for the help screen, fix of some rarely used occurrence of $VER_SHPAT, very ugly hack to get virtuals working with portage-2.0.50*), then the following is the patch (just modify the lines with "-" to look like the lines with "+", somewhere around line 600 of dep):
Code: | @@ -600,14 +608,16 @@
s1_ml="${s1_mls/%_@(alpha|beta|pre|rc|p)*([[:digit:]])}"
s1_s="${s1_mls#${s1_ml}}"; s1_sc="${s1_s/%*([[:digit:]])}"
s1_scn="$((6-${#s1_sc}))"; [[ $s1_scn -ge 4 ]] && s1_scn=$((10-$s1_scn))
- s1_sn="${s1_s#${s1_sc}}"; s1_m="${s1_ml/%[[:lower:]]}"
+ s1_sn="${s1_s#${s1_sc}}"; s1_sn="${s1_sn/#+(0)}"
+ s1_m="${s1_ml/%[[:lower:]]}"
s1_l="${s1_ml#${s1_m}}"; s1_m=( ${s1_m//./ } )
s2_mls="${s2_mlsr/%-r+([[:digit:]])}"; s2_r="${s2_mlsr#${s2_mls}}"
s2_r="${s2_r/#-r*(0)}"
s2_ml="${s2_mls/%_@(alpha|beta|pre|rc|p)*([[:digit:]])}"
s2_s="${s2_mls#${s2_ml}}"; s2_sc="${s2_s/%*([[:digit:]])}"
s2_scn="$((6-${#s2_sc}))"; [[ $s2_scn -ge 4 ]] && s2_scn=$((10-$s2_scn))
- s2_sn="${s2_s#${s2_sc}}"; s2_m="${s2_ml/%[[:lower:]]}"
+ s2_sn="${s2_s#${s2_sc}}"; s2_sn="${s2_sn/#+(0)}"
+ s2_m="${s2_ml/%[[:lower:]]}"
s2_l="${s2_ml#${s2_m}}"; s2_m=( ${s2_m//./ } )
for ((i=0; i<${#s1_m[@]}; ++i)); do
[[ "${s2_m[$i]}" ]] || return 5 |
HTH and greetings to beautiful Saxony,
sean |
|
Back to top |
|
|
patwu n00b
Joined: 23 Dec 2003 Posts: 23 Location: Dresden/Gemany
|
Posted: Thu Sep 23, 2004 7:23 pm Post subject: |
|
|
Nabend sean,
thx for the quick "hack". Now it works.
hope our ways will cross again sometime and greets back to berlin
pat |
|
Back to top |
|
|
neenee Veteran
Joined: 20 Jul 2003 Posts: 1786
|
Posted: Thu Sep 23, 2004 9:20 pm Post subject: |
|
|
thanks to this script i managed to get my world file down to 50
packages, and my emerge -e world down from 350+ to about 200.
|
|
Back to top |
|
|
GentooSamurai n00b
Joined: 06 Jun 2004 Posts: 42 Location: Colorado,USA
|
Posted: Fri Sep 24, 2004 2:03 am Post subject: |
|
|
hepta_sean,
Thanks for all of your help,
I was able to install dep by doing this
I was able to get the dep script to work by doing this
1. downloading the latest version of dep .
2.I then did a cd to /usr/bin and created a new file called dep with my favorite editor.
3. I then pasted the script into the newly created "dep" file & did a chmod 755 on the new dep file
4.I then run dep- "argument" without the quotes
and it worked out great, Thanks again |
|
Back to top |
|
|
hepta_sean Apprentice
Joined: 27 Apr 2004 Posts: 246 Location: Berlin, Germany
|
Posted: Fri Sep 24, 2004 7:55 am Post subject: |
|
|
GentooSamurai wrote: | Thanks for all of your help, |
I'm glad, I could help.
Quote: | 2.I then did a cd to /usr/bin and created a new file called dep with my favorite editor. |
I would choose /usr/local/bin for things installed by hand. /usr/bin is for things installed by the system. If you're interested, you could browse the Filesystem Hierarchy Standard for an explanation, how the tree organization is supposed to be handled under Linux.
Quote: | 3. I then pasted the script into the newly created "dep" file |
Is there a special reason, why you didn't just copy or move the downloaded file with
Code: | cp <downloaded_file> /usr/local/bin/dep |
or
Code: | mv <downloaded_file> /usr/local/bin/dep |
or the GUI filemanager of your choice?
Quote: | and it worked out great |
Anyway, congratulations.
Regards, sean |
|
Back to top |
|
|
bludger Guru
Joined: 09 Apr 2003 Posts: 389
|
Posted: Fri Sep 24, 2004 1:43 pm Post subject: |
|
|
shouldn't you use /usr/local/sbin for system binaries such as this (ie. things that should only be run by root? |
|
Back to top |
|
|
GentooSamurai n00b
Joined: 06 Jun 2004 Posts: 42 Location: Colorado,USA
|
Posted: Fri Sep 24, 2004 8:29 pm Post subject: |
|
|
Thanks Guys,
Quote: | I would choose /usr/local/bin for things installed by hand. /usr/bin is for things installed by the system. If you're interested, you could browse the Filesystem Hierarchy Standard for an explanation, how the tree organization is supposed to be handled under Linux.
|
I'll give that link a look and should I put the script into /usr/local/bin or
/usr/local/sbin?
Quote: | Is there a special reason, why you didn't just copy or move the downloaded file |
no not really I was just folling the directions from the link I posted previously.
Quote: | or the GUI filemanager of your choice? |
that would have saved me some typing
Thanks again |
|
Back to top |
|
|
hepta_sean Apprentice
Joined: 27 Apr 2004 Posts: 246 Location: Berlin, Germany
|
Posted: Sat Sep 25, 2004 7:40 am Post subject: |
|
|
bludger wrote: | shouldn't you use /usr/local/sbin for system binaries such as this (ie. things that should only be run by root? |
GentooSamurai wrote: | I'll give that link a look and should I put the script into /usr/local/bin or /usr/local/sbin? |
I would argue for /usr/local/bin, because if you use it to display dependencies or reverse dependencies, you don't need to be root. So, just like emerge, which is in /usr/bin, there are cases, where you have to be root, and cases, where a normal user is sufficient.
Personally, I don't like the sbin directories, because I use sudo to execute root-only commands, and if they are in some sbin directory, they are not found in the PATH, so I need to give the full path, which s*cks a bit. (O.K., could be fixed by adding the sbins to the user PATH, but firstly I'm lazy, secondly that totally reverts the sense of these directories.) |
|
Back to top |
|
|
karnesky Apprentice
Joined: 18 Mar 2004 Posts: 218
|
Posted: Sat Sep 25, 2004 3:31 pm Post subject: |
|
|
hepta_sean wrote: | Personally, I don't like the sbin directories, because I use sudo to execute root-only commands, and if they are in some sbin directory, they are not found in the PATH, so I need to give the full path, which s*cks a bit. (O.K., could be fixed by adding the sbins to the user PATH, but firstly I'm lazy, secondly that totally reverts the sense of these directories.) | Well, at least non sudoers wouldn'thave access to the commands. I create aliases that have the names of the programs I want to run using sudo. This lets me not type sudo and also lets me put in the correct path. I suppose you could also alias sudo to change your path, run the command you gave, and then revert the path back. |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Sat Sep 25, 2004 5:55 pm Post subject: |
|
|
Sorry if this has already been brought up but
dep -wp
cat: /etc/make.profile/use.defaults: No such file or directory
app-admin/sudo
app-editors/gvim
app-editors/nedit
app-misc/mc
app-office/abiword
app-office/gnumeric
app-portage/abeni
app-portage/esearch
app-portage/ufed
app-sci/setiathome
dev-util/cvs
dev-util/splint
gnome-base/gnome
mail-client/sylpheed-claws
net-misc/rdate
net-print/foomatic
sys-apps/pciutils
sys-fs/reiserfsprogs
x11-terms/eterm
x11-terms/multi-gnome-terminal
xfce-base/xfce4
21 packages in world: 21 valid, 0 redundant;
61 packages in system;
345 packages installed: 17% in system, 6% in world, 76% deps.
Eat your hearts out
Im useing the new cascading profile where /use.defaults is up one or two directories. In my case
/etc/make.profile -> /usr/portage/profiles/default-linux/x86/2004.2/gcc34/2.6/
humm maybe 3 or 4 _________________ An A-Z Index of the Linux BASH command line |
|
Back to top |
|
|
|
|
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
|
|