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

Bug 210575

Summary: doins -r is painfully slow
Product: Portage Development Reporter: Benedikt Böhm (RETIRED) <hollow>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: enhancement CC: jakub, jer
Priority: Highest Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 835380, 216231    
Attachments: patch to remove recursive doins call
faster doins that should work with spaces

Description Benedikt Böhm (RETIRED) gentoo-dev 2008-02-18 10:59:41 UTC
the current approach for doins -r is painfully slow and should be replaced with cp -R, find|xargs cp, or something similar ...
Comment 1 SpanKY gentoo-dev 2008-02-18 14:53:38 UTC
propose a patch that actually works then ... your suggestions dont as subdirs will break with find|xargs cp, and both will break by not respecting $INSOPTIONS
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2008-02-18 16:31:09 UTC
Created attachment 143885 [details, diff]
patch to remove recursive doins call

this reduces `doins -r` time by about 6x on my machine
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2008-02-18 16:33:06 UTC
oops, it doesn't handle symlink recursivly, needs another for f in $(find ..) ..
Comment 4 SpanKY gentoo-dev 2008-02-18 23:46:58 UTC
i'm pretty sure that's broken with whitespace in the paths, but it's a good first crack
Comment 5 Bo Ørsted Andresen (RETIRED) gentoo-dev 2008-02-18 23:51:08 UTC
(In reply to comment #4)
> i'm pretty sure that's broken with whitespace in the paths, [...]

It is. `for f in $(find -type f)` breaks it.
Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2008-02-19 07:48:51 UTC
Created attachment 143938 [details, diff]
faster doins that should work with spaces
Comment 7 SpanKY gentoo-dev 2008-02-19 17:21:42 UTC
while you're in there, you should convert basename/dirname to the bash equivalents

errors also need to be passed back up (from `install` and `cp`)
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-03-20 18:03:04 UTC
Fixed in r9485 and released in sys-apps/portage-2.2_pre5.

This bug should be RESOLVED FIXED and block bug #210077.
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2008-03-20 18:14:58 UTC
This is supposed to be fixed in portage-2.2_pre5 or earlier.
Comment 10 Marius Mauch (RETIRED) gentoo-dev 2008-03-20 18:15:44 UTC
This is supposed to be fixed in portage-2.2_pre5 or earlier.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2010-08-28 04:40:58 UTC
(In reply to comment #8)
> This bug should be RESOLVED FIXED and block bug #210077.

It really should. "Painfully" doesn't quite catch the feeling you get
 while
  the
   parade
    of
     tentacled
      minutes
       crawls
        by
         on
          its
           millions
            of
             spidery
              legs.