diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/python/python/avoid_warning_for_sunos_specific_module.patch | 23 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python_2.7.2.bb | 3 |
2 files changed, 25 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python/avoid_warning_for_sunos_specific_module.patch b/meta/recipes-devtools/python/python/avoid_warning_for_sunos_specific_module.patch new file mode 100644 index 0000000000..337e0e3e29 --- /dev/null +++ b/meta/recipes-devtools/python/python/avoid_warning_for_sunos_specific_module.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | sunaudiodev module is sunos specific so we avoid a warning by not | ||
2 | adding this module to missing variable. | ||
3 | |||
4 | Upstream-Status: Inappropriate [distribution] | ||
5 | |||
6 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
7 | |||
8 | Index: Python-2.7.2/setup.py | ||
9 | =================================================================== | ||
10 | --- Python-2.7.2.orig/setup.py 2012-04-05 22:29:18.049196608 +0300 | ||
11 | +++ Python-2.7.2/setup.py 2012-04-05 22:29:57.505195453 +0300 | ||
12 | @@ -1522,8 +1522,9 @@ | ||
13 | if platform == 'sunos5': | ||
14 | # SunOS specific modules | ||
15 | exts.append( Extension('sunaudiodev', ['sunaudiodev.c']) ) | ||
16 | - else: | ||
17 | - missing.append('sunaudiodev') | ||
18 | + # If platform is not sunos warning is useless | ||
19 | + #else: | ||
20 | + # missing.append('sunaudiodev') | ||
21 | |||
22 | if platform == 'darwin': | ||
23 | # _scproxy | ||
diff --git a/meta/recipes-devtools/python/python_2.7.2.bb b/meta/recipes-devtools/python/python_2.7.2.bb index d35f0dd819..bd5c1ffde8 100644 --- a/meta/recipes-devtools/python/python_2.7.2.bb +++ b/meta/recipes-devtools/python/python_2.7.2.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require python.inc | 1 | require python.inc |
2 | DEPENDS = "python-native bzip2 db gdbm openssl readline sqlite3 zlib" | 2 | DEPENDS = "python-native bzip2 db gdbm openssl readline sqlite3 zlib" |
3 | PR = "${INC_PR}.19" | 3 | PR = "${INC_PR}.20" |
4 | 4 | ||
5 | DISTRO_SRC_URI ?= "file://sitecustomize.py" | 5 | DISTRO_SRC_URI ?= "file://sitecustomize.py" |
6 | DISTRO_SRC_URI_linuxstdbase = "" | 6 | DISTRO_SRC_URI_linuxstdbase = "" |
@@ -26,6 +26,7 @@ SRC_URI += "\ | |||
26 | file://search_db_h_in_inc_dirs_and_avoid_warning.patch \ | 26 | file://search_db_h_in_inc_dirs_and_avoid_warning.patch \ |
27 | file://avoid_warning_about_bsddb.patch \ | 27 | file://avoid_warning_about_bsddb.patch \ |
28 | file://avoid_warning_about_tkinter.patch \ | 28 | file://avoid_warning_about_tkinter.patch \ |
29 | file://avoid_warning_for_sunos_specific_module.patch \ | ||
29 | " | 30 | " |
30 | 31 | ||
31 | S = "${WORKDIR}/Python-${PV}" | 32 | S = "${WORKDIR}/Python-${PV}" |