Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can i check my worldfile for possible porting problems?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Tue Jul 26, 2005 8:17 pm    Post subject: can i check my worldfile for possible porting problems? Reply with quote

hi,
i have gentoo linux running on a i686 maschine and i am very satisfied with it
now i got a alpha maschine :D (i am very proud)
and would like to know if it is possible to just take my worldfile and check it for packages that are currently installed and will not be available on the new platform
IMO this would be good to know
after searching on google and some other resources and not finding anything about that i am now here and hope somebody can help me
help is kindly requested
thanks in advance and kind regards
alex
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Tue Jul 26, 2005 10:44 pm    Post subject: Reply with quote

i believe i already found a bit out myself
never thought the beginning would be so easy
of course the information needed is in the ebuilds!
here is my idea:
just make a little shellscript (or since portage is python: lets make a little python script)
make a loop
take each line of /var/lib/portage/world
e.g. sys-fs/jfsutils ( <-- and just this one where i had a look does not work on the alpha. DAMN!!!)
look in /usr/portage/sys-fs/jfsutils/jfsutils*.ebuild in the line that starts with KEYWORDS for the the arch you want to port your machine to
lets say: alpha
we are happy when we find the keyword alpha and we should not forget about ~alpha
the output should be just like when trying to emerge an masked package


i may be wrong, but i believe this would be a useful addition to portage unless such a handy tool already exists and i am just to dumb to find it
wow, that would be a shame :oops:
if this does not exist i believe it should not be difficult to write in case that one has experience in python and portage hacking...
Back to top
View user's profile Send private message
brendaniabbatis
n00b
n00b


Joined: 25 Nov 2003
Posts: 54
Location: Sacramento, CA, USA

PostPosted: Wed Sep 14, 2005 5:07 pm    Post subject: Reply with quote

Hi

Actually it's really simple. Assuming you've copied your old world file to ./oldworldfile:
Code:
emerge -pv $(<oldworldfile)


I used to make lists of packages and emerge them this way. This reads the file and puts all the lines onto the command line, so the -pv switch will tell you whether the packages can be emerged, like you say.
Back to top
View user's profile Send private message
brendaniabbatis
n00b
n00b


Joined: 25 Nov 2003
Posts: 54
Location: Sacramento, CA, USA

PostPosted: Fri Sep 16, 2005 5:21 pm    Post subject: Reply with quote

Testing for different keywords is easy too, without any special scripts.

Code:
ACCEPT_KEYWORDS="alpha" emerge -pv $(<oldworldfile)
ACCEPT_KEYWORDS="~alpha" emerge -pv $(<oldworldfile)


And since you're just (-p) pretending to emerge, it could even be done on the old system if you add the '-e' switch (to pretend that nothing has been installed and account for dependencies not listed in the world file.) Although I'd feel better about doing it on the alpha one myself.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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