1 |
On Tue, 5 Feb 2013 22:32:59 -0300 |
2 |
Alexis Ballier <aballier@g.o> wrote: |
3 |
|
4 |
> On Tue, 5 Feb 2013 21:19:23 +0100 |
5 |
> Michał Górny <mgorny@g.o> wrote: |
6 |
> |
7 |
> > +cmake-multilib_src_install() { |
8 |
> > + cmake-multilib_secure_install() { |
9 |
> > + cmake-utils_src_install |
10 |
> > + |
11 |
> > + # Make sure all headers are the same for each ABI. |
12 |
> > + cmake-multilib_cksum() { |
13 |
> > + find "${ED}"usr/include -type f \ |
14 |
> > + -exec cksum {} + | sort -k2 |
15 |
> > + } |
16 |
> > + |
17 |
> > + local cksum=$(cmake-multilib_cksum) |
18 |
> > + local cksum_file=${T}/.cmake-multilib_cksum |
19 |
> > + |
20 |
> > + if [[ -f ${cksum_file} ]]; then |
21 |
> > + local cksum_prev=$(< "${cksum_file}") |
22 |
> > + |
23 |
> > + if [[ ${cksum} != ${cksum_prev} ]]; then |
24 |
> > + echo "${cksum}" > "${cksum_file}.new" |
25 |
> > + |
26 |
> > + eerror "Header files have changed |
27 |
> > between ABIs." + |
28 |
> > + if type -p diff &>/dev/null; then |
29 |
> > + eerror "$(diff -du |
30 |
> > "${cksum_file}" "${cksum_file}.new")" |
31 |
> > + else |
32 |
> > + eerror "Old checksums in: |
33 |
> > ${cksum_file}" |
34 |
> > + eerror "New checksums in: |
35 |
> > ${cksum_file}.new" |
36 |
> > + fi |
37 |
> > + |
38 |
> > + die "Header checksum mismatch, |
39 |
> > aborting." |
40 |
> > + fi |
41 |
> > + else |
42 |
> > + echo "${cksum}" > "${cksum_file}" |
43 |
> > + fi |
44 |
> > + } |
45 |
> |
46 |
> > The eclass uses the same header consistency check as |
47 |
> > autotools-multilib |
48 |
> > (therefore, I move the function to multilib-build). |
49 |
> |
50 |
> |
51 |
> You probably forgot to use it here |
52 |
|
53 |
lolcorrect. |
54 |
|
55 |
-- |
56 |
Best regards, |
57 |
Michał Górny |