Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]porting .run extensions to portage???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Jerichoo
n00b
n00b


Joined: 02 Apr 2008
Posts: 63
Location: Turkey

PostPosted: Thu Dec 20, 2012 10:40 pm    Post subject: [SOLVED]porting .run extensions to portage??? Reply with quote

Hi everybody i am stuck porting .run extensions to portage.although i have read almost every document about it.Please suppose you are explaining it to 6 years old kid step by step help me?

i need to emerge and unmerge with portage with all dependencies installed/removed


Last edited by Jerichoo on Mon Dec 24, 2012 10:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21431

PostPosted: Fri Dec 21, 2012 2:28 am    Post subject: Reply with quote

For those of us who have no idea what you are talking about, could you explain what a .run extension is, why you believe it will work on Gentoo Linux, and what you have done so far?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Dec 21, 2012 3:57 am    Post subject: Reply with quote

An example is coldwar - note the unpack_makeself command.
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Fri Dec 21, 2012 11:32 am    Post subject: Reply with quote

nvidia blob is another example of .run file.

.run is a self-extracting bash script.
Back to top
View user's profile Send private message
Jerichoo
n00b
n00b


Joined: 02 Apr 2008
Posts: 63
Location: Turkey

PostPosted: Fri Dec 21, 2012 2:57 pm    Post subject: Reply with quote

i wanna install and uninstall any .run extension via emerge so that portage can install dependencies(if any) and uninstall via emerge so that it can remove all the leftovers.
Back to top
View user's profile Send private message
Jerichoo
n00b
n00b


Joined: 02 Apr 2008
Posts: 63
Location: Turkey

PostPosted: Sun Dec 23, 2012 12:38 am    Post subject: Reply with quote

up
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Sun Dec 23, 2012 12:43 am    Post subject: Reply with quote

Jerichoo,

Code:
emerge --depclean -p
is for checking for an removing leftovers.
Your ebuild should not do it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Jerichoo
n00b
n00b


Joined: 02 Apr 2008
Posts: 63
Location: Turkey

PostPosted: Sun Dec 23, 2012 8:52 pm    Post subject: Reply with quote

so by that i must understand that .run extension cannot be ported to portage but its removing leftovers can be deleted (all the removing leftovers can be deleted).right?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Sun Dec 23, 2012 10:54 pm    Post subject: Reply with quote

Jerichoo,

The process is to unpack the .run then install the bits you need, all in an ebuild.
Portage then keeps track of whats installed and what depends on it.

The problem with removing things in a ebuild is that the dependency resolver can check if things need to be added but not if they are no longer required. Thats much harder and for portage at least, its a separate function.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Jerichoo
n00b
n00b


Joined: 02 Apr 2008
Posts: 63
Location: Turkey

PostPosted: Sun Dec 23, 2012 11:46 pm    Post subject: Reply with quote

ok now i see,However even if i use uninstall script of the installed program and after "emerge --depclean -p" but still "revdep-rebuild" command complains about inconsistency should i ignore it?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Sun Dec 23, 2012 11:52 pm    Post subject: Reply with quote

Jerichoo,

No, don't ignore it. emerge --depclean will not remove things unless it can solve the entire dependency tree.
Then its safe to remove what doesn't belong.

If the uninstaller, in the .run rips uot things that upset revdep-rebuild, they need to be reinstated. I would expect that to be an error in the uninstall target of the .run file. .run files are binary too, you you can't fix it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Jerichoo
n00b
n00b


Joined: 02 Apr 2008
Posts: 63
Location: Turkey

PostPosted: Mon Dec 24, 2012 10:17 pm    Post subject: Reply with quote

ok thank you :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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