diff options
-rw-r--r-- | scripts/lib/recipetool/create_buildsys.py | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/scripts/lib/recipetool/create_buildsys.py b/scripts/lib/recipetool/create_buildsys.py index 3cb02766c8..35a97c9345 100644 --- a/scripts/lib/recipetool/create_buildsys.py +++ b/scripts/lib/recipetool/create_buildsys.py | |||
@@ -226,9 +226,9 @@ class CmakeRecipeHandler(RecipeHandler): | |||
226 | elif pkg == 'PkgConfig': | 226 | elif pkg == 'PkgConfig': |
227 | inherits.append('pkgconfig') | 227 | inherits.append('pkgconfig') |
228 | elif pkg == 'PythonInterp': | 228 | elif pkg == 'PythonInterp': |
229 | inherits.append('pythonnative') | 229 | inherits.append('python3native') |
230 | elif pkg == 'PythonLibs': | 230 | elif pkg == 'PythonLibs': |
231 | inherits.append('python-dir') | 231 | inherits.append('python3-dir') |
232 | else: | 232 | else: |
233 | # Try to map via looking at installed CMake packages in pkgdata | 233 | # Try to map via looking at installed CMake packages in pkgdata |
234 | dep = find_cmake_package(pkg) | 234 | dep = find_cmake_package(pkg) |
@@ -417,7 +417,7 @@ class AutotoolsRecipeHandler(RecipeHandler): | |||
417 | } | 417 | } |
418 | progclassmap = {'gconftool-2': 'gconf', | 418 | progclassmap = {'gconftool-2': 'gconf', |
419 | 'pkg-config': 'pkgconfig', | 419 | 'pkg-config': 'pkgconfig', |
420 | 'python': 'pythonnative', | 420 | 'python': 'python3native', |
421 | 'python3': 'python3native', | 421 | 'python3': 'python3native', |
422 | 'perl': 'perlnative', | 422 | 'perl': 'perlnative', |
423 | 'makeinfo': 'texinfo', | 423 | 'makeinfo': 'texinfo', |
@@ -566,16 +566,7 @@ class AutotoolsRecipeHandler(RecipeHandler): | |||
566 | elif keyword == 'AX_PROG_XSLTPROC': | 566 | elif keyword == 'AX_PROG_XSLTPROC': |
567 | deps.append('libxslt-native') | 567 | deps.append('libxslt-native') |
568 | elif keyword in ['AC_PYTHON_DEVEL', 'AX_PYTHON_DEVEL', 'AM_PATH_PYTHON']: | 568 | elif keyword in ['AC_PYTHON_DEVEL', 'AX_PYTHON_DEVEL', 'AM_PATH_PYTHON']: |
569 | pythonclass = 'pythonnative' | 569 | pythonclass = 'python3native' |
570 | res = version_re.search(value) | ||
571 | if res: | ||
572 | if res.group(1).startswith('3'): | ||
573 | pythonclass = 'python3native' | ||
574 | # Avoid replacing python3native with pythonnative | ||
575 | if not pythonclass in inherits and not 'python3native' in inherits: | ||
576 | if 'pythonnative' in inherits: | ||
577 | inherits.remove('pythonnative') | ||
578 | inherits.append(pythonclass) | ||
579 | elif keyword == 'AX_WITH_CURSES': | 570 | elif keyword == 'AX_WITH_CURSES': |
580 | deps.append('ncurses') | 571 | deps.append('ncurses') |
581 | elif keyword == 'AX_PATH_BDB': | 572 | elif keyword == 'AX_PATH_BDB': |