1 |
I think it's not that I'm getting any specific warning, but rather that |
2 |
the warnings get quoted in build.log in debug mode: |
3 |
|
4 |
amit0 ~ $ cat |
5 |
/usr/portage/local/myebuilds/test/test-mkdir/test-mkdir-1.0.ebuild |
6 |
SRC_URI="" |
7 |
KEYWORDS="amd64" |
8 |
# Make sure you have the SLOT variable in the ebuild. If you don't plan |
9 |
to use it, don't remove it. Put in SLOT="0". |
10 |
SLOT="0" |
11 |
# You must (according to the Gentoo ebuild HOWTO) include the IUSE |
12 |
variable even if there are no USE flags in use. |
13 |
IUSE="" |
14 |
|
15 |
DEPEND="" |
16 |
RDEPEND="${DEPEND}" |
17 |
|
18 |
src_install() |
19 |
{ |
20 |
diropts -m0777 |
21 |
dodir /tmp/test-mkdir |
22 |
} |
23 |
|
24 |
amit0 ~ $ rm -fr /var/tmp/portage/test/test-mkdir-1.0/temp/ |
25 |
amit0 ~ $ time (ebuild --debug |
26 |
/usr/portage/local/myebuilds/test/test-mkdir/test-mkdir-1.0.ebuild >& |
27 |
/tmp/bla install) |
28 |
|
29 |
real 0m3.456s |
30 |
user 0m2.527s |
31 |
sys 0m1.002s |
32 |
amit0 ~ $ grep -qs ': warning:' |
33 |
/var/tmp/portage/test/test-mkdir-1.0/temp/build.log |
34 |
amit0 ~ $ echo $? |
35 |
0 |
36 |
amit0 ~ $ grep -m 3 ': warning:' |
37 |
/var/tmp/portage/test/test-mkdir-1.0/temp/build.log |
38 |
+ msgs=(": warning: dereferencing type-punned pointer will break |
39 |
strict-aliasing rules$" ": warning: implicit declaration of function " |
40 |
": warning: incompatible implicit declaration of built-in function " ": |
41 |
warning: is used uninitialized in this function$" ": warning: |
42 |
comparisons like X<=Y<=Z do not have their mathematical meaning$" ": |
43 |
warning: null argument where non-null required ") |
44 |
+ [[ -n : warning: dereferencing type-punned pointer will break |
45 |
strict-aliasing rules$ ]] |
46 |
+ m=': warning: dereferencing type-punned pointer will break |
47 |
strict-aliasing rules$' |
48 |
amit0 ~ $ time (ebuild --debug |
49 |
/usr/portage/local/myebuilds/test/test-mkdir/test-mkdir-1.0.ebuild >& |
50 |
/tmp/bla install) |
51 |
# preemting ebuild after a ~30 sec. hang |
52 |
|
53 |
^C^C |
54 |
real 0m31.257s |
55 |
user 0m22.578s |
56 |
sys 0m8.949s |
57 |
|
58 |
Amit |
59 |
|
60 |
Zac Medico wrote: |
61 |
> Amit Dor-Shifer wrote: |
62 |
> |
63 |
>> Hi. |
64 |
>> When I'm executing ebuild --debug /path/to/my/ebuild.ebuild >& |
65 |
>> /some/file, ebuild keeps dumping QA warnings to /some/file. I think its |
66 |
>> because its grepping for ": warning :" in build.log, and such messages |
67 |
>> are quoted into build.log because of the use of --debug. |
68 |
>> |
69 |
> |
70 |
> Maybe we just need to disable that QA check when --debug is enabled. |
71 |
> What specific QA warnings are you getting? |
72 |
> |