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

Bug 4084

Summary: doins not recursive
Product: Portage Development Reporter: Jacob Perkins <tech>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: enhancement CC: bolke, jap1, matsuu, mholzer, usata
Priority: Highest Keywords: InVCS
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 3277, 15193    
Attachments: doins.diff
doins-recur.patch
doins.patch

Description Jacob Perkins 2002-06-24 00:04:47 UTC
the doins function in portage is not recursive.  I know I would appreciate if
there was a recursive function to copy directories.
Comment 1 Burton Samograd 2003-01-07 23:30:45 UTC
You can try the following to install all the files in a directory in your
src_install() function:

cd ${S}/<source directory>
insinto <destination directory>
doins `find -type f`

Those are back quotes (`) and not a normal quote (').  That should install all
of the files in the directory.  Take out the -type f part to install empty
directories as well.
Comment 2 SpanKY gentoo-dev 2003-07-30 16:23:22 UTC
the prob with that is that it'll clobber files of the same name and totally lose 
directory structure 
Comment 3 SpanKY gentoo-dev 2003-07-30 17:07:39 UTC
Created attachment 15253 [details, diff]
doins.diff

yeah baby here it is !
Comment 4 SpanKY gentoo-dev 2003-07-30 17:59:52 UTC
Created attachment 15256 [details, diff]
doins-recur.patch

this one makes recurision optional ...
this way we wont break previous ebuilds and we provide the option ... i know
sometimes i wanna do `dohtml` but not give it -r
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-10-10 08:20:27 UTC
please add this asap
Comment 6 Brian Harring (RETIRED) gentoo-dev 2004-04-08 19:48:36 UTC
Technically it's an enhancement, so changing the severity to reflect...
Comment 7 Bolke de Bruin 2004-09-26 14:09:27 UTC
this is a *very* old request and it is still not part of the base. Could this please be implemented.


Off-topic: I am running into some really old bugs, which are hampering progress imho. Maybe bugzilla could use some voting system a la mozilla? As it seems that developers are getting overwhelmed with the amount of bugs (that is my impression)
Comment 8 SpanKY gentoo-dev 2004-10-04 07:39:01 UTC
Created attachment 41071 [details, diff]
doins.patch

updated version to apply against cvs
Comment 9 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:47:52 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2