1 |
On Sun, 12 Mar 2017 12:00:08 +0100 |
2 |
Michał Górny <mgorny@g.o> wrote: |
3 |
|
4 |
> Make the substitution errors in prune_libtool_files logic fatal to |
5 |
> avoid the dependency of eqawarn. They're extremely unlikely to happen |
6 |
> anyway. --- |
7 |
> eclass/eutils.eclass | 7 ++++--- |
8 |
> 1 file changed, 4 insertions(+), 3 deletions(-) |
9 |
> |
10 |
> diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass |
11 |
> index ab226b236a37..cb472caee1d4 100644 |
12 |
> --- a/eclass/eutils.eclass |
13 |
> +++ b/eclass/eutils.eclass |
14 |
> @@ -982,9 +982,10 @@ prune_libtool_files() { |
15 |
> for arg in |
16 |
> ${libs}; do if [[ ${arg} == -l* ]]; then |
17 |
> if |
18 |
> [[ ${arg} == '*$*' ]]; then |
19 |
> - |
20 |
> eqawarn "${FUNCNAME}: variable substitution likely failed in ${pc}" |
21 |
> - |
22 |
> eqawarn "(arg: ${arg})" |
23 |
> - |
24 |
> eqawarn "Most likely, you need to add virtual/pkgconfig to DEPEND." |
25 |
> + |
26 |
> eerror "${FUNCNAME}: variable substitution likely failed in ${pc}" |
27 |
> + |
28 |
> eerror "(arg: ${arg})" |
29 |
> + |
30 |
> eerror "Most likely, you need to add virtual/pkgconfig to DEPEND." |
31 |
> + |
32 |
> die "${FUNCNAME}: unsubstituted variable found in .pc" fi |
33 |
|
34 |
If you go that way then it would be best if this function had a |
35 |
'has "virtual/pkgconfig" ${DEPEND} || die ...' kind of logic |
36 |
|
37 |
the message is more intended towards package maintainer and i would |
38 |
assume they have pkgconfig installed which means the failure will |
39 |
be on user's throat |