generic-poky/meta/classes
Alexander Kanavin cf1af6b384 pythonnative.bbclass, python3native.bbclass: export STAGING_INCDIR, STAGING_LIBDIR, PYTHON variables
We patch Python's distutils modules to access STAGING_INCDIR/LIBDIR, so when
they are not set, scripts that utilize distutils (e.g. python-config) fail.
Several recipes need to export those manually to prevent such failures,
so let's do that in the class instead.

PYTHON variable is exported because otherwise autotools' python.m4
macro will pick up its own internal default, which may not be the version
that we want.

glib recipe in particular was previously using Python 2.x during build due to python.m4
defaulting to it - now it's using Python 3.x, and so needs a small fix in
deletion of *.pyc files.

(From OE-Core rev: c1e0eb62f2d89b10b187016200018830b1c77945)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-07-01 16:22:42 +01:00
..
allarch.bbclass allarch: Force TARGET_*FLAGS variable values 2015-11-24 15:55:40 +00:00
archiver.bbclass archiver: Improve debug output 2016-04-13 20:58:41 +01:00
autotools-brokensep.bbclass autotools-brokensep: Mark recipes with broken separate build dir support 2014-02-28 14:01:16 +00:00
autotools.bbclass autotools: ensure Makefile exists in do_compile 2016-06-23 14:26:14 +01:00
base.bbclass base.bbclass: p4 fetcher supports srcrev 2016-06-17 17:08:25 +01:00
bash-completion.bbclass bash-completion.bbclass: add class 2016-01-30 11:37:02 +00:00
bin_package.bbclass bin_package.bbclass: binary package recipe class 2012-09-10 13:01:46 +01:00
binconfig-disabled.bbclass binconfig-disabled: write an message to stderr to help confused developers 2015-08-19 18:05:43 +01:00
binconfig.bbclass *.bbclass (shell): avoid pipe with sed 2014-05-08 13:00:33 +01:00
blacklist.bbclass Revert "base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()" 2015-08-11 09:28:52 -07:00
bluetooth.bbclass bluetooth.bbclass: simplify recipe inference of bluetooth provider 2015-02-17 13:43:38 +00:00
bugzilla.bbclass classes/conf: Add eventmasks for event handlers 2013-06-14 12:55:47 +01:00
buildhistory.bbclass classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
buildstats-summary.bbclass buildstats-summary/toaster: Cope with removal of get_bn() 2015-12-18 13:50:57 +00:00
buildstats.bbclass buildstats: Fix tracebacks for early task failures 2016-04-15 06:59:43 +01:00
ccache.bbclass meta: Don't use deprecated bitbake API 2013-09-01 15:51:42 +01:00
chrpath.bbclass classes/lib: Update to use python3 command pipeline decoding 2016-06-02 08:24:00 +01:00
clutter.bbclass clutter: remove usage of FILESPATH 2013-10-26 15:59:13 +01:00
cmake.bbclass Revert "cmake.bbclass: set the modules directory correctly" 2016-06-20 08:40:21 +01:00
cml1.bbclass cml1/sstate: Fix missing getVar parameter 2016-02-19 15:33:02 +00:00
compress_doc.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
copyleft_compliance.bbclass archiver.bbclass: make it can filter the license 2014-03-25 09:55:35 +00:00
copyleft_filter.bbclass copyleft_filter.bbclass: Allow to filter on name 2015-06-23 11:46:57 +01:00
core-image.bbclass Drop unneeded LIC_FILES_CHKSUM values 2016-05-11 10:33:43 +01:00
cpan-base.bbclass meta: Drop now pointless manual -dbg packaging 2015-12-16 11:56:30 +00:00
cpan.bbclass perl: fix Perl5 module builds 2015-10-29 07:31:17 +00:00
cpan_build.bbclass perl: Remove errornous extra path-specs for Module::Build based modules 2015-10-29 07:31:17 +00:00
cross-canadian.bbclass gcc-runtime, libgcc: Symlink c++ header and startup files in target_triplet for SDK use 2016-05-13 13:41:32 +01:00
cross.bbclass nopackages: Add class for recipes which don't generate packages 2015-12-14 22:30:57 +00:00
crosssdk.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
debian.bbclass debian: Fix superfluous setting for RPROVIDES 2016-02-14 11:42:19 +00:00
deploy.bbclass deploy: Mark deploy tasks as MACHINE specific 2015-10-01 07:43:36 +01:00
devshell.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
distro_features_check.bbclass distro_features_check: add any of test 2015-05-09 22:26:45 +01:00
distrodata.bbclass package_regex.inc: remove deprecated file 2016-05-19 22:32:07 +01:00
distutils-base.bbclass classes/distutils: Introduce PYTHON_PN 2014-02-02 22:37:38 +00:00
distutils-common-base.bbclass python3-dir.bbclass: add a separate class for Python 3 2016-06-01 12:38:41 +01:00
distutils-tools.bbclass python-native, python3-native: remove the use of exported HOST_SYS and BUILD_SYS variables 2016-06-01 12:38:41 +01:00
distutils.bbclass python-native, python3-native: remove the use of exported HOST_SYS and BUILD_SYS variables 2016-06-01 12:38:41 +01:00
distutils3-base.bbclass python3-dir.bbclass: add a separate class for Python 3 2016-06-01 12:38:41 +01:00
distutils3.bbclass python-native, python3-native: remove the use of exported HOST_SYS and BUILD_SYS variables 2016-06-01 12:38:41 +01:00
externalsrc.bbclass classes/lib: Update to use python3 command pipeline decoding 2016-06-02 08:24:00 +01:00
extrausers.bbclass extrausers.bbclass: drop retry count for perform_user/group* calls 2016-04-09 23:00:45 +01:00
fontcache.bbclass fontcache: allow to pass extra parameters and environment to fc-cache 2015-10-01 17:54:55 +01:00
fs-uuid.bbclass boot loader: support root=UUID 2015-09-06 15:26:25 +01:00
gconf.bbclass meta: Add explict getVar param for (non) expansion 2015-06-23 11:57:25 +01:00
gettext.bbclass gettext: Improve USE_NLS handling for nativesdk/crosssdk/cross-canadian 2013-08-23 16:20:11 +01:00
gio-module-cache.bbclass gio-module-cache: Add class for Gio modules 2016-03-28 15:55:49 +01:00
gnome.bbclass gnome: move introspection options to gnomebase 2015-08-24 23:46:53 +01:00
gnomebase.bbclass gnomebase.bbclass: do not disable gobject introspection 2016-03-12 22:11:45 +00:00
gobject-introspection-data.bbclass bitbake.conf: rename 'gobject-introspection-data' machine feature to 'qemu-usermode' 2016-03-28 15:55:49 +01:00
gobject-introspection.bbclass pythonnative.bbclass, python3native.bbclass: export STAGING_INCDIR, STAGING_LIBDIR, PYTHON variables 2016-07-01 16:22:42 +01:00
grub-efi.bbclass grub-efi.bbclass: also write startup.nsh for non-iso 2016-05-30 15:58:12 +01:00
gsettings.bbclass gsettings.bbclass: fix whitespace 2012-09-05 22:25:23 +01:00
gtk-doc.bbclass gtk-doc: Add pkgconfig inherit 2014-06-25 13:51:48 +01:00
gtk-icon-cache.bbclass gtk-icon-cache: pass the native libdir to the intercept 2015-10-29 07:31:16 +00:00
gtk-immodules-cache.bbclass gtk-immodules-cache: Support both GTKs at same time 2016-06-12 23:47:18 +01:00
gummiboot.bbclass gummiboot.bbclass: also write startup.nsh for non-iso 2016-05-30 15:58:12 +01:00
gzipnative.bbclass gzipnative: Ensure dependencies apply to do_unpack and do_populate_lic 2013-09-22 12:19:43 +01:00
icecc.bbclass icecc.bbclass: replace icc with icecc 2016-03-28 15:55:48 +01:00
image-buildinfo.bbclass image-buildinfo: Update to python3 syntax 2016-06-05 08:19:02 +01:00
image-live.bbclass image-live, image-vm, wic: Remove fs size workaround 2016-06-03 13:13:30 +01:00
image-mklibs.bbclass image-mklibs: handle position independent binaries 2016-03-10 23:13:54 +00:00
image-prelink.bbclass image-prelink: use STAGING_*_NATIVE variables 2016-03-09 16:58:12 +00:00
image-vm.bbclass image-live, image-vm, wic: Remove fs size workaround 2016-06-03 13:13:30 +01:00
image.bbclass classes/image: don't chdir when creating symlinks 2016-06-15 18:11:09 +01:00
image_types.bbclass image/image_types.bbclass: fix fatal error during cpio debugfs creation 2016-06-12 23:47:18 +01:00
image_types_uboot.bbclass image_types_uboot: add cpio.gz.uboot to supported IMAGE_TYPES 2016-02-11 12:27:49 +00:00
insane.bbclass classes/lib: Update to use python3 command pipeline decoding 2016-06-02 08:24:00 +01:00
kernel-arch.bbclass Revert "kernel/kernel-arch: Explicitly mapping between i386/x86_64 and x86 for kernel ARCH" 2016-02-04 23:39:02 +00:00
kernel-fitimage.bbclass kernel: Add KERNEL_IMAGETYPES to build multi types kernel at one time 2016-05-30 15:58:11 +01:00
kernel-grub.bbclass kernel: Add KERNEL_IMAGETYPES to build multi types kernel at one time 2016-05-30 15:58:11 +01:00
kernel-module-split.bbclass kernel-module-split.bbclass: Avoid bogus recommends for modules ending with -dev 2015-03-25 12:39:42 +00:00
kernel-uboot.bbclass kernel: Correct mishandling of linux.bin for building uImage 2015-08-14 08:30:33 +01:00
kernel-uimage.bbclass kernel: Add KERNEL_IMAGETYPES to build multi types kernel at one time 2016-05-30 15:58:11 +01:00
kernel-yocto.bbclass kernel-yocto: allow branch auditing to be suspended 2016-05-11 10:33:40 +01:00
kernel.bbclass classes/kernel: remove path assumptions in compile_kernelmodules 2016-06-15 18:11:09 +01:00
kernelsrc.bbclass kernelsrc.bbclass: fix KERNEL_VERSION 2015-03-16 17:41:56 +00:00
lib_package.bbclass lib_package.bbclass: Correct comment referring to bin directories. 2013-01-07 11:09:42 +00:00
libc-common.bbclass libc-common.bbclass: Use sed instead of grep 2016-05-13 13:41:30 +01:00
libc-package.bbclass libc-package: ensure glibc-locale package list is deterministic 2016-06-15 08:35:02 +01:00
license.bbclass classes/license: handle EXDEV if hard link to license fails 2016-06-15 18:05:22 +01:00
linux-kernel-base.bbclass kernel: Rearrange for 1.8 2014-12-21 12:37:53 +00:00
linuxloader.bbclass linuxloader/image-prelink/image-mklibs: Fix non-standard path prelinking 2016-03-07 00:11:40 +00:00
live-vm-common.bbclass image-live.bbclass/image-vm.bbclass: remove duplicated code 2016-03-31 23:01:37 +01:00
logging.bbclass classes/logging: allow shell message functions to work in devshell 2015-07-16 15:09:24 +01:00
meta.bbclass meta: fix no newline at end of file 2014-07-03 17:41:16 +01:00
metadata_scm.bbclass metadata_scm.bbclass: Do not assume ${COREBASE} is a Git repo 2016-05-11 10:33:42 +01:00
migrate_localcount.bbclass classes/conf: Add eventmasks for event handlers 2013-06-14 12:55:47 +01:00
mime.bbclass mime.bbclass: remove the --disable-update-mimedb 2014-01-06 11:13:56 +00:00
mirrors.bbclass gnupg.org-hosted recipes: Change SRC_URI to https site 2016-05-30 15:58:13 +01:00
module-base.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
module.bbclass classes/module: allow substitution of the modules_install target name 2016-03-02 22:39:43 +00:00
multilib.bbclass base.bbclass: drop obsolete HOSTTOOLS_WHITELIST_GPL-3.0 2016-04-01 07:14:30 +01:00
multilib_global.bbclass multilib_global: Add handling of SIGGEN variables for multilib 2015-10-01 07:43:35 +01:00
multilib_header.bbclass multilib_header: Do not install mutlilib headers for musl 2014-06-01 14:29:29 +01:00
native.bbclass bitbake.conf/native/nativesdk: Set PKG_CONFIG_SYSTEM_ at top level 2016-02-06 23:10:44 +00:00
nativesdk.bbclass bitbake.conf/native/nativesdk: Set PKG_CONFIG_SYSTEM_ at top level 2016-02-06 23:10:44 +00:00
nopackages.bbclass nopackages.bbclass: deltask foo_setscene 2016-05-30 15:58:11 +01:00
npm.bbclass npm.bbclass: avoid str/byte conversion problems for PKGV and SUMMARY 2016-06-12 23:47:17 +01:00
oelint.bbclass classes/oeqa: Update for print statements and file() -> open() for python3 2016-05-16 09:31:23 +01:00
own-mirrors.bbclass mirrors/own-mirrors/sanity: Updates after npm fetcher addition 2016-02-28 11:32:57 +00:00
package.bbclass classes/package: save/restore cwd in split_and_strip_files 2016-06-15 18:11:10 +01:00
package_deb.bbclass package_deb: Avoid chdir warnings and restore cwd after packaging 2016-06-16 22:44:03 +01:00
package_ipk.bbclass package_ipk: restore cwd after packaging 2016-06-15 18:11:10 +01:00
package_rpm.bbclass classes/lib: Convert to use python3 octal syntax 2016-06-02 08:24:00 +01:00
package_tar.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
packagedata.bbclass packagedata: Fix to ensure variables expand correctly 2015-06-16 14:21:29 +01:00
packagegroup.bbclass Drop unneeded LIC_FILES_CHKSUM values 2016-05-11 10:33:43 +01:00
patch.bbclass patch.bbclass: remove useless path assignment 2016-04-06 10:29:23 +01:00
perlnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
pixbufcache.bbclass gtk-icon-cache/pixbufcache: don't set GDK_PIXBUF_MODULEDIR 2015-09-28 12:00:17 +01:00
pkgconfig.bbclass pkgconfig: Drop automatic pkgconfig RDEPENDS 2012-10-18 12:13:12 +01:00
populate_sdk.bbclass nativesdk: Switch to using nativesdk as a prefix, not a suffix 2012-09-02 05:52:06 -07:00
populate_sdk_base.bbclass conf: bump minimum kernel to 3.2.0 2016-05-13 13:41:30 +01:00
populate_sdk_ext.bbclass classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
prexport.bbclass prexport.bbclass: avoid export for native and crosssdk 2015-11-16 11:39:27 +00:00
primport.bbclass classes/conf: Add eventmasks for event handlers 2013-06-14 12:55:47 +01:00
ptest-gnome.bbclass ptest-gnome: extend EXTRA_OECONF in all builds, not just target 2015-11-24 15:50:25 +00:00
ptest.bbclass classes: Ensure pass setVar/setVarFlag strings, not integers 2015-11-24 15:50:26 +00:00
python-dir.bbclass python3-dir.bbclass: add a separate class for Python 3 2016-06-01 12:38:41 +01:00
python3-dir.bbclass python3-dir.bbclass: add a separate class for Python 3 2016-06-01 12:38:41 +01:00
python3native.bbclass pythonnative.bbclass, python3native.bbclass: export STAGING_INCDIR, STAGING_LIBDIR, PYTHON variables 2016-07-01 16:22:42 +01:00
pythonnative.bbclass pythonnative.bbclass, python3native.bbclass: export STAGING_INCDIR, STAGING_LIBDIR, PYTHON variables 2016-07-01 16:22:42 +01:00
qemu.bbclass meta/classes/qemu.bbclass: set -cpu of ppce5500/ppce6500 to e500mc 2016-04-15 06:59:43 +01:00
recipe_sanity.bbclass recipe_sanity.bbclass: skip DataSmart in recipe_sanity_eh() 2016-02-21 09:32:41 +00:00
relocatable.bbclass relocatable.bbclass: split it up, to reuse code 2012-08-02 15:28:39 +01:00
remove-libtool.bbclass remove-libtool: add new class 2016-02-02 14:44:16 +00:00
report-error.bbclass classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
rm_work.bbclass classes/rm_work: use the idle I/O scheduler class 2016-06-15 18:05:22 +01:00
rootfs-postcommands.bbclass systemd: allow add users as a rootfs postprocess cmd 2016-06-01 12:38:43 +01:00
rootfs_deb.bbclass rootfs_*.bbclass: don't add BUILDNAME to do_rootfs vardepsexclude 2015-11-24 15:50:27 +00:00
rootfs_ipk.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
rootfs_rpm.bbclass rootfs_rpm: Increase rootfs size 2016-06-20 12:07:49 +01:00
rootfsdebugfiles.bbclass rootfsdebugfiles.bbclass: quick-and-dirty installation of additional files 2015-04-24 11:06:55 +01:00
sanity.bbclass sanity: Switch urlparse to urllib.parse 2016-06-02 08:24:00 +01:00
scons.bbclass scons.bbclass: SCons packages don't require do_configure 2015-11-16 11:39:27 +00:00
setuptools.bbclass classes: Add distutils for python3 2014-02-02 22:37:39 +00:00
setuptools3.bbclass python3-distribute: Upgrade to python3-setuptools 15.2 2015-06-08 17:34:04 +01:00
sign_ipk.bbclass gpg_sign: add local ipk package signing functionality 2016-03-11 16:50:45 +00:00
sign_package_feed.bbclass sign_package_feed: add feed signature type 2016-03-11 16:50:45 +00:00
sign_rpm.bbclass gpg_sign.py: get rid of pexpect 2016-03-25 10:29:14 +00:00
siteconfig.bbclass meta-environment: Fix config-site with a multilib config 2014-11-12 15:38:33 +00:00
siteinfo.bbclass siteinfo: Fix musl 64bit targets 2016-03-29 23:20:13 +01:00
spdx.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
sstate.bbclass classes/lib: Convert to use python3 octal syntax 2016-06-02 08:24:00 +01:00
staging.bbclass staging: Add BB_SETSCENE_VERIFY_FUNCTION2 for bitbake runqueue changes 2016-06-15 08:35:01 +01:00
syslinux.bbclass syslinux.bbclass: Added configurable SYSLINUX_ALLOWOPTIONS variable 2016-06-03 13:13:25 +01:00
systemd-boot.bbclass systemd: support systemd-boot as a stand-alone EFI bootloader 2016-06-03 13:13:25 +01:00
systemd.bbclass systemd.bbclass: Allow enabling of parameterised services 2015-12-09 08:48:24 +00:00
terminal.bbclass classes/lib: Convert to use python3 octal syntax 2016-06-02 08:24:00 +01:00
testexport.bbclass testexport.bbclass: Create tarballs for easy release 2016-06-07 15:22:38 +01:00
testimage-auto.bbclass classes: Fix do_rootfs references 2016-01-11 23:26:29 +00:00
testimage.bbclass testimage.bbclass: Make dependency of cpio when using RPMs 2016-06-07 15:22:38 +01:00
testsdk.bbclass classes/testsdk: Pass tcname to SDK and SDKExt contexts 2016-02-28 11:33:06 +00:00
texinfo.bbclass texinfo.bbclass: native/cross uses dummy texinfo; target uses host's Texinfo. 2014-06-13 12:31:38 +01:00
tinderclient.bbclass classes/oeqa: Update for print statements and file() -> open() for python3 2016-05-16 09:31:23 +01:00
toaster.bbclass classes/lib: Update to use python3 command pipeline decoding 2016-06-02 08:24:00 +01:00
toolchain-scripts.bbclass toolchain-scripts: replace source built-in call 2016-05-06 10:31:12 +01:00
typecheck.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
uboot-config.bbclass u-boot: extend UBOOT_CONFIG format to support different binary name 2016-07-01 16:22:40 +01:00
uboot-sign.bbclass uboot-sign: rebuild u-boot.img with signed dtb 2016-05-30 15:58:15 +01:00
uninative.bbclass uninative: Switch md5sum -> sha256 2016-03-31 09:15:03 +01:00
update-alternatives.bbclass update-alternatives: Fix determinism issue 2016-05-11 10:33:42 +01:00
update-rc.d.bbclass update-rc.d.bbclass: Disable class when sysvinit is not in DISTRO_FEATURES 2016-06-15 18:05:21 +01:00
upstream-version-is-even.bbclass package_regex.inc: split entries with odd-even versioning into their own recipes 2015-12-08 10:20:51 +00:00
useradd-staticids.bbclass useradd-staticids.bbclass: Allow missing UIDs/GIDs to generate warnings 2016-06-17 17:14:55 +01:00
useradd.bbclass useradd: Fix infinite build loop 2016-05-23 10:33:45 +01:00
useradd_base.bbclass useradd_base.bbclass: remove flock option '-w' 2016-04-14 10:58:33 +01:00
utility-tasks.bbclass meta: Update to modern exception syntax 2016-05-21 22:26:33 +01:00
utils.bbclass utils.bbclass: note for deprecated base_contains 2016-04-29 07:58:45 +01:00
vala.bbclass vala.bbclass: remove pre-packaged vapigen.m4 from tarballs 2016-03-12 22:11:44 +00:00
waf.bbclass waf.bbclass: Remove --disable-static from EXTRA_OECONF 2016-02-19 15:33:02 +00:00