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

Bug 96386

Summary: subversion.eclass should use svn export when creating ${S}
Product: Gentoo Linux Reporter: REdOG <bugzilla>
Component: EclassesAssignee: Akinori Hattori <hattya>
Status: RESOLVED FIXED    
Severity: enhancement CC: raybooysen
Priority: High    
Version: 2004.3   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description REdOG 2005-06-17 08:23:14 UTC
currently the subversion eclass does cp -Rf "${ESVN_STORE_DIR}/${ESVN_CO_DIR}"
"${S}"

This copies the nested .svn repository information that is not necessary for
building the package and wastes time and space.



Reproducible: Always
Steps to Reproduce:
1. use subversion.eclass to create an ebuild that gets its source from a svn
repository
2. emerge it
Actual Results:  
After the potentialy long svn co the working copy is copied to ${S} along with
the nested .svn repository information that is not necessary for building the
package . 
Wastes time and space.

Expected Results:  
(untested)
replaceing
cp -Rf "${ESVN_STORE_DIR}/${ESVN_CO_DIR}" "${S}"
with
svn export "${ESVN_STORE_DIR}/${ESVN_CO_DIR}" "${S}"
should save space and time

I did a quick time test and the results are what I expected 

cp -rf                   |svn export
real    2m58.229s        |real    1m48.375s
user    0m0.428s         |user    0m23.395s
sys     0m4.853s         |sys     0m4.246s
                         |
128M    S                |34M     S
Comment 1 Akinori Hattori gentoo-dev 2005-12-24 06:19:20 UTC
Fixed in CVS. Thank you for reporting!