summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)AuthorFiles
2010-04-23Initial move of common python bits into modules of the 'oe' python packageChris Larson4
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-23base.bbclass: add <dir>/lib for each dir in BBPATH to the python search pathChris Larson1
Also makes the os, time, and bb package availability explicit. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-23do_unpack: shift some responsibility around, clean things upChris Larson1
- Move the unpacking message printing into do_unpack - Move the destination directory determination into do_unpack - Use subprocess's ability to pass in PATH and cwd rather than mangling the cmd - Use shutil.copy2/copytree for ordinary file "unpack" - Use the existing urldata from bb.fetch.init rather than re-decodeurl'ing the urls - Only display the unpack destdir to the user when debugging is enabled, as we all know they unpack into WORKDIR Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-23xfce4-panel: Add 4.6.3 and support new style checksums in xfce46.bbclass.David-John Willis1
2010-04-22Use the python modules for checksum generation where we canChris Larson2
Based on df32920678d15c86897b50b752b937210a01edea. Signed-off-by: Chris Larson <chris_larson@mentor.com> Tested-by: Khem Raj <raj.khem@gmail.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-04-21utils.bbclass: make check_app_exists slightly more pythonicChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-21Add emit_data.bbclass, which emits the metadata and displays diffs from previousChris Larson1
This can be useful for making invasive changes, to see if you inadvertantly broke something. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-20angstrom mirrors: fix regression introduced by ↵Koen Kooi1
http://cgit.openembedded.org/cgit.cgi/bitbake/commit/?h=1.10&id=11375c3f74511ce59ad5a625bfda4121a8714345
2010-04-19Add initial signature.bbclass, which generates a hash of the recipe dataChris Larson1
If the datastore has a 'hash' method, it will use that, otherwise it uses its own implementation. Datastore hashing will be added to bitbake master at some point, to prepare for the move away from stamps. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-19module bbclass: sync depmod code with kernel.bbclass a bitKoen Kooi1
2010-04-17kernel.bbclass: fix ASMDIR regressionsKoen Kooi1
2010-04-16kernel bbclass: convert to new style staging (from poky)koen.kooi@gmail.com1
Acked-by: Graeme Gregory <dp@xora.org.uk> Acked-by: Philip Balister <philip@balister.org> Signed-off-by: Koen Kooi <koen@openembedded.org>
2010-04-15kernel bbclass: read version from ${B}, remove obsolete hostap logic that ↵Koen Kooi1
breaks the build (from poky)
2010-04-15kernel bbclass: don't depend on c library (from poky)Koen Kooi1
2010-04-15gnome: split out gnomebase.bbclass that doesn't have gconf and gmime dependsKoen Kooi3
2010-04-14packaged-staging.bbclass: use 'os.unlink()' instead of spawning 'rm'Enrico Scholz1
Doing a '-c clean' operation on a staged package with very much files (e.g. glibc) took several minutes because * every removed file was reported * an 'rm' instance was spawned for every file This patch uses the native 'os.unlink()' method for removing files and reports only the removed root directory instead of the single files. Based upon maillist discussion, reporting happens with 'debug' level instead of 'note' one, and only error conditions due to non-existing files will be ignored. Other (e.g. permission denied) errors will now abort the build while they were silently ignored previously. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Acked-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Acked-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-04-14kernel.bbclass: s!D!PKGD! (trivial)Enrico Scholz1
Acked-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Acked-by: Roman I Khimov <khimov@altell.ru>
2010-04-13update-rc.d.bbclass: add dependency on update-rc.d-nativeRoman I Khimov1
Recipes are using update-rc.d to do postinst and postinst scripts are being ran on build hosts where native version is needed to run properly. It is needed only at image build stage, but it's easier to have it in DEPENDS, build time for it is almost zero anyway. Signed-off-by: Roman I Khimov <khimov@altell.ru>
2010-04-12utils.bbclass: simplify checksum check, prepare for checksums.ini removalMartin Jansa2
* show note, when there are checksums only in checksums.ini (prepare for script for moving all to recipes) * parse checksums.ini only when there is no checksum in recipe (could be faster, but for more checked items in SRC_URI it is parsed repeatedly) * if one checksum doesn't match then count and show both (md5 as well as sha256) - usefull for copy&paste checksums for new recipe. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-04-12rootfs_ipk.bbclass: run preinst/postinst scripts with "-e"Roman Khimov1
There are scripts that can and should work when being ran on build host (for example, simple update-rc.d), but there are also many which can't and won't ever (for example, anything adding users/groups). The second group sometimes doesn't get "unpacked" flag because scripts throw errors in the middle and return something nice from the last command. It can be considered as a bug in pre/postinst script (as it should either explicitly check for "${D}" or just do "set -e" at start), but it is common enough. There is also another aspect to this as in general we can't be sure that everything is OK wrt preinst/postinst if script commands throw errors. Running preinst/postinst scripts on host with "-e" should solve that. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Chris Larson <clarson@kergoth.com>
2010-04-08Using NotHandled/Handled in event handlers is deprecatedChris Larson9
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-08insane.bbclass: add x86_64 architecture for linux-uclibcVladimir Sorokin1
Signed-off-by: Vladimir Sorokin <sorokin@altell.ru> Signed-off-by: Roman I Khimov <khimov@altell.ru>
2010-04-07classes/cmake.bbclass: make cmake continue if the build dir already existXerxes Rånby1
2010-04-06clean.bbclass: add pstage bits, for use with srctreeChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-02insane.bbclass: Switch to endswith() and fix la/pc checkTom Rini1
This changes insane.bbclass to use s.endswith("str") rather than s[-3:] == "str". The primary motivation for this is that we have tests that check for 'la' and 'pc' files when we really want '.la' and '.pc' to be what we check for. Also, our -dev symlink test does if test1: if test2 and test3: action, when it could just be if test1 and test2 and test3. Signed-off-by: Tom Rini <tom_rini@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-04-01vala: prohibit PARALELL_MAKEMichael 'Mickey' Lauer1
2010-04-01gnome bbclass: put devhelp stuff in -docKoen Kooi1
2010-04-01gnome bbclass: package polkit stuff into ${PN} by defaultKoen Kooi1
2010-03-30scons bbclass: add SCONS_FIX_ENV option that allows you to fix the toolchain ↵Koen Kooi1
from env
2010-03-30scons bbclass: convert to new style stagingKoen Kooi1
2010-03-28cmake bbclass: add rudimentary support for cmake site filesKoen Kooi1
2010-03-28cmake bbclass: s/build/target/ for cflagsKoen Kooi1
2010-03-28cmake bbclass: use autotools, not autotools_stageKoen Kooi1
2010-03-27cmake.bbclass: add toolchain file for cmake compilationsValentin Longchamp1
Based on work done by Matthew Dombroski. We want to generate a toolchain file for cmake compilations. This adds a task that is performed before the configure task. Additional defines can be made in the toolchain file directly in the recipe file by using a do_generate_toolchain_file_append(). This is especially interesting for recipes that need to define values for additionnal libraries. Signed-off-by: Valentin Longchamp <valentin.longchamp@epfl.ch>
2010-03-27Fixed concurrency problem for ZIP packed recipes.Ihar Hrachyshka1
The problem occured when unzip-native is not yet staged, and ZIP archive unpacking already started resulting in failed do_unpack task. Added NEED_UNZIP_FOR_UNPACK variable to use in recipes which do_unpack with unzip utility but doesn't have '.zip' in SRC_URI (f.e. .EXE windows self-extraction binaries). Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com> Signed-off-by: Koen Kooi <koen@openembedded.org>
2010-03-25manifest.bbclass: Remove since its broken and unusedRichard Purdie1
This code has never been used, is only half complete and obsolete. If anyone ever wnats to refer to it, its in the history but keeping useless code ist just confusing so delete it. Acked-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
2010-03-25use PYTHON_SITEPACKAGES_DIRRoman I Khimov2
Converted most of python site-packages references to PYTHON_SITEPACKAGES_DIR. Signed-off-by: Roman I Khimov <khimov@altell.ru>
2010-03-25distutils-common-base: move Python dir detection to separate classRoman I Khimov2
Allows to inherit that in packages containing Python extensions but still tightly control packaging of those extensions. Mainly for the cases where you want those python modules/extensions/parts to be packaged separately from the main package in order not to introduce python dependency where you don't need it. Technically, you can do it with distutils-common-base, but it might require more FILES_* work than with python-dir. Introduce PYTHON_SITEPACKAGES_DIR along the way, site-packages directory is referenced frequently enough within class files, but some recipes also pack this directory as ${libdir}/python2.5/site-packages ${libdir}/python2.6/site-packages ${libdir}/python*/site-packages /usr/lib/python*/site-packages ${libdir}/*/site-packages all of which are not perfect. Signed-off-by: Roman I Khimov <khimov@altell.ru>
2010-03-24Revert "cpan-base: add perl version to PR"Roman I Khimov1
This reverts commit e7c6b93906b8909e659d7e680a1457472bc99bda. Sorry for breakage. Signed-off-by: Roman I Khimov <khimov@altell.ru>
2010-03-24Merge branch 'perl-5.10' into org.openembedded.devRoman I Khimov2
2010-03-23base.bbclass: add missing import of metadata_scmAntonio Ospite1
In commit 89b7e433719f43f1c36c76cb8856d559014e99bc metadata_scm.bbclass functions were factored out from base.bbclass, but the new file was not included. This prevented METADATA_SCM, METADATA_REVISION, METADATA_BRANCH to be set; for instance this caused oestats-client stop working. Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-24cpan_build: adapt to new staging for nativeRoman I Khimov1
Signed-off-by: Roman I Khimov <khimov@altell.ru>
2010-03-24classes/cpan-base: fix perl version regexpRoman I Khimov1
Signed-off-by: Roman I Khimov <khimov@altell.ru>
2010-03-24cpan-base: add perl version to PRRoman I Khimov1
Makes perl modules rebuild on perl version change, since binary compatibility could be broken with that (although perl itself tries to maintain it within patchlevel range, like 5.8.7 -> 5.8.8). This is conditional on PACKAGE_ARCH, since there is nothing to rebuild for pure perl modules (and those should use 'PACKAGE_ARCH = "all"') even if they break with perl version change. This also should ease transition to perl 5.10.1. Signed-off-by: Roman I Khimov <khimov@altell.ru>
2010-03-22rm_work.bbclass: reordered 'rm $dir -rf' argumentsEnrico Scholz1
Using an 'rm -rf $dir' ordering is more portable. Signed-off-by: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> Acked-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
2010-03-21src_distribute: simplify do_distribute_sourcesChris Larson2
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-21base.bbclass: add popen/system convenience functionsChristopher Larson2
Provides oe_popen, which is a subprocess.Popen wrapper that automatically provides our exported variables in the environment, including the PATH, and oe_system, which is just a wrapper that acts like system. Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Tom Rini <tom_rini@mentor.com>
2010-03-21cmake.bbclass: force CMAKE_INSTALL_SO_NO_EXE to be 0Roman I Khimov1
By default cmake guesses whether install shared libaries with exec permissions or not based on host distribution, so this behaviour changes from host to host. OpenEmbedded assumes shared libraries to be with exec permissions (reverse way brakes stripping, for example), so let's force this in cmake configure invocation. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Ash Charles <ashcharles@gmail.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-03-20perl: remove versions 5.8.4 and 5.8.7Roman I Khimov3
Obsolete, not used. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Graeme Gregory <dp@xora.org.uk> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-03-19utility-tasks: unbork do_{clean,rebuild,mrproper,distclean}Chris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>