1 |
Am 11.12.2013 08:57, schrieb Mike Frysinger: |
2 |
> On Thursday 05 December 2013 15:57:17 SebastianLuther@×××.de |
3 |
> wrote: |
4 |
>> --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -242,6 |
5 |
>> +242,11 @@ install_qa_check() { [[ -d ${ED}/$x ]] && f+=" $x\n" |
6 |
>> done |
7 |
>> |
8 |
>> + # It's ok create these directories, but not to install into |
9 |
>> them. (bug 493154) |
10 |
> |
11 |
> our style uses #12345 rather than (bug 12345) # It's ok create |
12 |
> these directories, but not to install into them. #493154 |
13 |
> |
14 |
>> + for x in var/cache var/lib var/lock var/run run ; do + [[ -d |
15 |
>> ${ED}/$x ]] && [[ $(find "${ED}/${x}" -prune -empty) = "" ]] && |
16 |
>> f+=" $x\n" |
17 |
> |
18 |
> the -d check doesn't handle symlinks correctly ... baselayout would |
19 |
> install /var/run -> /run, and the -d would deref that to the real |
20 |
> symlink. however, `find` will not descend into the symlink, so we |
21 |
> end up being saved by that. |
22 |
> |
23 |
> we have -z for detecting empty output rather than comparing to an |
24 |
> empty string |
25 |
> |
26 |
> non-builtin vars should use braces, so that'd be ${x}. i know some |
27 |
> of the code in here doesn't follow that, but we should be marching |
28 |
> in that direction with new code. |
29 |
|
30 |
My bash knowledge is rather limited. So, thanks for your comments. |
31 |
|
32 |
> |
33 |
>> if [[ -n $f ]] ; then eqawarn "QA Notice: This ebuild installs |
34 |
>> into the following |
35 |
> deprecated directories:" |
36 |
> |
37 |
> this warning is incorrect for these paths. we need to create a new |
38 |
> warning that clearly explains what is going on. |
39 |
> |
40 |
|
41 |
Right, thanks for fixing. |
42 |
|
43 |
> i'll send out a new version. -mike |
44 |
> |
45 |
|
46 |
FWIW, new patch looks fine. |
47 |
|
48 |
|
49 |
Sebastian |