1 |
Dnia 2014-01-25, o godz. 10:12:26 |
2 |
Markos Chandras <hwoarang@g.o> napisał(a): |
3 |
|
4 |
> On 01/23/2014 04:48 PM, Michał Górny wrote: |
5 |
> > Dnia 2014-01-23, o godz. 11:36:06 |
6 |
> > Chris Reffett <creffett@g.o> napisał(a): |
7 |
> > |
8 |
> >> -----BEGIN PGP SIGNED MESSAGE----- |
9 |
> >> Hash: SHA1 |
10 |
> >> |
11 |
> >> On 01/23/2014 11:28 AM, Michał Górny wrote: |
12 |
> >>> Dnia 2014-01-23, o godz. 11:24:41 Chris Reffett |
13 |
> >>> <creffett@g.o> napisał(a): |
14 |
> >>> |
15 |
> >>>> After some discussion on good ways to communicate optional |
16 |
> >>>> dependencies to users, I was shown the optfeature() function in |
17 |
> >>>> net-misc/netctl. Gentoo contributor Andrew Hamilton and I came up |
18 |
> >>>> with a cleaned up and expanded version of it, and I would like to |
19 |
> >>>> add it to eutils.eclass to provide a standard way of notifying |
20 |
> >>>> users of optional dependencies. The patch to eutils.eclass is |
21 |
> >>>> attached. |
22 |
> >>> |
23 |
> >>> This was discussed already: |
24 |
> >>> |
25 |
> >>> http://thread.gmane.org/gmane.linux.gentoo.devel/72162 |
26 |
> >>> |
27 |
> >> First of all, this is a short patch for a function, not a full eclass. |
28 |
> > |
29 |
> > Ah, sorry, this changes *a lot*. Let's start the bikeshed again then, |
30 |
> > whatever. |
31 |
> > |
32 |
> I haven't looked at the implementation, but I wonder if we need a |
33 |
> function for such trivial stuff. Most maintainers deal with this problem |
34 |
> using pkg_postinst() einfo/elog messages. Why do we need a dedicated |
35 |
> function for that? Just for consistency reasons...? |
36 |
|
37 |
The intent of the original optfeature implementation was to provide |
38 |
users with nice, colorful '[installed]' messages whenever the optional |
39 |
dependency was installed. |
40 |
|
41 |
-- |
42 |
Best regards, |
43 |
Michał Górny |