Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19048 - emerge -fp requires root access
Summary: emerge -fp requires root access
Status: VERIFIED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High minor
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-09 13:07 UTC by Björn Lindström
Modified: 2011-10-30 22:21 UTC (History)
1 user (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 Björn Lindström 2003-04-09 13:07:46 UTC
One might think you would not have to be root to extract a list of files that
will be downloaded in case of an emerge.

~ % emerge -fpu world
Calculating world dependencies ...done!
!!! File system problem. (ReadOnly? Out of space?)
!!! Perhaps: rm -Rf /var/tmp/portage
!!! [Errno 1] Operation not permitted: '/var/tmp/portage'

!!! Fetch for /usr/portage/app-emulation/bochs/bochs-1.4.ebuild failed,
continuing...

!!! File system problem. (ReadOnly? Out of space?)
!!! Perhaps: rm -Rf /var/tmp/portage
!!! [Errno 1] Operation not permitted: '/var/tmp/portage'
1~ %
Comment 1 Stuart Bouyer 2003-04-10 10:54:26 UTC
The same problem occurs for "emerge -up system" and "emerge -up world" for me as non-root. I don't always want to be root just to see if there are any ebuilds that need updating.

I'm running portage-2.0.47-r10 with ACCEPT_KEYWORDS="~x86", I can't remeber exactly which version of portage started these errors but they won't go away.

Here is the output of "emerge -up system"

stu@gentoo-bear stu $ emerge -up system

These are the packages that I would merge, in order:

Calculating system dependencies \
aux_get(): (3) Error in sys-libs/cracklib-2.7-r6 ebuild.
               Check for syntax error or corruption in the ebuild. (--debug)
                                                                               ...done!

AS root I don't get the error message, running "emerge -up system --debug" as suggested gives

stu@gentoo-bear stu $ emerge -up system --debug

These are the packages that I would merge, in order:

Calculating system dependencies \
/usr/sbin/ebuild.sh: line 1137: /var/cache/edb/dep//sys-libs/cracklib-2.7-r6: Permiss     
ion denied
/usr/sbin/ebuild.sh: line 1138: /var/cache/edb/dep//sys-libs/cracklib-2.7-r6: Permiss     
ion denied
/usr/sbin/ebuild.sh: line 1139: /var/cache/edb/dep//sys-libs/cracklib-2.7-r6: Permiss     
ion denied
............. continues until
/usr/sbin/ebuild.sh: line 1147: /var/cache/edb/dep//sys-libs/cracklib-2.7-r6: Permiss     
ion denied
/usr/sbin/ebuild.sh: line 1148: /var/cache/edb/dep//sys-libs/cracklib-2.7-r6: Permiss     
ion denied
/usr/sbin/ebuild.sh: line 1149: /var/cache/edb/dep//sys-libs/cracklib-2.7-r6: Permiss     
ion denied

aux_get(): (3) Error in sys-libs/cracklib-2.7-r6 ebuild.
               Check for syntax error or corruption in the ebuild. (--debug)
                                                                                    .     
..done!

looking at /usr/sbin/ebuild.sh it appears to be creating/updating the dependancy list for sys-libs/cracklib-2.7-r6, however "ls -l /var/cache/edb/dep" shows all directories have drwsrwsr-x root portage, and the files in /var/cache/edb/dep/sys-libs are all -rw-rw-r-- root portage, meaning that my normal user account can't write to these files - note these perms are set in /usr/sbin/ebuild.sh.

Also adding userpriv into FEATURES doesn't change the results (or lack of them actually ;) ).

Thanks

StuBear
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-04-12 19:00:53 UTC
You have to be in the portage group.
Please read the loud beeping message that happens when you emerge portage.
Comment 3 Stuart Bouyer 2003-04-12 21:18:40 UTC
Thanks for the info.

Not to be rude, but I didn't emerge portage, so there were no loud beeping messages to READ!
This is a new system from the stage3-x86-1.4_pre20030327.tar.bz2 tarball. It already came with portage-2.0.47-r10.
Also there is no mention of "portage group" on http://www.gentoo.org/doc/en/gentoo-x86-install.xml or http://www.gentoo.org/doc/en/faq.xml, can this be added to one of these?? As far as I can see the only palce that says anything about the portage group is that message.

Looking at the ebuild for portage I can see the notice - wouldn't this be better as ewarn rather than einfo so that it stands out.

p.s. My machine doesn't "beep" as I haven't connected my pc-speaker and I use "visible-bell" for all my terms
Comment 4 Karl Clements 2003-04-15 03:53:56 UTC
Shouldn't one as anon root user be able to emerge -f package to download the source into the current dir..or perhaps a different flag?
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2003-04-19 00:09:28 UTC
This is corrected by telling the user that they aren't in the right
groups. portage-2.0.48 will have it.