public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rich Freeman <rich0@gentoo.org>
To: gentoo-dev <gentoo-dev@lists.gentoo.org>
Subject: Re: [gentoo-dev] rfc: calling all eclass phase functions by default
Date: Mon, 18 Aug 2014 09:27:37 -0400	[thread overview]
Message-ID: <CAGfcS_=GTzGUT8jh1k9BYDdkdYASZhyvQco7pG9CM0NZC40KSw@mail.gmail.com> (raw)
In-Reply-To: <53F1EFCB.9060403@gentoo.org>

On Mon, Aug 18, 2014 at 8:21 AM, Sergey Popov <pinkbyte@gentoo.org> wrote:
> 18.08.2014 14:44, Rich Freeman пишет:
>> On Mon, Aug 18, 2014 at 4:54 AM, Sergey Popov <pinkbyte@gentoo.org> wrote:
>>> 17.08.2014 01:54, William Hubbs пишет:
>>>>
>>>> # Foo and bar both have src_unpack and src_install functions.
>>>> # we want foo's src_unpack and bar's src_install:
>>>>
>>>> ECLASS_PHASES="foo_src_unpack
>>>>       bar_src_install"
>>>
>>> You have my strong opposition on such change as well. It will turn
>>> ebuilds into unreadable and undpredictable mess, please do not do that
>>>
>>
>> I'm not sure I follow your complaint.  He is talking about adding one
>> line to an ebuild.  I'm not sure how that is unreadable, and the
>> algorithm you quoted looks fairly predictable to me as well.
>>
>> Certainly it is less convenient than not having to do anything to pull
>> in eclass-defined phase functions, and it requires ebuilds to be
>> updated when eclasses are updated to add new phase functions.  That
>> could be problematic for cases like KDE/X11/etc where you have a large
>> collection of short ebuilds with all the logic in an eclass.
>>
>> I just want to make sure I'm understanding your concern in case there
>> is a new issue being raised.
>
> What's bad with overriding needed functions and saying which exported
> functions(from eclasses) to execute and in which order?
>
> Is this approach flaw? In which ways?

Ok, I was misunderstanding your original comment.  You're advocating
just having ebuilds explicitly call phase functions from eclasses
then, and not automatically inheriting them?  Your objection was to
the ECLASS_PHASES concept, and not to the principle of eliminating
automatic inheritance of phase functions?

Please let me know if I'm still misunderstanding you.  There are a lot
of potential ways to go with this so it isn't always clear what part
of a proposal is being objected to.

Rich


  reply	other threads:[~2014-08-18 13:27 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-16 21:54 [gentoo-dev] rfc: calling all eclass phase functions by default William Hubbs
2014-08-16 22:32 ` Kent Fredric
2014-08-16 23:01   ` William Hubbs
2014-08-17  3:11     ` [gentoo-dev] " Duncan
2014-08-17  7:03   ` [gentoo-dev] " Michał Górny
2014-08-17  8:49     ` Kent Fredric
2014-08-17  7:06   ` "Paweł Hajdan, Jr."
2014-08-17  7:18     ` Michał Górny
2014-08-17  7:23       ` "Paweł Hajdan, Jr."
2014-08-16 22:54 ` Michał Górny
2014-08-16 23:30   ` William Hubbs
2014-08-17  6:54 ` Ulrich Mueller
2014-08-17 12:24   ` Rich Freeman
2014-08-18  8:54 ` Sergey Popov
2014-08-18 10:44   ` Rich Freeman
2014-08-18 12:21     ` Sergey Popov
2014-08-18 13:27       ` Rich Freeman [this message]
2014-08-18 12:04   ` hasufell
2014-08-18 12:19     ` Sergey Popov
2014-08-18 12:30       ` hasufell
2014-08-18 12:41         ` hasufell
2014-08-18 12:52           ` Michał Górny
2014-08-18 12:56           ` hasufell
2014-08-18 13:22             ` Chris Reffett
2014-08-18 13:27               ` hasufell
2014-08-18 15:11               ` Michał Górny
2014-08-18 19:37                 ` Chris Reffett
2014-08-18 20:08                   ` Michał Górny
2014-08-18 20:23                   ` hasufell
2014-08-19  7:02                     ` Sergey Popov
2014-08-18 14:13             ` Rich Freeman
2014-08-19  6:58             ` Sergey Popov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGfcS_=GTzGUT8jh1k9BYDdkdYASZhyvQco7pG9CM0NZC40KSw@mail.gmail.com' \
    --to=rich0@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox