Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6474 - User Mode emerge
Summary: User Mode emerge
Status: RESOLVED DUPLICATE of bug 87877
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 11040 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-14 13:59 UTC by Shahar Goldin
Modified: 2011-10-30 22:36 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shahar Goldin 2002-08-14 13:59:23 UTC
many small programs do not need to be built for the whole system. There could be
a user-emerge which would build a package into the users homedir
Comment 1 John-David Childs 2002-12-03 16:44:19 UTC
This might be better (more globally) solved by allowing portage to override the
FHS conventions and define --prefix (which I'm hoping has already been submitted
to Bugzilla or I'll be writing one ;-)
Comment 2 SpanKY gentoo-dev 2003-01-08 14:04:23 UTC
*** Bug 11040 has been marked as a duplicate of this bug. ***
Comment 3 Sean E Russell 2003-02-06 21:38:04 UTC
I've given some thought to this as well. 
 
A *really* common mistake of people building packaging systems for Linux (and, for 
different reasons, for Unix) is ignoring the fact that there are people running 
multi-user boxes.  On systems like this, having the ability for users to install 
packages in their home directories is, well, a requirement.  Normally, non-admin folks 
do the tar/configure --prefix/make thing, but they then lose out on all of the package 
management aspects of really excellent package management systems like Portage. 
 
In my mind, user-mode Portage would work something like this: 
 
1) check for permissions to do system-wide install.  If no (or if a command-line 
option was given) install in user mode. 
2) If in user mode, build a mini-Portage installation in the user's home directory. 
3) Merge the global, system Portage DB with the user-mode DB to resolve 
dependancies 
4) Install relative to the user's dir. 
 
There are some other issues to consider, but I think they're more incremental 
improvements than requirements for a first shot. For example, if/when a newer 
version of a package is installed globally, what do you do with the user-installed 
version?  Similarly, what about when this happens to dependancies?  Still, I believe 
that these can be resolved with POLS; for example, when the user does an emerge 
-pu world, if Portage detects a newer global version, it simply uninstalls the 
user-mode version. 
 
The biggest problem would be resolving how changes to the global system will affect 
user-mode installations.  However, a user-mode Portage with problems like this 
would be better than no user-mode Portage at all. 
 
Thanks for listening. 
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-04-27 14:41:51 UTC
Is this a dupe of pathspec...or..would you consider it seperate?  Definately would be good to link to bug 87877.

http://bugs.gentoo.org/show_bug.cgi?id=87877
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-05-24 06:55:53 UTC
Can go as a dupe. Nothing much happening here and the other bug covers it all. 

*** This bug has been marked as a duplicate of 87877 ***