Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Support for Howto find more packages than emerge -D
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Wed May 07, 2003 2:59 pm    Post subject: Support for Howto find more packages than emerge -D Reply with quote

[MOD EDIT]

This post was split out of the original thread found here in Documentation, Tips & Tricks. The DT&T forum is only for DT&T and no support related issues. For any questions or problems regarding a DT&T thread please create a NEW thread in the appropriate forum (for this specific case that happens to be Other Things Gentoo, but for other issues it will vary) and link to the original DT&T thread.

Thanks,
BonezTheGoon
[/MOD EDIT]


ok...pardon my newbie-ness...but how do i implement such an attractive script?
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1378
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Wed May 07, 2003 4:06 pm    Post subject: Reply with quote

Garo I have a question for you in your original post in the DT&T forum you say

Garo wrote:
-if you do like the "bar" package, it is never updated because it's not in the world file and it's not a dependency of a package in the world file


I didn't think that was the case though. I was under the impression (and maybe I am showing just how green I am) that any package installed with portage was recorded in your world file regardless of whether it was explicitly requested or whether it was just a dependency related package that was installed implicitly. Like I said I was under the "impression" I've not done any research on this (yet) and I was just hoping you could clarify that point a little, maybe I am reading it wrong (or maybe I am just flat out wrong all together.) I'll look into this and see what I can find.

So I guess the question is (since I said in the first sentence that I have a question for you) are you sure that is correct? If so I have another question. Where did you get that documentation/information? I ask because clearly I need to read up on some of this stuff!

Regards,
BonezTheGoon
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Wed May 07, 2003 5:20 pm    Post subject: Re: Support for Howto find more packages than emerge -D Reply with quote

jimlynch11 wrote:
ok...pardon my newbie-ness...but how do i implement such an attractive script?


Put this script in a file (let's name it "thescript.pl")
and make it executable with the following command:
Code:
chmod +x thescript.pl

_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Wed May 07, 2003 5:48 pm    Post subject: Reply with quote

BonezTheGoon wrote:
I was under the impression (and maybe I am showing just how green I am) that any package installed with portage was recorded in your world file regardless of whether it was explicitly requested or whether it was just a dependency related package that was installed implicitly.

My script noticed that "libpng" and "java-sdk-docs" were installed and they were not in the world file (not even after doing "regenworld"), so not everything is in the world file...

BonezTheGoon wrote:
Where did you get that documentation/information?

I got a mail from a friend who told me that even if he did "emerge world --deep --update" iptables wouldn't update. He told me that he installed a frontend for iptables and removed it later, but he noticed that iptables was still there so he didn't reinstall it. So i concluded that the world file only keeps the files that you specifcly emerge and not the deps, and that "emerge --deep -u world" only updates the packages in the world file + the deps of the packages in the world file + the deps of the deps of the packages in the world file + ....
I heard somewhere else of the "epm" command that is the gentoo version of "rpm", and by doing "epm -qa", i get ALL packages on the system.
_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
Elay
n00b
n00b


Joined: 30 Mar 2003
Posts: 25

PostPosted: Wed May 07, 2003 5:54 pm    Post subject: Reply with quote

Great idea,

This script seem to have problems with the packages installed with ACCEPT_KEYWORDS="~x86".

An example:

Code:

There are 30 "forgotten" packages, here they come:

gentoo-sources-2.4.20-r3 is found, I can:
1) Unmerge it
2) Put it in the world file
   (Unless it already is in the world file (other version))
3) ignore it

bla bla ....


It would be fatal error to say unmerge kernel sources. :). There is a line sys-kernel/gentoo-sources in world file. I believe it is comparing with the non ~x86 version.

Or maybe I could not get your point.
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Wed May 07, 2003 10:07 pm    Post subject: Reply with quote

Elay wrote:
This script seem to have problems with the packages installed with ACCEPT_KEYWORDS="~x86".


You are right, i only have stable packages on my system so i didn't tought of it.
The fix is on the way...

EDIT: The fix is ready, i modified the script. Please test it and tell me if there are more bugs.
_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
Elay
n00b
n00b


Joined: 30 Mar 2003
Posts: 25

PostPosted: Thu May 08, 2003 7:44 pm    Post subject: Reply with quote

Sorry but same goes here. If you want further info I will try to help.

Code:

root # ./deepworld3.sh
Use of uninitialized value in string eq at ./deepworld3.sh line 14.
You have a stable system,
Do you also want to see the (installed) masked packages ? (y/N) :N
Searching... (This can take a while)
There are 31 "forgotten" packages, here they come:

gentoo-sources-2.4.20-r3 is found, I can:
1) Unmerge it
2) Put it in the world file
   (This has no effect if a other version of this package is in the world file)
3) ignore it

What do I have to do ? (default=3):

bla bla ...


also

Code:

./deepworld3.sh
Use of uninitialized value in string eq at ./deepworld3.sh line 14.
You have a stable system,
Do you also want to see the (installed) masked packages ? (y/N) :y
Searching... (This can take a while)
There are 31 "forgotten" packages, here they come:

gentoo-sources-2.4.20-r3 is found, I can:
1) Unmerge it
2) Put it in the world file
   (This has no effect if a other version of this package is in the world file)
3) ignore it

What do I have to do ? (default=3):

bla bla ....


hope it helps.
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Thu May 08, 2003 9:36 pm    Post subject: Reply with quote

I think i know the problem, could you post "/etc/make.conf" ? (DO NOT CHANGE ANYTHING, POST IT EXACTLY, DO NOT REMOVE ANY LINES, NOT EVEN COMMENTS)
Thanks

EDIT: I improved the reading of /etc/make.conf, so before you post your "make.conf" could you try the newest version ?
_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
Elay
n00b
n00b


Joined: 30 Mar 2003
Posts: 25

PostPosted: Fri May 09, 2003 4:57 pm    Post subject: Reply with quote

Well again sorry to say this but I tried your very last version and nothing changed. So I looked at this by myself. But,I do not know perl at all

I have hardcodedly changed the following in the script.

Code:

$arch="~x86";


Nothing changed either with a yes/no input.

Then changed
Code:

$arch="x86";

When I say y/Y the output was same before but when I say n/N the following occured:
Code:

root # ./deepworld4.sh
You have a stable system,
Do you also want to see the (installed) masked packages ? (y/N) :n
Searching... (This can take a while)
There are 7 "forgotten" packages, here they come:

aumix-2.8 is found, I can:
1) Unmerge it
2) Put it in the world file
  (This has no effect if a other version of this package is in the world file)
3) ignore it

and some other 6 packets.

Much more better output :). But I am using aumix all time.


So grepping /etc/make.conf
Code:

grep ACCEPT_KEYWORDS /etc/make.conf
# would add '~x86' to ACCEPT_KEYWORDS to enable unstable/testing packages.
#ACCEPT_KEYWORDS="~arch"


Well the problem is initialization of that variable I think.

PS: To not get a long post I did not post my /etc/make.conf. If you require anyway I will post.
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Fri May 09, 2003 6:12 pm    Post subject: Reply with quote

Ok, i found the problem. I tought that everybody un-commented the ACCEPT_KEYWORDS var in "/etc/make.conf" so that they could you use "emerge". But some people (like you) didn't do it and they can still use portage.
I fixed the script so it can handle systems that didn't set ACCEPT_KEYWORDS.
_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
Elay
n00b
n00b


Joined: 30 Mar 2003
Posts: 25

PostPosted: Fri May 09, 2003 7:06 pm    Post subject: Reply with quote

I want to use stable packages all the way. But this is somewhat a problem.

I am using an alias
alias expemerge='ACCEPT_KEYWORDS="~x86" emerge'
to get something I need.

And it is working.
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Fri May 09, 2003 7:09 pm    Post subject: Reply with quote

Quote:
I want to use stable packages all the way. But this is somewhat a problem.

I am using an alias
alias expemerge='ACCEPT_KEYWORDS="~x86" emerge'
to get something I need.

And it is working.

strange way to do things...
But now the script supports it (finally :D )
_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
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