Summary: | portage-2.2.1: /usr/lib/portage/bin/install.py in painfully slow (FEATURES=xattr) | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Andrew Savchenko <bircoph> |
Component: | Core - Ebuild Support | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED DUPLICATE | ||
Severity: | critical | CC: | alexander, bircoph, bugs+gentoo, eugene.shalygin, hydrapolic, Martin.vGagern, odi, polynomial-c |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 465000 | ||
Bug Blocks: | |||
Attachments: | emerge --info |
Description
Andrew Savchenko
![]() Created attachment 356822 [details]
emerge --info
You might consider removing xattr from FEATURES, in order to bypass the install wrapper. (In reply to Andrew Savchenko from comment #0) > P.S. I looked in the code of install.py, dohtml and xattr/install helpers. I > am shocked. Why to use all that code garbage instead of plain find -iregex > ... -execdir .. \+ ? Permissions may be fixed later with chmod, links/xattrs > may be preserved via cp -a, if some files/dirs must be processed specially, > find can use exclusion/inclusion lists... For internal helpers (like dohtml), it would be possible to use alternatives to the install command, but the install wrapper would still be useful for things like ebuild makefiles that call the install command directly. (In reply to Zac Medico from comment #2) > You might consider removing xattr from FEATURES, in order to bypass the > install wrapper. Thanks a lot! This saved my day. Optimize dohtml: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=3f67cb453ee1b74894c230459b43855db7fcc410 *** Bug 488368 has been marked as a duplicate of this bug. *** *** Bug 490170 has been marked as a duplicate of this bug. *** FEATURES=-xattr sounds like a suitable workaround, but in the long run a proper solution would be preferred. One thing that might help would be byte-compiling that python file. Another idea might be using bash instead of python, despite what SpanKY wrote in bug #465000 comment #11. A third might be a pre-compiled binary. I guess portage itself doesn't compile anything, does it? Nevertheless, it might depend on a patched version of install, which comes as a separate package and gets installed to some custom directory outside PATH. Work on optimizing is being discussed in bug #465000. We're almost done and testing will be appreciated :) *** This bug has been marked as a duplicate of bug 465000 *** *** Bug 524706 has been marked as a duplicate of this bug. *** |