1 |
On 9/20/07, Bo Ørsted Andresen <bo.andresen@××××.dk> wrote: |
2 |
> On Thursday 20 September 2007 19:54:16 Donnie Berkholz wrote: |
3 |
> > > econf has default "econf failed" die message. |
4 |
> > > The following would be sufficient: |
5 |
> > > econf \ |
6 |
> > > --localstatedir=/var \ |
7 |
> > > --sysconfdir=/etc/csync2 |
8 |
> > |
9 |
> > Is that so ... when did that appear? Does it happen for all of the |
10 |
> > package managers? Which functions do this? Where is it documented? |
11 |
> |
12 |
> The currect PMS draft documents it (for econf only). All three package |
13 |
> managers conform to it. |
14 |
|
15 |
As you seem to know, PMS is still a draft and as such can't be |
16 |
considered a valid reference document yet. The econf function is |
17 |
indeed the only one that is officially documented as aborting |
18 |
automatically via die(). You can find this in our Gentoo Development |
19 |
Guide available at devmanual.gentoo.org. |
20 |
|
21 |
In any case it is considered good practice to always add '|| |
22 |
die("message")' after all helper functions. The reason is you can't |
23 |
(or shouldn't) rely on any of them dying properly now or in the |
24 |
future. Plus adding a specific message helps debugging. |
25 |
|
26 |
And about the existence of other package managers, yes, I've heard |
27 |
that rumor too. I've even heard that they may work, but I can't |
28 |
confirm. |
29 |
|
30 |
Denis. |
31 |
éí¢‡^¾§¶Š(® šŠX§‚X¬ |