Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 397581

Summary: sys-power/acpi_call FEATURES=userpriv - error: could not lock config file ./config: Permission denied
Product: Gentoo Linux Reporter: Gordon <ghrueff>
Component: [OLD] UnspecifiedAssignee: Maxim Koltsov (RETIRED) <maksbotan>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The combined output of emerge {-pqv,--info} sys-power/acpi_call and the build.log.

Description Gordon 2012-01-04 02:47:44 UTC
Created attachment 297865 [details]
The combined output of emerge {-pqv,--info} sys-power/acpi_call and the build.log.

I have FEATURES="userpriv" set in make.conf.  With this setting, emerge of sys-power/acpi_call-9999 fails with a red bulleted call stack.  The command following emerge command succeeds.

sudo FEATURES="-userpriv" emerge -av sys-power/acpi_call
Comment 1 Gordon 2012-01-04 02:49:59 UTC
Attachment 297865 [details] contains emerge --info, emerge -pqv, and build.log.
Comment 2 Maxim Koltsov (RETIRED) gentoo-dev 2012-01-05 11:21:57 UTC
It's somehow git issue. Can you try to remove git dir (${DISTDIR}/*git-src/acpi_call or something like this) and try again?
Comment 3 Gordon 2012-01-13 20:46:36 UTC
That fixed the problem.  In /usr/portage/distfiles there existed the following directory.

drwxrwxr-x 2 root    root     4.0K Jan 13 13:35 egit-src

I deleted that directory and was able to emerge acpi_call with userpriv enabled.  This recreated that directory with a different owner.

drwxrwxr-x 3 portage portage  4.0K Jan 13 13:37 egit-src

I then emerged acpi_call again just to make sure that the problem would not return.  This second emerge also worked fine.  I unfortunately do not know what originally created the directory with root:root owner.
Comment 4 Maxim Koltsov (RETIRED) gentoo-dev 2012-01-13 20:48:52 UTC
Nice. Then we can close this as invalid.