[gentoo-portage-dev] files in ${FILESDIR}

2009-05-05 Thread Toha
What about this idea: list all files in ${FILESDIR} (patches, init scripts), 
related to ebuild in this ebuild like:

FLS=( some-init-script ${PN}-patch1.patch ${PN}-${PV}-patch2.patch ... 
${PN}-patchN.patch )

then using this files by addressing his index in ${FLS} array

applying patches with command: epatch 1 ( or in batch mode: epatch 1 2 3 )
and init scripts like: doinitd 0
etc.

reason: easy automated way to moving ebuilds with all required files betwen 
repositories/overlays



Re: [gentoo-portage-dev] files in ${FILESDIR}

2009-05-05 Thread Mike Frysinger
On Tuesday 05 May 2009 02:26:21 Toha wrote:
 What about this idea: list all files in ${FILESDIR} (patches, init
 scripts), related to ebuild in this ebuild like:

 FLS=( some-init-script ${PN}-patch1.patch ${PN}-${PV}-patch2.patch
 ... ${PN}-patchN.patch )

 then using this files by addressing his index in ${FLS} array

 applying patches with command: epatch 1 ( or in batch mode: epatch 1 2 3 )
 and init scripts like: doinitd 0
 etc.

 reason: easy automated way to moving ebuilds with all required files betwen
 repositories/overlays

downsides: updating of array causes ugly cascading of changes throughout the 
entire ebuild instead of one or two lines.  maintaining the info indirectly 
with numbers makes reading ebuilds harder to understand and harder to maintain 
(adding/dropping files).

such changes should be proposed on the gentoo-dev mailing list anyways ... 
you'll get a lot more feedback as to why this is more con than pro.
-mike


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-portage-dev] Symlinks with distutils

2009-05-05 Thread Douglas Anderson


On May 5, 2009, at 10:37 PM, Michael A. Smith mich...@smith-li.com  
wrote:



In theory, doing symlinks with distutils isn't a big deal, but
distutils.core.setup doesn't have the capability built in.  
(distutils.file_util
does, but it's not clear how to trigger that intuitively within  
setup().) So
for the changes to gentoolkit for 0.3, I vote we keep the ebuild  
dosyms, and
leave distutils out of the business of symlinks, to be revisited at  
a later

date. Agree?

Best wishes,
Michael (a.k.a. kojiro)



Sounds good to me.
-Doug