View previous topic :: View next topic |
Author |
Message |
Jerichoo n00b
Joined: 02 Apr 2008 Posts: 63 Location: Turkey
|
Posted: Thu Dec 20, 2012 10:40 pm Post subject: [SOLVED]porting .run extensions to portage??? |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Fri Dec 21, 2012 2:28 am Post subject: |
|
|
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 |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Fri Dec 21, 2012 3:57 am Post subject: |
|
|
An example is coldwar - note the unpack_makeself command. |
|
Back to top |
|
|
_______0 Guru
Joined: 15 Oct 2012 Posts: 521
|
Posted: Fri Dec 21, 2012 11:32 am Post subject: |
|
|
nvidia blob is another example of .run file.
.run is a self-extracting bash script. |
|
Back to top |
|
|
Jerichoo n00b
Joined: 02 Apr 2008 Posts: 63 Location: Turkey
|
Posted: Fri Dec 21, 2012 2:57 pm Post subject: |
|
|
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 |
|
|
Jerichoo n00b
Joined: 02 Apr 2008 Posts: 63 Location: Turkey
|
Posted: Sun Dec 23, 2012 12:38 am Post subject: |
|
|
up |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54244 Location: 56N 3W
|
Posted: Sun Dec 23, 2012 12:43 am Post subject: |
|
|
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 |
|
|
Jerichoo n00b
Joined: 02 Apr 2008 Posts: 63 Location: Turkey
|
Posted: Sun Dec 23, 2012 8:52 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54244 Location: 56N 3W
|
Posted: Sun Dec 23, 2012 10:54 pm Post subject: |
|
|
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 |
|
|
Jerichoo n00b
Joined: 02 Apr 2008 Posts: 63 Location: Turkey
|
Posted: Sun Dec 23, 2012 11:46 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54244 Location: 56N 3W
|
Posted: Sun Dec 23, 2012 11:52 pm Post subject: |
|
|
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 |
|
|
Jerichoo n00b
Joined: 02 Apr 2008 Posts: 63 Location: Turkey
|
Posted: Mon Dec 24, 2012 10:17 pm Post subject: |
|
|
ok thank you |
|
Back to top |
|
|
|