Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 470992 - bootstrap hang on linux-headers while in script unprivileged/chown
Summary: bootstrap hang on linux-headers while in script unprivileged/chown
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 484436
  Show dependency tree
 
Reported: 2013-05-22 11:36 UTC by Mario Ackerl
Modified: 2013-09-10 14:34 UTC (History)
2 users (show)

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


Attachments
chown-patch (chown.diff,1.32 KB, patch)
2013-05-22 11:36 UTC, Mario Ackerl
Details | Diff
chown.patch (chown.patch,585 bytes, patch)
2013-09-09 08:25 UTC, Benda Xu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Ackerl 2013-05-22 11:36:24 UTC
Created attachment 348904 [details, diff]
chown-patch

I am encountering hangups while bootstrapping Gentoo-Prefix on Gentoo-Linux x86_32. 
When I looked at the running processes, I saw that./usr/lib/portage/bin/ebuild-helpers/unprivileged/chown hangs. 

Deeging deeper I realized, that the "Reverse expansion of ${D} and ${EPREFIX}, for readability" causes the problem - it seems that the output is too large for the variable output - it can hold the content, but the expansion hangs up.

A possible solution could be to store the output in a tmpfile and do the replacements with sed. (proposal atted)
Comment 1 Fabian Groffen gentoo-dev 2013-05-28 05:34:49 UTC
odd.... I assume there is a lot in ${msg} at this point?
Comment 2 Palmer Dabbelt 2013-05-28 06:08:30 UTC
I was installing Gentoo Prefix on my RHEL6 amd64 box today and ran into the same problem.  I applied the above patch manually (it conflicts with some EPREFIX patches) and it fixed by my problem.
Comment 3 Marko Vendelin 2013-06-18 13:54:04 UTC
Had the same issue with ROCKS 6.1 amd64. After manually applying the patch, chown problem disappeared.
Comment 4 Long Shao 2013-06-19 02:37:24 UTC
Had the same issue with RED HAT x86. After manually applying the patch, chown problem disappeared.
Comment 5 jamesf 2013-07-31 09:04:04 UTC
had the same problem,
the error messages were caused by lots of "operation not permitted" error 
since i was installing using regular user and the command was "chown -R 0:0".

bash is really slow expanding ${str//from/to} when str is long.
Comment 6 Fabian Groffen gentoo-dev 2013-08-01 07:20:47 UTC
(In reply to jamesf from comment #5)
> bash is really slow expanding ${str//from/to} when str is long.

this observation I can share, it seems exponential
Comment 7 Benda Xu gentoo-dev 2013-09-09 08:25:53 UTC
Created attachment 358352 [details, diff]
chown.patch

trunc error message after a threshold.
Comment 8 Benda Xu gentoo-dev 2013-09-09 08:27:29 UTC
Fabian, would you like to commit it to prefix-portage? It's biting us hard.

I could help co-maintain the prefix branch of portage if you'd like to.
Comment 9 Fabian Groffen gentoo-dev 2013-09-09 18:55:50 UTC
@Zac: what do you think about Benda's patch?  I think the problem should be in mainline too.
Comment 11 Zac Medico gentoo-dev 2013-09-10 00:43:33 UTC
This is fixed in 2.2.2.
Comment 12 Benda Xu gentoo-dev 2013-09-10 14:34:29 UTC
Thanks, Fabian and Zac.