summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
Commit message (Collapse)AuthorAgeFilesLines
* python-smartpm: add ignore-recommends package flagPaul Eggleton2013-07-292-0/+61
| | | | | | | | | | | | | Adds support for a flag that is saved into Smart's configuration against a package that says it should not be installed if it is only recommended by a package being installed rather than required. This will enable us to add BAD_RECOMMENDATIONS support for RPM. (From OE-Core rev: 70517fca31261c1ca4b15bb38f8960b2f95993ba) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: fix sometimes reporting no provider instead of conflictPaul Eggleton2013-07-292-0/+197
| | | | | | | | | | | | | | | | | | | | | | | If a requirement of a package is conflicted, depending on how the solution is reached, Smart's transaction code may eliminate all providers of the requirement and then error out because nothing provides them without saying why. To work around this, store a reason and report that back if we need to, so for example instead of: error: Can't install packagegroup-core-ssh-dropbear-1.0-r1@all: no package provides dropbear we will now get: error: Can't install packagegroup-core-ssh-dropbear-1.0-r1@all: unable to install provider for dropbear: error: dropbear-2013.58-r1.0@armv5te is conflicted by openssh-sshd-6.2p2-r0@armv5te Fixes [YOCTO #4305]. (From OE-Core rev: 1ed09b87fc8780d4a99f6516493fae2e0c92862c) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-imaging: add PACKAGECONFIG for lcmsMartin Jansa2013-07-292-1/+74
| | | | | | | | | | | * it's autodetected from sysroot * add PACKAGECONFIG to make it deterministic (From OE-Core rev: c11aaac4952320f565bd65ec5f601c50763408a7) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Add ptestTudor Florea2013-07-243-0/+48
| | | | | | | | | Install python test suite and run it as ptest (From OE-Core rev: a768047cb8fc00ecf13f4db08117c348a9312c47) Signed-off-by: Tudor Florea <tudor.florea@enea.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-native: add python-codecs-native to RPROVIDESPaul Eggleton2013-07-021-1/+1
| | | | | | | | | | | This is now required by python-argparse-native as of OE-Core revision 8d0e84bdfaf63ad61be7b015dd55dacccfa9132c. (From OE-Core rev: e9e03d44d6a402fecdf0d62ff09a1f6af9da10bb) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-git: add recipePaul Eggleton2013-07-021-0/+22
| | | | | | | | | | | This is used by buildhistory-diff and the OE layer index, and thus will be useful in the context of the build appliance and buildtools-tarball. (From OE-Core rev: 449ae5a70bc7d7d08f99de7d272b4cc3c83c3dcc) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-gitdb: add recipePaul Eggleton2013-07-021-0/+18
| | | | | | | | | | This is required by python-git. (From OE-Core rev: bcbb34c26a235a103b46aa5c8ae7b3896904a215) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smmap: add recipePaul Eggleton2013-07-021-0/+20
| | | | | | | | | | This is required by python-gitdb. (From OE-Core rev: 37890014f406ca2ab24e0ec918af39613642afa0) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-async: add recipePaul Eggleton2013-07-021-0/+17
| | | | | | | | | | This is required by python-gitdb. (From OE-Core rev: 31bc9fa8d53110a09ca048039d83213b34f4b7e4) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-multiprocessing: adding runtime dependenciesLukas Bulwahn2013-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As python-multiprocessing requires python-threading and python-pickle, this commit adds them as runtime dependency. The observed behavior was: When typing 'import multiprocessing' in the python shell on a minimal image with only the python-multiprocessing recipe installed, python reports at first: Python 2.7.3 (default, Jun 27 2013, 08:26:25) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import multiprocessing; Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/multiprocessing/__init__.py", line 65, in <module> from multiprocessing.util import SUBDEBUG, SUBWARNING File "/usr/lib/python2.7/multiprocessing/util.py", line 38, in <module> import threading # we want threading to install it's ImportError: No module named threading After adding python-threading as runtime dependency and rebuilding the image, python reports: Python 2.7.3 (default, Jun 27 2013, 08:26:25) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import multiprocessing; Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/multiprocessing/__init__.py", line 84, in <module> import _multiprocessing ImportError: No module named cPickle (From OE-Core rev: e913412ca0ff01cb654757c8199e8859f15b7cf7) Signed-off-by: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-argparse: adding runtime dependency on python-codecsLukas Bulwahn2013-06-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | When typing 'import argparse' in the python shell on a minimal image with only the python-argparse recipe installed, python reports: Python 2.7.3 (default, Jun 27 2013, 08:26:25) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import argparse; Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-packages/argparse.py", line 91, in <module> from gettext import gettext as _ ImportError: No module named gettext The python-argparse recipe requires the python gettext module, which is currently provided by python-codecs. Hence, this commit adds python-codecs as runtime dependency to resolve the issue. (From OE-Core rev: 8d0e84bdfaf63ad61be7b015dd55dacccfa9132c) Signed-off-by: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-pygtk: fix parallel compile issueKai Kang2013-06-252-1/+40
| | | | | | | | | | | | | | defs.c dependes on gdk-types.defs and gtk-types.defs. When parallel compile, it may fails with: "IOError: [Errno 2] No such file or directory: 'gtk-types.defs'" Add them to dependences of defs.c to fix this issue. (From OE-Core rev: edf278eec71552bcd3ac661dce8e8b7489463f6a) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-pygobject: disable parallel installKai Kang2013-06-251-0/+2
| | | | | | | | | | | | | | | | | | | | The installation of __glib.so is invoked by install-data-am target which are generated by automake. installing libpyglib-2.0-python is invoked by install-exec-am. "make install" will firstly install libpyglib-2.0-python, then install __glib.so, the sequence should not be broken, since _glib.so has dependence on libpyglib-2.0-python. But when enable parallel install, the sequence maybe break then installation fails with: "/usr/bin/ld: cannot find -lpyglib-2.0-python" Disable parallel install to fix this issue. (From OE-Core rev: e87a0c81c77d11f892a34c2d14ffbeb4342d32dd) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: Add nativesdk wrapper to handle terminfoRichard Purdie2013-06-181-0/+4
| | | | | | | | | | | | | | | | | | Currently if you build nativesdk-python, install it and try and run it, you see it search in the default nativesdk path for terminfo files when the readline module is used. If terminfo files cannot be found, or if the ones found are incorrect, the system may emit control characters which confuse commandline processing. This patch sets the TERMINFO_DIRS variable to ensure the correct locations are searched for terminfo files, starting with the nativesdk terminfo files and falling back to the host systtem's. (From OE-Core rev: 682861166f39fbdcd0c9b923139faab2d40362cf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: -Wformat is needed by gcc 4.8Khem Raj2013-06-142-0/+21
| | | | | | | | | | | | | | | | | | | This fixes errors in packages using python( build with gcc 4.8) | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemuarm/usr/include/python2.7/modsupport.h:27:1: error: 'PyArg_ParseTuple' is an unrecognized format function type [-Werror=format=] | PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3); | ^ | cc1: all warnings being treated as errors | cc1: all warnings being treated as errors (From OE-Core rev: 5745a482a85c064a1eec960aff104cf8ce588e30) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-native: add nativepython symlinkRoss Burton2013-06-131-0/+6
| | | | | | | | | | | | | | | | Add a symlink to the native Python so that scripts can just invoke "nativepython" and get the right one without needing absolute paths (these often end up too long for the #! parser in the kernel as the buffer is 128 bytes long). The name "nativepython" was chosen to match the existing "nativeperl" which serves the same purpose. (From OE-Core rev: d99dac66e3e121e96c4d8a29aee846d4b8f38622) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: enable IPv6 based on DISTRO_FEATURESDan McGregor2013-06-071-0/+1
| | | | | | | | | | Base this on DISTRO_FEATURES, because we don't want it unconditionally enabled. (From OE-Core rev: 6956fb01e0c7332e4d8b59cbcb1cd997c54191fc) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: add gettext-native to DEPENDSPaul Eggleton2013-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | Fixes the following failure at do_install building python-smartpm-native if gettext-native has not already been built and gettext tools are not installed on the host: | compiling locale/it/LC_MESSAGES/smart.po -> locale/it/LC_MESSAGES/smart.mo | sh: msgfmt: command not found ... | creating $D/usr/share/share/locale/it/LC_MESSAGES | error: can't copy 'locale/it/LC_MESSAGES/smart.mo': doesn't exist or not a regular file Note that we need gettext-native in DEPENDS and not "inherit gettext" here because for native variants, gettext.bbclass instead adds gettext-minimal-native to DEPENDS and that does not provide the msgfmt command. (From OE-Core rev: e8d903e2d5e0c0df18dfd9561c3f8ef340297f1f) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-scons-native: fix invoking scons failed on Fedora-17Hongxu Jia2013-05-301-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the destro didn't install scons, build scons by python-scons-native, and invoke it with the error: ... $scons -h Traceback (most recent call last): File "/buildarea2/hongxujia/build-20130520-udev-emenlow/tmp/sysroots/x86_64-linux/usr/bin/scons", line 188, in <module> import SCons.Script ImportError: No module named SCons.Script ... 1, While building scons as default, scons's lib will be install in the dir of `scons' or `scons-2.3.0' if the option `--install-lib' is not set explicitly. 2, While build python-scons-native, `--install-lib' is explicitly set, and scons's lib was not installed in the dir of `scons' or `scons-2.3.0'. 3, While invoke scons-native, the scons searches the lib in ${STAGING_DIR_HOST}/ ${PYTHON_SITEPACKAGES_DIR}/scons, ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/ scons-2.3.0 rather than ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}. Use create_wrapper to relocate scons-native to add `${STAGING_DIR_HOST}/${PYTHON _SITEPACKAGES_DIR}' to PYTHONPATH, so scons-native could find out the lib. [YOCTO #4562] (From OE-Core rev: 1aa828d05ae1614689542c6a9ce6425a088bdc7d) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-dbus: upgraded to 1.2.0Bogdan Marinescu2013-05-292-19/+3
| | | | | | | | | | The license itself didn't modify, just some comments regarding the license. (From OE-Core rev: ccf27bfe1269df74fa00b77447fecfe2368c0191) Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-pygobject-native: fix build dependency on python-nativeCristian Iorga2013-05-171-1/+1
| | | | | | | | | | | | | The class-native override is undoing the dependency that distutils-base added which we require. This patch adds in the missing dependency manually to ensure the build functions correctly. Fixes [YOCTO #4502]. (From OE-Core rev: ae28ee3f7a060b9e0d13154a84f2444a98490b5b) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-scons: upgraded to 2.3.0Bogdan Marinescu2013-05-123-16/+14
| | | | | | | | | | "2013" was added in the 'Copyright' line in LICENSE.txt. (From OE-Core rev: de425c01ffc50d53d570c24e2fe99e1a8b81e5ac) Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: remove the default optimizationRobert Yang2013-05-105-104/+1
| | | | | | | | | | | | | | | | | | | We had hard coded python-native and python's default optimization to 1, which made the "assert" statement didn't work, and removed the "-O/-OO" (optimization options), the target python had a "-N" option to disable the default optimization, but the native python didn't. I think that we can set the environment variable PYTHONOPTIMIZE or use "python -O" if we need to optimize, but I'm not sure whether we need to set it by default, it would confuse the user or cause/hide unexpected problems if the "assert" doesn't work. [YOCTO #4427] (From OE-Core rev: 165ed464bbb9bf985dde9d8c15d000809901fff6) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: fix HOMEPAGE and adjust DESCRIPTIONPaul Eggleton2013-04-291-4/+2
| | | | | | | | | | | | * HOMEPAGE was incorrect * We're not really interested in the fact that Smart works across different distros. (From OE-Core rev: a7f8989e027abea84a371703909f62a8b9a03177) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-setuptools: Improving the runtime dependenciesLukas Bulwahn2013-04-221-0/+8
| | | | | | | | | | | | When trying to import setuptools on a minimal image, it reports that some python module is missing. We add those missing python modules as runtime dependency. (From OE-Core rev: c5de114f63fe3d60a48622ec5be8fa34ce177191) Signed-off-by: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* smart: disable CHANNELSDIRBogdan Marinescu2013-04-082-1/+26
| | | | | | | | | | | | Make CHANNELSDIR in smart empty, since this causes host contamination issues on some RPM-based hosts on which smart is already installed. [YOCTO #3881] (From OE-Core rev: 94e76a98b6cdafe9547630be159401ac1d8c5edd) Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: adding missing runtime dependency python-io to python-pprintLukas Bulwahn2013-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When trying to import python-pprint on a minimal image, it reports that the cStringIO python module is missing. This is provided with python-io, so we add python-io as runtime dependency. The complete observed trace was: Python 2.7.3 (default, Apr 4 2013, 07:45:36) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pprint Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/pprint.py", line 40, in <module> from cStringIO import StringIO as _StringIO ImportError: No module named cStringIO (From OE-Core rev: abe7bf9992e298f1b53e790eee7b064a9e4e8589) Signed-off-by: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-pygtk: Fix case where ${B} != ${S}Richard Purdie2013-03-221-1/+1
| | | | | | | | Fix out of tree builds by adding missing path component. (From OE-Core rev: fd86061e02bd175dcc5816db1cf15d705d338062) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: fix on-target use of distutils/setuptools by removing references to ↵Koen Kooi2013-03-191-0/+3
| | | | | | | | | | | | | | | | | | | | | | buildpaths Running 'python setup.py build' would fail due to the python Makefile having CC= i586-angstrom-linux-gcc -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/home/koen/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/fri2 CXX= i586-angstrom-linux-g++ -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/home/koen/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/fri2 '--with-libtool-sysroot=/home/koen/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/fri2' And more Multiple users have reported this problem: http://hipstercircuits.com/?p=499 http://www.gigamegablog.com/2012/09/09/beaglebone-coding-101-spi-output/ (From OE-Core rev: 5704dfa690a625abcface432cf5f9c9bc3ee8abd) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-imaging: fix PN -> BPN in do_install for multilibsJackie Huang2013-03-161-4/+4
| | | | | | | (From OE-Core rev: 9dbff379575e6f5fdc07412906848134b2739598) Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Python: Fix for CVE-2012-2135yanjun.zhu2013-03-042-1/+75
| | | | | | | | | | | | | | | | | | | Reference:http://bugs.python.org/issue14579 The utf-16 decoder in Python 3.1 through 3.3 does not update the aligned_end variable after calling the unicode_decode_call_errorhandler function, which allows remote attackers to obtain sensitive information (process memory) or cause a denial of service (memory corruption and crash) via unspecified vectors. http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-2135 [YOCTO #3450] (From OE-Core rev: f60d3efe93323b7056a9400a483e625a3fed4491) Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-argparse: add RDEPENDS on python-textutilsMichael Thalmeier2013-02-251-1/+2
| | | | | | | | | | The argparse module uses the textwrapper modules contained in python-textutils. (From OE-Core rev: 2e9d39834ceb8cf9d9ba94940372b549fb957028) Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Python: Add missing dependency "textutils" to "io" packageMiLo2013-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | Modify the include file and script to generate a missing RDEPENDS. Install python on target with python-io. Import ssl: Python 2.7.3 (default, Feb 9 2013, 16:04:35) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import ssl Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/ssl.py", line 58, in <module> ImportError: No module named textwrap Installing python-textutils solves the issue. (From OE-Core rev: 900ae881c3483eea36aa0be456b93f92980f4924) Signed-off-by: MiLo <milo-software@users.sourceforge.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: show friendly error if YAML output requested without PyYAMLPaul Eggleton2013-02-112-0/+87
| | | | | | | | | | | | Instead of a python backtrace, tell the user they need to install PyYAML if they wish to use the --yaml output options. Fixes [YOCTO #3768]. (From OE-Core rev: 69caf24112c11609eb351bea09817029bca0ff2e) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: multilib fixesBogdan Marinescu2013-02-012-1/+24
| | | | | | | | | | | | | | | | | To fix some multilib issues, change the way the RPM backend decides if two packages can coexist: if they have a different architecture, automatically assume that they can coexist (which is fundamental for multilib). [YOCTO #3681] (From OE-Core rev: 05fd850f09c58dba8f64f3fe1de28ed9f21890a2) (From OE-Core rev: 03c892a02568fa8a5765d9fb569a55f17ea05f96) Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: replace obsolete automake macros with working onesMarko Lindqvist2013-01-154-4/+45
| | | | | | | | | | | | Add obsolete_automake_macros.patch for both python-dbus and python-pygobject that replace automake macros no longer supported by automake-1.13 with modern constructs. (From OE-Core rev: 9866bed92c0f3dee3f1674e9f9a28e21f5ba33fc) Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: add dependency on python-pprintBogdan Marinescu2013-01-101-2/+2
| | | | | | | | | | | | | | | | | | | | | smart's "config" command uses the Python pprint module. If it is not present, "config" fails with this error: ############# # smart config --help error: Invalid command 'config' ############# This patch adds a dependency on python-pprint which fixes the error. Tested on qemux86/core-image-sato-sdk. [YOCTO #3643] (From OE-Core rev: f5f9cfcccd1526572673ffbc5435bf3221498409) Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scons: updated to 2.2.0Bogdan Marinescu2013-01-073-16/+16
| | | | | | | | | | The license file was updated with a "2012" in the "Copyright" line, nothing else changed in the license text. (From OE-Core rev: c8e8ab6b69082805d62193e382534ee93a21f416) Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: add -crypt as a dependency on -mathRoss Burton2012-12-261-1/+1
| | | | | | | | | | random.py imports hashlib, so add this missing dependency. (From OE-Core rev: c5b11835b478871210fdd5c98db3b75f51fb80cd) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: improve error reportingBogdan Marinescu2012-12-192-1/+255
| | | | | | | | | | | | Add code to check proper command line arguments for various smart commands. Exit with error if erroneous/additional arguments are given in the command line. (From OE-Core rev: c29d9f8d61d45318d07ed6ccab7a3ec6d1c27037) Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm/smart: Fix runtime-relocation issues w/ RPM and SmartMark Hatle2012-12-171-1/+16
| | | | | | | | | | | | | | | | | | | Fix runtime-relocation issues with the RPM and Smart wrappers. In addition the patches were necessary to fix related problems. The changes to the includes three categories of issues: *) Incorrect pathname evaluations *) Incorrect evaluation of the /etc/rpm/platform file contents *) Confusing vendor #define checks Finally, a simple way to debug the platformScore was added as that is necessary to debug how this works and into the smart system. (From OE-Core rev: 355a621caca66ed393d36fff6be8918921cf45ae) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: don't try to remove /usr/share/share twiceMartin Jansa2012-12-061-4/+1
| | | | | | | | | | | | | * distutils.bbclass now removes that directory (From OE-Core rev: 5990bda7e0c21629ac5ecaa2ba9783af5a77a125) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Conflicts: meta/recipes-devtools/python/python-smartpm_1.4.1.bb Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: Fix incorrect comparison argumentsMark Hatle2012-12-062-1/+30
| | | | | | | | | | | Built-in provides were not being compared properly within smart. This was caused by an incorrect argument to the match function. (From OE-Core rev: 81f8972323a0a89e67f5cc4be247bc8e1b637cc4) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: allow setting arbitrary macros in smart configPaul Eggleton2012-12-062-0/+28
| | | | | | | | | | | | | Add support for an rpm-extra-macros config option which can be used to define some extra macros that need to be set for rootfs construction to work on the host and that don't really warrant their own specific named config options to be created. (From OE-Core rev: 0564f7bbe8e06868e107b70d5abbf3dd6c113bad) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: support nolinktos and noparentdirs rpm optionsPaul Eggleton2012-12-062-0/+41
| | | | | | | | | | | | Allowing us to turn on these options enables installation of base-files which contains a symlink to /proc/mounts which is auto-detected as a dependency and isn't provided by any other package. (From OE-Core rev: 1f0ad78b8fa739f9a68ed4c7bfae2b6d8586fda2) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: don't create /var/tmp on every rpm database openPaul Eggleton2012-12-062-0/+31
| | | | | | | | | | | | This directory if present in the rootfs interferes with proper installation of base-files and doesn't seem to need to be there for smart/rpm to work in any case. (From OE-Core rev: 54d227e97ff3498fc2149f96f1ca40452ad21a32) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: fix package metadata not being read from rpm-md feedsPaul Eggleton2012-12-062-1/+28
| | | | | | | | | | | The XML indexes in rpm-md were being parsed incorrectly leading to the package metadata (e.g. dependencies) not being read. (From OE-Core rev: bb3abe241ae9d7e62e084cde383ebe1c6b95d825) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: style fixesPaul Eggleton2012-12-061-25/+23
| | | | | | | | | | | | | | | * Use ${PN} instead of python-smartpm * Use multi-line strings instead of multiple single line += (also avoiding the confusing "_append +=") * Use class-native instead of virtclass-native - no difference in behaviour, but this keeps things consistent if we have to add any target overrides in future. (From OE-Core rev: 7dbe5004380b97949a7910706364ba57c6c52a33) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-smartpm: add support for recommendsPaul Eggleton2012-12-063-44/+1363
| | | | | | | | | | | | | | | Implement support within Smart for handling RRECOMMENDS relationships between RPM packages as used by OE. This includes support within the base system for caching and resolving these relationships as well as specific support in the RPM backend for reading the information from packages, and reading the "missingok" flag added to createrepo for rpm-md feeds. (From OE-Core rev: 35e3bc90ec3bae824804bd176b3128efdb5b4e2b) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python-pygtk: add gtk-types.defs into gdk.c dependenceJackie Huang2012-11-242-0/+33
| | | | | | | | | | | | | | | | | gdk.c depends on gtk-types.defs but gdk/Makefile.am miss this. This will cause build error sometimes when built with multi-jobbing, so add gtk-types.defs into gdk.c dependence. [YOCTO #3460] (From OE-Core rev: 0e97ef30c3819e22f43d88e817e8a8b39ca30e5d) Signed-off-by: Song.Li <Song.Li@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>