On Sat, 27 Apr 2013 17:08:02 +0200 Ulrich Mueller <u...@gentoo.org> wrote:
> >>>>> On Sat, 27 Apr 2013, Michał Górny wrote: > > >> > It's better to have a function to obtain that directory rather than for > >> > ebuilds to hardcode it. > >> > >> Why? > > > For better consistency, I'd say. Especially if we decide to fix Gentoo > > and start using the standard path, we'd need only to modify the eclass > > rather than all involved packages. > > But why should it be a function? Its return value is constant, so > a variable defined in the eclass seems more natural. To be honest, I was thinking the same thing when re-implementing the remaining functions. I can think of two reasons: 1. consistency with other eclasses and functions like get_libdir, 2. possibility of using pkg-config if it becomes necessary. -- Best regards, Michał Górny
signature.asc
Description: PGP signature