diff options
| author | Joshua Lock <joshua.g.lock@intel.com> | 2016-12-14 21:13:04 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-16 10:23:23 +0000 |
| commit | c4e2c59088765d1f1de7ec57cde91980f887c2ff (patch) | |
| tree | a2fda8ac5916fb59a711e9220c2177008cca9347 /meta/recipes-devtools | |
| parent | d5e67725ac11e3296cad104470931ffa16824b90 (diff) | |
| download | poky-c4e2c59088765d1f1de7ec57cde91980f887c2ff.tar.gz | |
meta: remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.
Search made with the following regex: getVar ?\(( ?[^,()]*), True\)
(From OE-Core rev: 7c552996597faaee2fbee185b250c0ee30ea3b5f)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
24 files changed, 104 insertions, 104 deletions
diff --git a/meta/recipes-devtools/apt/apt-native.inc b/meta/recipes-devtools/apt/apt-native.inc index 9fa206efe1..68f1b3ce2c 100644 --- a/meta/recipes-devtools/apt/apt-native.inc +++ b/meta/recipes-devtools/apt/apt-native.inc | |||
| @@ -17,14 +17,14 @@ python do_install () { | |||
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | python do_install_config () { | 19 | python do_install_config () { |
| 20 | indir = os.path.dirname(d.getVar('FILE', True)) | 20 | indir = os.path.dirname(d.getVar('FILE')) |
| 21 | infile = open(oe.path.join(indir, 'files', 'apt.conf'), 'r') | 21 | infile = open(oe.path.join(indir, 'files', 'apt.conf'), 'r') |
| 22 | data = infile.read() | 22 | data = infile.read() |
| 23 | infile.close() | 23 | infile.close() |
| 24 | 24 | ||
| 25 | data = d.expand(data) | 25 | data = d.expand(data) |
| 26 | 26 | ||
| 27 | outdir = oe.path.join(d.getVar('D', True), d.getVar('sysconfdir', True), 'apt') | 27 | outdir = oe.path.join(d.getVar('D'), d.getVar('sysconfdir'), 'apt') |
| 28 | if not os.path.exists(outdir): | 28 | if not os.path.exists(outdir): |
| 29 | os.makedirs(outdir) | 29 | os.makedirs(outdir) |
| 30 | 30 | ||
diff --git a/meta/recipes-devtools/apt/apt-package.inc b/meta/recipes-devtools/apt/apt-package.inc index a553aa21fe..6e8cb84a5b 100644 --- a/meta/recipes-devtools/apt/apt-package.inc +++ b/meta/recipes-devtools/apt/apt-package.inc | |||
| @@ -34,9 +34,9 @@ FILES_${PN} = "${bindir}/apt-cdrom ${bindir}/apt-get \ | |||
| 34 | ${localstatedir} ${sysconfdir} \ | 34 | ${localstatedir} ${sysconfdir} \ |
| 35 | ${libdir}/dpkg" | 35 | ${libdir}/dpkg" |
| 36 | FILES_${PN}-utils = "${bindir}/apt-sortpkgs ${bindir}/apt-extracttemplates" | 36 | FILES_${PN}-utils = "${bindir}/apt-sortpkgs ${bindir}/apt-extracttemplates" |
| 37 | FILES_${PN}-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-manpages', True))} \ | 37 | FILES_${PN}-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-manpages'))} \ |
| 38 | ${docdir}/apt" | 38 | ${docdir}/apt" |
| 39 | FILES_${PN}-utils-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-utils-manpages', True))}" | 39 | FILES_${PN}-utils-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-utils-manpages'))}" |
| 40 | FILES_${PN}-dev = "${libdir}/libapt*.so ${includedir}" | 40 | FILES_${PN}-dev = "${libdir}/libapt*.so ${includedir}" |
| 41 | 41 | ||
| 42 | do_install () { | 42 | do_install () { |
diff --git a/meta/recipes-devtools/automake/automake.inc b/meta/recipes-devtools/automake/automake.inc index 4f9b5f7740..87cedc9838 100644 --- a/meta/recipes-devtools/automake/automake.inc +++ b/meta/recipes-devtools/automake/automake.inc | |||
| @@ -16,6 +16,6 @@ do_configure() { | |||
| 16 | oe_runconf | 16 | oe_runconf |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | export AUTOMAKE = "${@bb.utils.which('automake', d.getVar('PATH', True))}" | 19 | export AUTOMAKE = "${@bb.utils.which('automake', d.getVar('PATH'))}" |
| 20 | 20 | ||
| 21 | FILES_${PN} += "${datadir}/automake* ${datadir}/aclocal*" | 21 | FILES_${PN} += "${datadir}/automake* ${datadir}/aclocal*" |
diff --git a/meta/recipes-devtools/binutils/binutils-2.27.inc b/meta/recipes-devtools/binutils/binutils-2.27.inc index 75180eaf50..df8864cbfa 100644 --- a/meta/recipes-devtools/binutils/binutils-2.27.inc +++ b/meta/recipes-devtools/binutils/binutils-2.27.inc | |||
| @@ -11,7 +11,7 @@ LIC_FILES_CHKSUM="\ | |||
| 11 | " | 11 | " |
| 12 | 12 | ||
| 13 | def binutils_branch_version(d): | 13 | def binutils_branch_version(d): |
| 14 | pvsplit = d.getVar('PV', True).split('.') | 14 | pvsplit = d.getVar('PV').split('.') |
| 15 | return pvsplit[0] + "_" + pvsplit[1] | 15 | return pvsplit[0] + "_" + pvsplit[1] |
| 16 | 16 | ||
| 17 | BINUPV = "${@binutils_branch_version(d)}" | 17 | BINUPV = "${@binutils_branch_version(d)}" |
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc index 75d190f802..9b1192b6e7 100644 --- a/meta/recipes-devtools/binutils/binutils.inc +++ b/meta/recipes-devtools/binutils/binutils.inc | |||
| @@ -59,9 +59,9 @@ USE_ALTERNATIVES_FOR = " \ | |||
| 59 | " | 59 | " |
| 60 | 60 | ||
| 61 | python do_package_prepend() { | 61 | python do_package_prepend() { |
| 62 | make_alts = d.getVar("USE_ALTERNATIVES_FOR", True) or "" | 62 | make_alts = d.getVar("USE_ALTERNATIVES_FOR") or "" |
| 63 | prefix = d.getVar("TARGET_PREFIX", True) | 63 | prefix = d.getVar("TARGET_PREFIX") |
| 64 | bindir = d.getVar("bindir", True) | 64 | bindir = d.getVar("bindir") |
| 65 | for alt in make_alts.split(): | 65 | for alt in make_alts.split(): |
| 66 | d.setVarFlag('ALTERNATIVE_TARGET', alt, bindir + "/" + prefix + alt) | 66 | d.setVarFlag('ALTERNATIVE_TARGET', alt, bindir + "/" + prefix + alt) |
| 67 | d.setVarFlag('ALTERNATIVE_LINK_NAME', alt, bindir + "/" + alt) | 67 | d.setVarFlag('ALTERNATIVE_LINK_NAME', alt, bindir + "/" + alt) |
diff --git a/meta/recipes-devtools/cmake/cmake.inc b/meta/recipes-devtools/cmake/cmake.inc index 9ae28900a6..40255d9da3 100644 --- a/meta/recipes-devtools/cmake/cmake.inc +++ b/meta/recipes-devtools/cmake/cmake.inc | |||
| @@ -9,7 +9,7 @@ LICENSE = "BSD" | |||
| 9 | LIC_FILES_CHKSUM = "file://Copyright.txt;md5=7a64bc564202bf7401d9a8ef33c9564d \ | 9 | LIC_FILES_CHKSUM = "file://Copyright.txt;md5=7a64bc564202bf7401d9a8ef33c9564d \ |
| 10 | file://Source/cmake.h;beginline=1;endline=3;md5=4494dee184212fc89c469c3acd555a14" | 10 | file://Source/cmake.h;beginline=1;endline=3;md5=4494dee184212fc89c469c3acd555a14" |
| 11 | 11 | ||
| 12 | CMAKE_MAJOR_VERSION = "${@'.'.join(d.getVar('PV', True).split('.')[0:2])}" | 12 | CMAKE_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}" |
| 13 | 13 | ||
| 14 | SRC_URI = "https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \ | 14 | SRC_URI = "https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \ |
| 15 | file://support-oe-qt4-tools-names.patch \ | 15 | file://support-oe-qt4-tools-names.patch \ |
diff --git a/meta/recipes-devtools/cmake/cmake_3.7.0.bb b/meta/recipes-devtools/cmake/cmake_3.7.0.bb index 58c6615680..787f33c02b 100644 --- a/meta/recipes-devtools/cmake/cmake_3.7.0.bb +++ b/meta/recipes-devtools/cmake/cmake_3.7.0.bb | |||
| @@ -10,8 +10,8 @@ SRC_URI_append_class-nativesdk = " \ | |||
| 10 | 10 | ||
| 11 | # Strip ${prefix} from ${docdir}, set result into docdir_stripped | 11 | # Strip ${prefix} from ${docdir}, set result into docdir_stripped |
| 12 | python () { | 12 | python () { |
| 13 | prefix=d.getVar("prefix", True) | 13 | prefix=d.getVar("prefix") |
| 14 | docdir=d.getVar("docdir", True) | 14 | docdir=d.getVar("docdir") |
| 15 | 15 | ||
| 16 | if not docdir.startswith(prefix): | 16 | if not docdir.startswith(prefix): |
| 17 | bb.fatal('docdir must contain prefix as its prefix') | 17 | bb.fatal('docdir must contain prefix as its prefix') |
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc index e8d8a9b4f7..ff883183dc 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc | |||
| @@ -13,7 +13,7 @@ inherit autotools gettext perlnative pkgconfig systemd | |||
| 13 | 13 | ||
| 14 | python () { | 14 | python () { |
| 15 | if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): | 15 | if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): |
| 16 | pn = d.getVar('PN', True) | 16 | pn = d.getVar('PN') |
| 17 | d.setVar('SYSTEMD_SERVICE_%s' % (pn), 'dpkg-configure.service') | 17 | d.setVar('SYSTEMD_SERVICE_%s' % (pn), 'dpkg-configure.service') |
| 18 | } | 18 | } |
| 19 | 19 | ||
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index f540b4d965..d17ba29d1d 100644 --- a/meta/recipes-devtools/gcc/gcc-common.inc +++ b/meta/recipes-devtools/gcc/gcc-common.inc | |||
| @@ -10,35 +10,35 @@ inherit autotools gettext texinfo | |||
| 10 | BPN = "gcc" | 10 | BPN = "gcc" |
| 11 | 11 | ||
| 12 | def get_gcc_float_setting(bb, d): | 12 | def get_gcc_float_setting(bb, d): |
| 13 | if d.getVar('ARMPKGSFX_EABI', True) == "hf" and d.getVar('TRANSLATED_TARGET_ARCH', True) == "arm": | 13 | if d.getVar('ARMPKGSFX_EABI') == "hf" and d.getVar('TRANSLATED_TARGET_ARCH') == "arm": |
| 14 | return "--with-float=hard" | 14 | return "--with-float=hard" |
| 15 | if d.getVar('TARGET_FPU', True) in [ 'soft' ]: | 15 | if d.getVar('TARGET_FPU') in [ 'soft' ]: |
| 16 | return "--with-float=soft" | 16 | return "--with-float=soft" |
| 17 | if d.getVar('TARGET_FPU', True) in [ 'ppc-efd' ]: | 17 | if d.getVar('TARGET_FPU') in [ 'ppc-efd' ]: |
| 18 | return "--enable-e500_double" | 18 | return "--enable-e500_double" |
| 19 | return "" | 19 | return "" |
| 20 | 20 | ||
| 21 | get_gcc_float_setting[vardepvalue] = "${@get_gcc_float_setting(bb, d)}" | 21 | get_gcc_float_setting[vardepvalue] = "${@get_gcc_float_setting(bb, d)}" |
| 22 | 22 | ||
| 23 | def get_gcc_mips_plt_setting(bb, d): | 23 | def get_gcc_mips_plt_setting(bb, d): |
| 24 | if d.getVar('TRANSLATED_TARGET_ARCH', True) in [ 'mips', 'mipsel' ] and bb.utils.contains('DISTRO_FEATURES', 'mplt', True, False, d): | 24 | if d.getVar('TRANSLATED_TARGET_ARCH') in [ 'mips', 'mipsel' ] and bb.utils.contains('DISTRO_FEATURES', 'mplt', True, False, d): |
| 25 | return "--with-mips-plt" | 25 | return "--with-mips-plt" |
| 26 | return "" | 26 | return "" |
| 27 | 27 | ||
| 28 | def get_gcc_ppc_plt_settings(bb, d): | 28 | def get_gcc_ppc_plt_settings(bb, d): |
| 29 | if d.getVar('TRANSLATED_TARGET_ARCH', True) in [ 'powerpc' ] and not bb.utils.contains('DISTRO_FEATURES', 'bssplt', True, False, d): | 29 | if d.getVar('TRANSLATED_TARGET_ARCH') in [ 'powerpc' ] and not bb.utils.contains('DISTRO_FEATURES', 'bssplt', True, False, d): |
| 30 | return "--enable-secureplt" | 30 | return "--enable-secureplt" |
| 31 | return "" | 31 | return "" |
| 32 | 32 | ||
| 33 | def get_long_double_setting(bb, d): | 33 | def get_long_double_setting(bb, d): |
| 34 | if d.getVar('TRANSLATED_TARGET_ARCH', True) in [ 'powerpc', 'powerpc64' ] and d.getVar('TCLIBC', True) in [ 'uclibc', 'glibc' ]: | 34 | if d.getVar('TRANSLATED_TARGET_ARCH') in [ 'powerpc', 'powerpc64' ] and d.getVar('TCLIBC') in [ 'uclibc', 'glibc' ]: |
| 35 | return "--with-long-double-128" | 35 | return "--with-long-double-128" |
| 36 | else: | 36 | else: |
| 37 | return "--without-long-double-128" | 37 | return "--without-long-double-128" |
| 38 | return "" | 38 | return "" |
| 39 | 39 | ||
| 40 | def get_gcc_multiarch_setting(bb, d): | 40 | def get_gcc_multiarch_setting(bb, d): |
| 41 | target_arch = d.getVar('TRANSLATED_TARGET_ARCH', True) | 41 | target_arch = d.getVar('TRANSLATED_TARGET_ARCH') |
| 42 | multiarch_options = { | 42 | multiarch_options = { |
| 43 | "i586": "--enable-targets=all", | 43 | "i586": "--enable-targets=all", |
| 44 | "i686": "--enable-targets=all", | 44 | "i686": "--enable-targets=all", |
| @@ -54,7 +54,7 @@ def get_gcc_multiarch_setting(bb, d): | |||
| 54 | 54 | ||
| 55 | # this is used by the multilib setup of gcc | 55 | # this is used by the multilib setup of gcc |
| 56 | def get_tune_parameters(tune, d): | 56 | def get_tune_parameters(tune, d): |
| 57 | availtunes = d.getVar('AVAILTUNES', True) | 57 | availtunes = d.getVar('AVAILTUNES') |
| 58 | if tune not in availtunes.split(): | 58 | if tune not in availtunes.split(): |
| 59 | bb.error('The tune: %s is not one of the available tunes: %s' % (tune or None, availtunes)) | 59 | bb.error('The tune: %s is not one of the available tunes: %s' % (tune or None, availtunes)) |
| 60 | 60 | ||
| @@ -65,15 +65,15 @@ def get_tune_parameters(tune, d): | |||
| 65 | 65 | ||
| 66 | retdict = {} | 66 | retdict = {} |
| 67 | retdict['tune'] = tune | 67 | retdict['tune'] = tune |
| 68 | retdict['ccargs'] = localdata.getVar('TUNE_CCARGS', True) | 68 | retdict['ccargs'] = localdata.getVar('TUNE_CCARGS') |
| 69 | retdict['features'] = localdata.getVar('TUNE_FEATURES', True) | 69 | retdict['features'] = localdata.getVar('TUNE_FEATURES') |
| 70 | # BASELIB is used by the multilib code to change library paths | 70 | # BASELIB is used by the multilib code to change library paths |
| 71 | retdict['baselib'] = localdata.getVar('BASE_LIB', True) or localdata.getVar('BASELIB', True) | 71 | retdict['baselib'] = localdata.getVar('BASE_LIB') or localdata.getVar('BASELIB') |
| 72 | retdict['arch'] = localdata.getVar('TUNE_ARCH', True) | 72 | retdict['arch'] = localdata.getVar('TUNE_ARCH') |
| 73 | retdict['abiextension'] = localdata.getVar('ABIEXTENSION', True) | 73 | retdict['abiextension'] = localdata.getVar('ABIEXTENSION') |
| 74 | retdict['target_fpu'] = localdata.getVar('TARGET_FPU', True) | 74 | retdict['target_fpu'] = localdata.getVar('TARGET_FPU') |
| 75 | retdict['pkgarch'] = localdata.getVar('TUNE_PKGARCH', True) | 75 | retdict['pkgarch'] = localdata.getVar('TUNE_PKGARCH') |
| 76 | retdict['package_extra_archs'] = localdata.getVar('PACKAGE_EXTRA_ARCHS', True) | 76 | retdict['package_extra_archs'] = localdata.getVar('PACKAGE_EXTRA_ARCHS') |
| 77 | return retdict | 77 | return retdict |
| 78 | 78 | ||
| 79 | get_tune_parameters[vardepsexclude] = "AVAILTUNES TUNE_CCARGS OVERRIDES TUNE_FEATURES BASE_LIB BASELIB TUNE_ARCH ABIEXTENSION TARGET_FPU TUNE_PKGARCH PACKAGE_EXTRA_ARCHS" | 79 | get_tune_parameters[vardepsexclude] = "AVAILTUNES TUNE_CCARGS OVERRIDES TUNE_FEATURES BASE_LIB BASELIB TUNE_ARCH ABIEXTENSION TARGET_FPU TUNE_PKGARCH PACKAGE_EXTRA_ARCHS" |
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc index ddebbb8410..00ef89ec57 100644 --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc | |||
| @@ -23,7 +23,7 @@ GCCMULTILIB ?= "--disable-multilib" | |||
| 23 | GCCTHREADS ?= "posix" | 23 | GCCTHREADS ?= "posix" |
| 24 | 24 | ||
| 25 | EXTRA_OECONF = "\ | 25 | EXTRA_OECONF = "\ |
| 26 | ${@['--enable-clocale=generic', ''][d.getVar('USE_NLS', True) != 'no']} \ | 26 | ${@['--enable-clocale=generic', ''][d.getVar('USE_NLS') != 'no']} \ |
| 27 | --with-gnu-ld \ | 27 | --with-gnu-ld \ |
| 28 | --enable-shared \ | 28 | --enable-shared \ |
| 29 | --enable-languages=${LANGUAGES} \ | 29 | --enable-languages=${LANGUAGES} \ |
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc index cc465a2796..c4f7084ba0 100644 --- a/meta/recipes-devtools/gcc/gcc-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-cross.inc | |||
| @@ -5,7 +5,7 @@ EXTRADEPENDS = "" | |||
| 5 | DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc ${EXTRADEPENDS} ${NATIVEDEPS}" | 5 | DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc ${EXTRADEPENDS} ${NATIVEDEPS}" |
| 6 | PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" | 6 | PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" |
| 7 | python () { | 7 | python () { |
| 8 | if d.getVar("TARGET_OS", True).startswith("linux"): | 8 | if d.getVar("TARGET_OS").startswith("linux"): |
| 9 | d.setVar("EXTRADEPENDS", "linux-libc-headers") | 9 | d.setVar("EXTRADEPENDS", "linux-libc-headers") |
| 10 | } | 10 | } |
| 11 | 11 | ||
diff --git a/meta/recipes-devtools/gcc/gcc-multilib-config.inc b/meta/recipes-devtools/gcc/gcc-multilib-config.inc index a0a2ac09a7..31b8619be3 100644 --- a/meta/recipes-devtools/gcc/gcc-multilib-config.inc +++ b/meta/recipes-devtools/gcc/gcc-multilib-config.inc | |||
| @@ -21,8 +21,8 @@ python gcc_multilib_setup() { | |||
| 21 | import shutil | 21 | import shutil |
| 22 | import glob | 22 | import glob |
| 23 | 23 | ||
| 24 | srcdir = d.getVar('S', True) | 24 | srcdir = d.getVar('S') |
| 25 | builddir = d.getVar('B', True) | 25 | builddir = d.getVar('B') |
| 26 | src_conf_dir = '%s/gcc/config' % srcdir | 26 | src_conf_dir = '%s/gcc/config' % srcdir |
| 27 | build_conf_dir = '%s/gcc/config' % builddir | 27 | build_conf_dir = '%s/gcc/config' % builddir |
| 28 | 28 | ||
| @@ -43,12 +43,12 @@ python gcc_multilib_setup() { | |||
| 43 | bb.utils.mkdirhier('%s/%s' % (build_conf_dir, parent_dir)) | 43 | bb.utils.mkdirhier('%s/%s' % (build_conf_dir, parent_dir)) |
| 44 | bb.utils.copyfile(fn, '%s/%s' % (build_conf_dir, rel_path)) | 44 | bb.utils.copyfile(fn, '%s/%s' % (build_conf_dir, rel_path)) |
| 45 | 45 | ||
| 46 | pn = d.getVar('PN', True) | 46 | pn = d.getVar('PN') |
| 47 | multilibs = (d.getVar('MULTILIB_VARIANTS', True) or '').split() | 47 | multilibs = (d.getVar('MULTILIB_VARIANTS') or '').split() |
| 48 | if not multilibs and pn != "nativesdk-gcc": | 48 | if not multilibs and pn != "nativesdk-gcc": |
| 49 | return | 49 | return |
| 50 | 50 | ||
| 51 | mlprefix = d.getVar('MLPREFIX', True) | 51 | mlprefix = d.getVar('MLPREFIX') |
| 52 | 52 | ||
| 53 | if ('%sgcc' % mlprefix) != pn and (not pn.startswith('gcc-cross-canadian')) and pn != "nativesdk-gcc": | 53 | if ('%sgcc' % mlprefix) != pn and (not pn.startswith('gcc-cross-canadian')) and pn != "nativesdk-gcc": |
| 54 | return | 54 | return |
| @@ -155,10 +155,10 @@ python gcc_multilib_setup() { | |||
| 155 | libdirn32 = 'SYSTEMLIBS_DIR' | 155 | libdirn32 = 'SYSTEMLIBS_DIR' |
| 156 | 156 | ||
| 157 | 157 | ||
| 158 | target_arch = (d.getVar('TARGET_ARCH_MULTILIB_ORIGINAL', True) if mlprefix | 158 | target_arch = (d.getVar('TARGET_ARCH_MULTILIB_ORIGINAL') if mlprefix |
| 159 | else d.getVar('TARGET_ARCH', True)) | 159 | else d.getVar('TARGET_ARCH')) |
| 160 | if pn == "nativesdk-gcc": | 160 | if pn == "nativesdk-gcc": |
| 161 | header_config_files = gcc_header_config_files[d.getVar("SDK_ARCH", True)] | 161 | header_config_files = gcc_header_config_files[d.getVar("SDK_ARCH")] |
| 162 | write_headers(builddir, header_config_files, libdir32, libdir64, libdirx32, libdirn32) | 162 | write_headers(builddir, header_config_files, libdir32, libdir64, libdirx32, libdirn32) |
| 163 | return | 163 | return |
| 164 | 164 | ||
| @@ -188,7 +188,7 @@ python gcc_multilib_setup() { | |||
| 188 | optsets = [] | 188 | optsets = [] |
| 189 | 189 | ||
| 190 | for ml in ml_list: | 190 | for ml in ml_list: |
| 191 | tune = d.getVar(ml, True) | 191 | tune = d.getVar(ml) |
| 192 | if not tune: | 192 | if not tune: |
| 193 | bb.warn("%s doesn't have a corresponding tune. Skipping..." % ml) | 193 | bb.warn("%s doesn't have a corresponding tune. Skipping..." % ml) |
| 194 | continue | 194 | continue |
| @@ -212,7 +212,7 @@ python gcc_multilib_setup() { | |||
| 212 | 212 | ||
| 213 | # take out '-' mcpu='s and march='s from parameters | 213 | # take out '-' mcpu='s and march='s from parameters |
| 214 | opts = [] | 214 | opts = [] |
| 215 | whitelist = (d.getVar("MULTILIB_OPTION_WHITELIST", True) or "").split() | 215 | whitelist = (d.getVar("MULTILIB_OPTION_WHITELIST") or "").split() |
| 216 | for i in d.expand(tune_parameters['ccargs']).split(): | 216 | for i in d.expand(tune_parameters['ccargs']).split(): |
| 217 | if i in whitelist: | 217 | if i in whitelist: |
| 218 | # Need to strip '-' from option | 218 | # Need to strip '-' from option |
diff --git a/meta/recipes-devtools/gcc/libgcc-common.inc b/meta/recipes-devtools/gcc/libgcc-common.inc index 8a13f542c1..74e9faa528 100644 --- a/meta/recipes-devtools/gcc/libgcc-common.inc +++ b/meta/recipes-devtools/gcc/libgcc-common.inc | |||
| @@ -64,18 +64,18 @@ addtask multilib_install after do_install before do_package do_populate_sysroot | |||
| 64 | fakeroot python do_multilib_install() { | 64 | fakeroot python do_multilib_install() { |
| 65 | import re | 65 | import re |
| 66 | 66 | ||
| 67 | multilibs = d.getVar('MULTILIB_VARIANTS', True) | 67 | multilibs = d.getVar('MULTILIB_VARIANTS') |
| 68 | if not multilibs or bb.data.inherits_class('nativesdk', d): | 68 | if not multilibs or bb.data.inherits_class('nativesdk', d): |
| 69 | return | 69 | return |
| 70 | 70 | ||
| 71 | binv = d.getVar('BINV', True) | 71 | binv = d.getVar('BINV') |
| 72 | 72 | ||
| 73 | mlprefix = d.getVar('MLPREFIX', True) | 73 | mlprefix = d.getVar('MLPREFIX') |
| 74 | if ('%slibgcc' % mlprefix) != d.getVar('PN', True): | 74 | if ('%slibgcc' % mlprefix) != d.getVar('PN'): |
| 75 | return | 75 | return |
| 76 | 76 | ||
| 77 | if mlprefix: | 77 | if mlprefix: |
| 78 | orig_tune = d.getVar('DEFAULTTUNE_MULTILIB_ORIGINAL', True) | 78 | orig_tune = d.getVar('DEFAULTTUNE_MULTILIB_ORIGINAL') |
| 79 | orig_tune_params = get_tune_parameters(orig_tune, d) | 79 | orig_tune_params = get_tune_parameters(orig_tune, d) |
| 80 | orig_tune_baselib = orig_tune_params['baselib'] | 80 | orig_tune_baselib = orig_tune_params['baselib'] |
| 81 | orig_tune_bitness = orig_tune_baselib.replace('lib', '') | 81 | orig_tune_bitness = orig_tune_baselib.replace('lib', '') |
| @@ -83,10 +83,10 @@ fakeroot python do_multilib_install() { | |||
| 83 | orig_tune_bitness = '32' | 83 | orig_tune_bitness = '32' |
| 84 | 84 | ||
| 85 | src = '../../../' + orig_tune_baselib + '/' + \ | 85 | src = '../../../' + orig_tune_baselib + '/' + \ |
| 86 | d.getVar('TARGET_SYS_MULTILIB_ORIGINAL', True) + '/' + binv + '/' | 86 | d.getVar('TARGET_SYS_MULTILIB_ORIGINAL') + '/' + binv + '/' |
| 87 | 87 | ||
| 88 | dest = d.getVar('D', True) + d.getVar('libdir', True) + '/' + \ | 88 | dest = d.getVar('D') + d.getVar('libdir') + '/' + \ |
| 89 | d.getVar('TARGET_SYS', True) + '/' + binv + '/' + orig_tune_bitness | 89 | d.getVar('TARGET_SYS') + '/' + binv + '/' + orig_tune_bitness |
| 90 | 90 | ||
| 91 | if os.path.lexists(dest): | 91 | if os.path.lexists(dest): |
| 92 | os.unlink(dest) | 92 | os.unlink(dest) |
| @@ -95,7 +95,7 @@ fakeroot python do_multilib_install() { | |||
| 95 | 95 | ||
| 96 | 96 | ||
| 97 | for ml in multilibs.split(): | 97 | for ml in multilibs.split(): |
| 98 | tune = d.getVar('DEFAULTTUNE_virtclass-multilib-' + ml, True) | 98 | tune = d.getVar('DEFAULTTUNE_virtclass-multilib-' + ml) |
| 99 | if not tune: | 99 | if not tune: |
| 100 | bb.warn('DEFAULTTUNE_virtclass-multilib-%s is not defined. Skipping...' % ml) | 100 | bb.warn('DEFAULTTUNE_virtclass-multilib-%s is not defined. Skipping...' % ml) |
| 101 | continue | 101 | continue |
| @@ -118,11 +118,11 @@ fakeroot python do_multilib_install() { | |||
| 118 | libcextension = '' | 118 | libcextension = '' |
| 119 | 119 | ||
| 120 | src = '../../../' + tune_baselib + '/' + \ | 120 | src = '../../../' + tune_baselib + '/' + \ |
| 121 | tune_arch + d.getVar('TARGET_VENDOR', True) + 'ml' + ml + \ | 121 | tune_arch + d.getVar('TARGET_VENDOR') + 'ml' + ml + \ |
| 122 | '-' + d.getVar('TARGET_OS', True) + libcextension + '/' + binv + '/' | 122 | '-' + d.getVar('TARGET_OS') + libcextension + '/' + binv + '/' |
| 123 | 123 | ||
| 124 | dest = d.getVar('D', True) + d.getVar('libdir', True) + '/' + \ | 124 | dest = d.getVar('D') + d.getVar('libdir') + '/' + \ |
| 125 | d.getVar('TARGET_SYS', True) + '/' + binv + '/' + tune_bitness | 125 | d.getVar('TARGET_SYS') + '/' + binv + '/' + tune_bitness |
| 126 | 126 | ||
| 127 | if os.path.lexists(dest): | 127 | if os.path.lexists(dest): |
| 128 | os.unlink(dest) | 128 | os.unlink(dest) |
| @@ -131,7 +131,7 @@ fakeroot python do_multilib_install() { | |||
| 131 | 131 | ||
| 132 | def get_original_os(d): | 132 | def get_original_os(d): |
| 133 | vendoros = d.expand('${TARGET_ARCH}${ORIG_TARGET_VENDOR}-${TARGET_OS}') | 133 | vendoros = d.expand('${TARGET_ARCH}${ORIG_TARGET_VENDOR}-${TARGET_OS}') |
| 134 | for suffix in [d.getVar('ABIEXTENSION', True), d.getVar('LIBCEXTENSION', True)]: | 134 | for suffix in [d.getVar('ABIEXTENSION'), d.getVar('LIBCEXTENSION')]: |
| 135 | if suffix and vendoros.endswith(suffix): | 135 | if suffix and vendoros.endswith(suffix): |
| 136 | vendoros = vendoros[:-len(suffix)] | 136 | vendoros = vendoros[:-len(suffix)] |
| 137 | # Arm must use linux-gnueabi not linux as only the former is accepted by gcc | 137 | # Arm must use linux-gnueabi not linux as only the former is accepted by gcc |
| @@ -144,11 +144,11 @@ BASETARGET_SYS = "${@get_original_os(d)}" | |||
| 144 | 144 | ||
| 145 | addtask extra_symlinks after do_multilib_install before do_package do_populate_sysroot | 145 | addtask extra_symlinks after do_multilib_install before do_package do_populate_sysroot |
| 146 | fakeroot python do_extra_symlinks() { | 146 | fakeroot python do_extra_symlinks() { |
| 147 | targetsys = d.getVar('BASETARGET_SYS', True) | 147 | targetsys = d.getVar('BASETARGET_SYS') |
| 148 | 148 | ||
| 149 | if targetsys != d.getVar('TARGET_SYS', True): | 149 | if targetsys != d.getVar('TARGET_SYS'): |
| 150 | dest = d.getVar('D', True) + d.getVar('libdir', True) + '/' + targetsys | 150 | dest = d.getVar('D') + d.getVar('libdir') + '/' + targetsys |
| 151 | src = d.getVar('TARGET_SYS', True) | 151 | src = d.getVar('TARGET_SYS') |
| 152 | if not os.path.lexists(dest) and os.path.lexists(d.getVar('D', True) + d.getVar('libdir', True)): | 152 | if not os.path.lexists(dest) and os.path.lexists(d.getVar('D') + d.getVar('libdir')): |
| 153 | os.symlink(src, dest) | 153 | os.symlink(src, dest) |
| 154 | } | 154 | } |
diff --git a/meta/recipes-devtools/gcc/libgfortran.inc b/meta/recipes-devtools/gcc/libgfortran.inc index 58ceb2e073..194363543e 100644 --- a/meta/recipes-devtools/gcc/libgfortran.inc +++ b/meta/recipes-devtools/gcc/libgfortran.inc | |||
| @@ -69,7 +69,7 @@ do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata" | |||
| 69 | do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata" | 69 | do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata" |
| 70 | 70 | ||
| 71 | python __anonymous () { | 71 | python __anonymous () { |
| 72 | f = d.getVar("FORTRAN", True) | 72 | f = d.getVar("FORTRAN") |
| 73 | if "fortran" not in f: | 73 | if "fortran" not in f: |
| 74 | raise bb.parse.SkipPackage("libgfortran needs fortran support to be enabled in the compiler") | 74 | raise bb.parse.SkipPackage("libgfortran needs fortran support to be enabled in the compiler") |
| 75 | } | 75 | } |
diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc index 753b0472a5..ade99ecfe0 100644 --- a/meta/recipes-devtools/git/git.inc +++ b/meta/recipes-devtools/git/git.inc | |||
| @@ -46,7 +46,7 @@ do_install () { | |||
| 46 | perl_native_fixup () { | 46 | perl_native_fixup () { |
| 47 | sed -i -e 's#${STAGING_BINDIR_NATIVE}/perl-native/#${bindir}/#' \ | 47 | sed -i -e 's#${STAGING_BINDIR_NATIVE}/perl-native/#${bindir}/#' \ |
| 48 | -e 's#${libdir}/perl-native/#${libdir}/#' \ | 48 | -e 's#${libdir}/perl-native/#${libdir}/#' \ |
| 49 | ${@d.getVar("PERLTOOLS", True).replace(' /',d.getVar('D', True) + '/')} | 49 | ${@d.getVar("PERLTOOLS").replace(' /',d.getVar('D') + '/')} |
| 50 | 50 | ||
| 51 | # ${libdir} is not applicable here, perl-native files are always | 51 | # ${libdir} is not applicable here, perl-native files are always |
| 52 | # installed to /usr/lib on both 32/64 bits targets. | 52 | # installed to /usr/lib on both 32/64 bits targets. |
diff --git a/meta/recipes-devtools/kconfig-frontends/kconfig-frontends_3.12.0.0.bb b/meta/recipes-devtools/kconfig-frontends/kconfig-frontends_3.12.0.0.bb index 9b65a991d4..09e10c9e0e 100644 --- a/meta/recipes-devtools/kconfig-frontends/kconfig-frontends_3.12.0.0.bb +++ b/meta/recipes-devtools/kconfig-frontends/kconfig-frontends_3.12.0.0.bb | |||
| @@ -32,7 +32,7 @@ EXTRA_OECONF += "--disable-gconf --disable-qconf" | |||
| 32 | 32 | ||
| 33 | # Some packages have the version preceeding the .so instead properly | 33 | # Some packages have the version preceeding the .so instead properly |
| 34 | # versioned .so.<version>, so we need to reorder and repackage. | 34 | # versioned .so.<version>, so we need to reorder and repackage. |
| 35 | SOLIBS = "-${@d.getVar('PV', True)[:-2]}.so" | 35 | SOLIBS = "-${@d.getVar('PV')[:-2]}.so" |
| 36 | FILES_SOLIBSDEV = "${libdir}/libkconfig-parser.so" | 36 | FILES_SOLIBSDEV = "${libdir}/libkconfig-parser.so" |
| 37 | 37 | ||
| 38 | BBCLASSEXTEND = "native" | 38 | BBCLASSEXTEND = "native" |
diff --git a/meta/recipes-devtools/perl/perl_5.24.0.bb b/meta/recipes-devtools/perl/perl_5.24.0.bb index ab50d29d33..6804341170 100644 --- a/meta/recipes-devtools/perl/perl_5.24.0.bb +++ b/meta/recipes-devtools/perl/perl_5.24.0.bb | |||
| @@ -356,7 +356,7 @@ python split_perl_packages () { | |||
| 356 | # perl-modules should recommend every perl module, and only the | 356 | # perl-modules should recommend every perl module, and only the |
| 357 | # modules. Don't attempt to use the result of do_split_packages() as some | 357 | # modules. Don't attempt to use the result of do_split_packages() as some |
| 358 | # modules are manually split (eg. perl-module-unicore). | 358 | # modules are manually split (eg. perl-module-unicore). |
| 359 | packages = filter(lambda p: 'perl-module-' in p, d.getVar('PACKAGES', True).split()) | 359 | packages = filter(lambda p: 'perl-module-' in p, d.getVar('PACKAGES').split()) |
| 360 | d.setVar(d.expand("RRECOMMENDS_${PN}-modules"), ' '.join(packages)) | 360 | d.setVar(d.expand("RRECOMMENDS_${PN}-modules"), ' '.join(packages)) |
| 361 | } | 361 | } |
| 362 | 362 | ||
diff --git a/meta/recipes-devtools/prelink/prelink_git.bb b/meta/recipes-devtools/prelink/prelink_git.bb index 0856b1c667..4529dbfcfb 100644 --- a/meta/recipes-devtools/prelink/prelink_git.bb +++ b/meta/recipes-devtools/prelink/prelink_git.bb | |||
| @@ -132,7 +132,7 @@ python do_linkerpaths () { | |||
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | python () { | 134 | python () { |
| 135 | overrides = d.getVar("OVERRIDES", True).split(":") | 135 | overrides = d.getVar("OVERRIDES").split(":") |
| 136 | if "class-target" in overrides: | 136 | if "class-target" in overrides: |
| 137 | bb.build.addtask('do_linkerpaths', 'do_configure', 'do_patch', d) | 137 | bb.build.addtask('do_linkerpaths', 'do_configure', 'do_patch', d) |
| 138 | } | 138 | } |
diff --git a/meta/recipes-devtools/python/python-smartpm_git.bb b/meta/recipes-devtools/python/python-smartpm_git.bb index 861910cc29..6daabf49a6 100644 --- a/meta/recipes-devtools/python/python-smartpm_git.bb +++ b/meta/recipes-devtools/python/python-smartpm_git.bb | |||
| @@ -97,9 +97,9 @@ do_install_append() { | |||
| 97 | 97 | ||
| 98 | add_native_wrapper() { | 98 | add_native_wrapper() { |
| 99 | create_wrapper ${D}/${bindir}/smart \ | 99 | create_wrapper ${D}/${bindir}/smart \ |
| 100 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | 100 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir'), d.getVar('bindir'))}/rpm \ |
| 101 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | 101 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir'), d.getVar('bindir'))}/rpm} \ |
| 102 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | 102 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))}/locale |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | do_install_append_class-native() { | 105 | do_install_append_class-native() { |
diff --git a/meta/recipes-devtools/qemu/qemu-targets.inc b/meta/recipes-devtools/qemu/qemu-targets.inc index a3e46a894e..66dd675ed4 100644 --- a/meta/recipes-devtools/qemu/qemu-targets.inc +++ b/meta/recipes-devtools/qemu/qemu-targets.inc | |||
| @@ -4,8 +4,8 @@ | |||
| 4 | 4 | ||
| 5 | def get_qemu_target_list(d): | 5 | def get_qemu_target_list(d): |
| 6 | import bb | 6 | import bb |
| 7 | archs = d.getVar('QEMU_TARGETS', True).split() | 7 | archs = d.getVar('QEMU_TARGETS').split() |
| 8 | tos = d.getVar('HOST_OS', True) | 8 | tos = d.getVar('HOST_OS') |
| 9 | softmmuonly = "" | 9 | softmmuonly = "" |
| 10 | for arch in ['ppcemb']: | 10 | for arch in ['ppcemb']: |
| 11 | if arch in archs: | 11 | if arch in archs: |
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.16.bb b/meta/recipes-devtools/rpm/rpm_5.4.16.bb index 182818ee09..3df4d1ff1d 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.16.bb +++ b/meta/recipes-devtools/rpm/rpm_5.4.16.bb | |||
| @@ -626,13 +626,13 @@ def multilib_rpmmacros(d): | |||
| 626 | localdata.delVar('TOOLCHAIN_OPTIONS') | 626 | localdata.delVar('TOOLCHAIN_OPTIONS') |
| 627 | 627 | ||
| 628 | # Set 'localdata' values to be consistent with 'd' values. | 628 | # Set 'localdata' values to be consistent with 'd' values. |
| 629 | distromacrodirVal = d.getVar('distromacrodir', True) | 629 | distromacrodirVal = d.getVar('distromacrodir') |
| 630 | workdirVal = d.getVar('WORKDIR', True) | 630 | workdirVal = d.getVar('WORKDIR') |
| 631 | dval = d.getVar('D', True) | 631 | dval = d.getVar('D') |
| 632 | 632 | ||
| 633 | ret = gen_arch_macro(localdata) | 633 | ret = gen_arch_macro(localdata) |
| 634 | 634 | ||
| 635 | variants = d.getVar("MULTILIB_VARIANTS", True) or "" | 635 | variants = d.getVar("MULTILIB_VARIANTS") or "" |
| 636 | for item in variants.split(): | 636 | for item in variants.split(): |
| 637 | # Load overrides from 'd' to avoid having to reset the value... | 637 | # Load overrides from 'd' to avoid having to reset the value... |
| 638 | localdata = d.createCopy() | 638 | localdata = d.createCopy() |
| @@ -656,17 +656,17 @@ def gen_arch_macro(d): | |||
| 656 | val += "\n" | 656 | val += "\n" |
| 657 | val += "# Toolchain configuration\n" | 657 | val += "# Toolchain configuration\n" |
| 658 | val += "%TOOLCHAIN_OPTIONS %{nil}\n" | 658 | val += "%TOOLCHAIN_OPTIONS %{nil}\n" |
| 659 | val += "%__ar ${@d.getVar('AR', True).replace('$','%')}\n" | 659 | val += "%__ar ${@d.getVar('AR').replace('$','%')}\n" |
| 660 | val += "%__as ${@d.getVar('AS', True).replace('$','%')}\n" | 660 | val += "%__as ${@d.getVar('AS').replace('$','%')}\n" |
| 661 | val += "%__cc ${@d.getVar('CC', True).replace('$','%')}\n" | 661 | val += "%__cc ${@d.getVar('CC').replace('$','%')}\n" |
| 662 | val += "%__cpp ${@d.getVar('CPP', True).replace('$','%')}\n" | 662 | val += "%__cpp ${@d.getVar('CPP').replace('$','%')}\n" |
| 663 | val += "%__cxx ${@d.getVar('CXX', True).replace('$','%')}\n" | 663 | val += "%__cxx ${@d.getVar('CXX').replace('$','%')}\n" |
| 664 | val += "%__ld ${@d.getVar('LD', True).replace('$','%')}\n" | 664 | val += "%__ld ${@d.getVar('LD').replace('$','%')}\n" |
| 665 | val += "%__nm ${@d.getVar('NM', True).replace('$','%')}\n" | 665 | val += "%__nm ${@d.getVar('NM').replace('$','%')}\n" |
| 666 | val += "%__objcopy ${@d.getVar('OBJCOPY', True).replace('$','%')}\n" | 666 | val += "%__objcopy ${@d.getVar('OBJCOPY').replace('$','%')}\n" |
| 667 | val += "%__objdump ${@d.getVar('OBJDUMP', True).replace('$','%')}\n" | 667 | val += "%__objdump ${@d.getVar('OBJDUMP').replace('$','%')}\n" |
| 668 | val += "%__ranlib ${@d.getVar('RANLIB', True).replace('$','%')}\n" | 668 | val += "%__ranlib ${@d.getVar('RANLIB').replace('$','%')}\n" |
| 669 | val += "%__strip ${@d.getVar('STRIP', True).replace('$','%')}\n" | 669 | val += "%__strip ${@d.getVar('STRIP').replace('$','%')}\n" |
| 670 | val += "EOF\n" | 670 | val += "EOF\n" |
| 671 | val += "\n" | 671 | val += "\n" |
| 672 | return d.expand(val) | 672 | return d.expand(val) |
| @@ -674,30 +674,30 @@ def gen_arch_macro(d): | |||
| 674 | 674 | ||
| 675 | add_native_wrapper() { | 675 | add_native_wrapper() { |
| 676 | create_wrapper ${D}/${bindir}/rpm \ | 676 | create_wrapper ${D}/${bindir}/rpm \ |
| 677 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | 677 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir'), d.getVar('bindir'))}/rpm \ |
| 678 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | 678 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir'), d.getVar('bindir'))}/rpm} \ |
| 679 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | 679 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))}/locale |
| 680 | 680 | ||
| 681 | create_wrapper ${D}/${bindir}/rpm2cpio \ | 681 | create_wrapper ${D}/${bindir}/rpm2cpio \ |
| 682 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | 682 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir'), d.getVar('bindir'))}/rpm \ |
| 683 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | 683 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir'), d.getVar('bindir'))}/rpm} \ |
| 684 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | 684 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))}/locale |
| 685 | 685 | ||
| 686 | create_wrapper ${D}/${bindir}/rpmbuild \ | 686 | create_wrapper ${D}/${bindir}/rpmbuild \ |
| 687 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | 687 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir'), d.getVar('bindir'))}/rpm \ |
| 688 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | 688 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir'), d.getVar('bindir'))}/rpm} \ |
| 689 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | 689 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))}/locale |
| 690 | 690 | ||
| 691 | create_wrapper ${D}/${bindir}/rpmconstant \ | 691 | create_wrapper ${D}/${bindir}/rpmconstant \ |
| 692 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | 692 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir'), d.getVar('bindir'))}/rpm \ |
| 693 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | 693 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir'), d.getVar('bindir'))}/rpm} \ |
| 694 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | 694 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))}/locale |
| 695 | 695 | ||
| 696 | for rpm_binary in ${D}/${libdir}/rpm/bin/rpm* ${D}/${libdir}/rpm/bin/debugedit; do | 696 | for rpm_binary in ${D}/${libdir}/rpm/bin/rpm* ${D}/${libdir}/rpm/bin/debugedit; do |
| 697 | create_wrapper $rpm_binary \ | 697 | create_wrapper $rpm_binary \ |
| 698 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | 698 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir'), d.getVar('bindir'))}/rpm \ |
| 699 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | 699 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir'), d.getVar('bindir'))}/rpm} \ |
| 700 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | 700 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir'), d.getVar('bindir'))}/locale |
| 701 | done | 701 | done |
| 702 | } | 702 | } |
| 703 | 703 | ||
diff --git a/meta/recipes-devtools/swig/swig.inc b/meta/recipes-devtools/swig/swig.inc index 704bb27b92..8cb6fbd48b 100644 --- a/meta/recipes-devtools/swig/swig.inc +++ b/meta/recipes-devtools/swig/swig.inc | |||
| @@ -54,8 +54,8 @@ do_install_append_class-nativesdk() { | |||
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | def swiglib_relpath(d): | 56 | def swiglib_relpath(d): |
| 57 | swiglib = d.getVar('datadir', True) + "/" + d.getVar('BPN', True) + "/" + d.getVar('PV', True) | 57 | swiglib = d.getVar('datadir') + "/" + d.getVar('BPN') + "/" + d.getVar('PV') |
| 58 | return os.path.relpath(swiglib, d.getVar('bindir', True)) | 58 | return os.path.relpath(swiglib, d.getVar('bindir')) |
| 59 | 59 | ||
| 60 | do_install_append_class-native() { | 60 | do_install_append_class-native() { |
| 61 | create_wrapper ${D}${bindir}/swig SWIG_LIB='`dirname $''realpath`'/${@swiglib_relpath(d)} | 61 | create_wrapper ${D}${bindir}/swig SWIG_LIB='`dirname $''realpath`'/${@swiglib_relpath(d)} |
diff --git a/meta/recipes-devtools/vala/vala.inc b/meta/recipes-devtools/vala/vala.inc index afa09ec12e..b338ea097a 100644 --- a/meta/recipes-devtools/vala/vala.inc +++ b/meta/recipes-devtools/vala/vala.inc | |||
| @@ -11,7 +11,7 @@ HOMEPAGE = "http://vala-project.org" | |||
| 11 | LICENSE = "LGPLv2.1" | 11 | LICENSE = "LGPLv2.1" |
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" | 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" |
| 13 | 13 | ||
| 14 | SHRT_VER = "${@d.getVar('PV', True).split('.')[0]}.${@d.getVar('PV', True).split('.')[1]}" | 14 | SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" |
| 15 | 15 | ||
| 16 | SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/${BPN}/${SHRT_VER}/${BP}.tar.xz" | 16 | SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/${BPN}/${SHRT_VER}/${BP}.tar.xz" |
| 17 | inherit autotools pkgconfig upstream-version-is-even | 17 | inherit autotools pkgconfig upstream-version-is-even |
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.12.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.12.0.bb index 9b28d3701e..3385ef70c0 100644 --- a/meta/recipes-devtools/valgrind/valgrind_3.12.0.bb +++ b/meta/recipes-devtools/valgrind/valgrind_3.12.0.bb | |||
| @@ -46,7 +46,7 @@ COMPATIBLE_HOST_mipsarchr6 = 'null' | |||
| 46 | inherit autotools ptest | 46 | inherit autotools ptest |
| 47 | 47 | ||
| 48 | EXTRA_OECONF = "--enable-tls --without-mpicc" | 48 | EXTRA_OECONF = "--enable-tls --without-mpicc" |
| 49 | EXTRA_OECONF += "${@['--enable-only32bit','--enable-only64bit'][d.getVar('SITEINFO_BITS', True) != '32']}" | 49 | EXTRA_OECONF += "${@['--enable-only32bit','--enable-only64bit'][d.getVar('SITEINFO_BITS') != '32']}" |
| 50 | 50 | ||
| 51 | # valgrind checks host_cpu "armv7*)", so we need to over-ride the autotools.bbclass default --host option | 51 | # valgrind checks host_cpu "armv7*)", so we need to over-ride the autotools.bbclass default --host option |
| 52 | EXTRA_OECONF_append_arm = " --host=armv7${HOST_VENDOR}-${HOST_OS}" | 52 | EXTRA_OECONF_append_arm = " --host=armv7${HOST_VENDOR}-${HOST_OS}" |
