1 |
Moving this to gentoo-dev then. |
2 |
|
3 |
-------- Original Message -------- |
4 |
Subject: Re: [gentoo-portage-dev] making dodoc and dohtml die when they |
5 |
fail and stricter is on |
6 |
Date: Sun, 25 Dec 2005 15:14:46 -0800 |
7 |
From: Brian Harring <ferringb@g.o> |
8 |
Reply-To: gentoo-portage-dev@l.g.o |
9 |
To: gentoo-portage-dev@l.g.o |
10 |
References: <43AF230C.5080904@g.o> |
11 |
|
12 |
On Mon, Dec 26, 2005 at 12:54:04AM +0200, Petteri Räty wrote: |
13 |
> Currently there are quite a few ebuilds in the tree that execute dodoc |
14 |
> or dohtml for files that do not exist. I think it would be nice to have |
15 |
> ebuilds die if this is the case. To not break current ebuilds this would |
16 |
> only happen with FEATURES="stricter". This is what I currently do in my |
17 |
> bashrc. Obviously when integreted to portage one can use helper |
18 |
> functions like hasq which are not available in bashrc. |
19 |
> |
20 |
> |
21 |
> if [[ "${FEATURES/stricter}" != "${FEATURES}" ]]; then |
22 |
> |
23 |
> _makefail() { |
24 |
> bin="/usr/lib/portage/bin/${1}" |
25 |
> shift 1 |
26 |
> "${bin}" "${@}" || die "${bin} ${@} failed" |
27 |
> } |
28 |
> |
29 |
> dodoc() { _makefail ${FUNCNAME} "${@}"; } |
30 |
> dohtml() { _makefail ${FUNCNAME} "${@}"; } |
31 |
Seems like more of a -dev discussion imo, since they're the ones |
32 |
affected by it (for us it's just an api change). |
33 |
~harring |