1 |
Dnia 2015-06-02, o godz. 04:27:35 |
2 |
"Mike Frysinger (vapier)" <vapier@g.o> napisał(a): |
3 |
|
4 |
> vapier 15/06/02 04:27:35 |
5 |
> |
6 |
> Modified: linux-info.eclass |
7 |
> Log: |
8 |
> fix looking up output dir when cross-compiling (fix by Nam Nguyen from Chromium OS) |
9 |
> |
10 |
> Revision Changes Path |
11 |
> 1.106 eclass/linux-info.eclass |
12 |
> |
13 |
> file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/linux-info.eclass?rev=1.106&view=markup |
14 |
> plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/linux-info.eclass?rev=1.106&content-type=text/plain |
15 |
> diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/linux-info.eclass?r1=1.105&r2=1.106 |
16 |
> |
17 |
> Index: linux-info.eclass |
18 |
> =================================================================== |
19 |
> RCS file: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v |
20 |
> retrieving revision 1.105 |
21 |
> retrieving revision 1.106 |
22 |
> diff -u -r1.105 -r1.106 |
23 |
> --- linux-info.eclass 9 May 2015 08:03:40 -0000 1.105 |
24 |
> +++ linux-info.eclass 2 Jun 2015 04:27:35 -0000 1.106 |
25 |
> @@ -1,6 +1,6 @@ |
26 |
> # Copyright 1999-2015 Gentoo Foundation |
27 |
> # Distributed under the terms of the GNU General Public License v2 |
28 |
> -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.105 2015/05/09 08:03:40 ulm Exp $ |
29 |
> +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.106 2015/06/02 04:27:35 vapier Exp $ |
30 |
> |
31 |
> # @ECLASS: linux-info.eclass |
32 |
> # @MAINTAINER: |
33 |
> @@ -529,7 +529,15 @@ |
34 |
> # but before we do this, we need to find if we use a different object directory. |
35 |
> # This *WILL* break if the user is using localversions, but we assume it was |
36 |
> # caught before this if they are. |
37 |
> - OUTPUT_DIR="${OUTPUT_DIR:-/lib/modules/${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${KV_EXTRA}/build}" |
38 |
> + if [[ -z ${OUTPUT_DIR} ]] ; then |
39 |
> + # Try to locate a kernel that is most relevant for us. |
40 |
> + for OUTPUT_DIR in "${SYROOT}" "${ROOT}" "" ; do |
41 |
|
42 |
What's SYROOT? Did you mean SYSROOT? |
43 |
|
44 |
> + OUTPUT_DIR+="/lib/modules/${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${KV_EXTRA}/build" |
45 |
> + if [[ -e ${OUTPUT_DIR} ]] ; then |
46 |
> + break |
47 |
> + fi |
48 |
> + done |
49 |
> + fi |
50 |
> |
51 |
> [ -h "${OUTPUT_DIR}" ] && KV_OUT_DIR="$(readlink -f ${OUTPUT_DIR})" |
52 |
> [ -d "${OUTPUT_DIR}" ] && KV_OUT_DIR="${OUTPUT_DIR}" |
53 |
|
54 |
Also, how about you send your eclass changes for review like everyone |
55 |
else is supposed to? That's how we usually fix bugs like the above. |
56 |
Especially that you *aren't* listed as maintainer of the eclass, so |
57 |
likely you won't even be CC-ed on bugs you created. |
58 |
|
59 |
-- |
60 |
Best regards, |
61 |
Michał Górny |