Gentoo Archives: gentoo-portage-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Toha <tonich@××××××.ru>
Subject: Re: [gentoo-portage-dev] files in ${FILESDIR}
Date: Tue, 05 May 2009 06:34:51
Message-Id: 200905050234.49299.vapier@gentoo.org
In Reply to: [gentoo-portage-dev] files in ${FILESDIR} by Toha
1 On Tuesday 05 May 2009 02:26:21 Toha wrote:
2 > What about this idea: list all files in ${FILESDIR} (patches, init
3 > scripts), related to ebuild in this ebuild like:
4 >
5 > FLS=( "some-init-script" "${PN}-patch1.patch" "${PN}-${PV}-patch2.patch"
6 > ... "${PN}-patchN.patch" )
7 >
8 > then using this files by addressing his index in ${FLS} array
9 >
10 > applying patches with command: epatch 1 ( or in batch mode: epatch 1 2 3 )
11 > and init scripts like: doinitd 0
12 > etc.
13 >
14 > reason: easy automated way to moving ebuilds with all required files betwen
15 > repositories/overlays
16
17 downsides: updating of array causes ugly cascading of changes throughout the
18 entire ebuild instead of one or two lines. maintaining the info indirectly
19 with numbers makes reading ebuilds harder to understand and harder to maintain
20 (adding/dropping files).
21
22 such changes should be proposed on the gentoo-dev mailing list anyways ...
23 you'll get a lot more feedback as to why this is more "con" than "pro".
24 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature