aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* rsync:Use usleep() for msleep() if it is availableChenQi/rsync-usleepChen Qi2015-10-282-1/+57
| | | | | | | | | Use usleep() for msleep() if it is available. Upstreamlink:https://git.samba.org/?p=rsync.git;a= commitdiff;h=5546dab32970955e77ef7a5886bcd8fb765a25bf Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
* oeqa/utils/decorators: fix missing keyword arguments on decoratorsPaul Eggleton2015-10-271-8/+8
| | | | | | | | | | | We need to handle keyword arguments here or sending a keyword argument to a decorated function that accepts keyword arguments will trigger an error. (This showed up when testcase decorators were added to the recipetool.RecipetoolTests.test_recipetool_appendsrcfiles_basic_subdir test). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/gtk-icon-cache: don't pass STAGING_LIBDIR_NATIVE to interceptsRoss Burton2015-10-241-4/+2
| | | | | | The intercept doesn't need STAGING_LIBDIR_NATIVE anymore, so don't pass it. Signed-off-by: Ross Burton <ross.burton@intel.com>
* intercepts/update_icon_cache: use STAGING_DIR_NATIVE from environmentRoss Burton2015-10-241-1/+1
| | | | | | | | | | | Instead of expecting that the calling postinst has exported STAGING_LIBDIR_NATIVE (which will get set to the sysroot at package build time and may not be correct if sstate is used), use the new STAGING_DIR_NATIVE that is exported by rootfs.py. [ YOCTO #8547 ] Signed-off-by: Ross Burton <ross.burton@intel.com>
* lib/oe/rootfs: tell intercepts where the native sysroot isRoss Burton2015-10-241-0/+1
| | | | | | | | | | | | | Some intercepts may want to access files in the native sysroot that are not on $PATH (such as something in $libexecdir) but any use of STAGING_DIR_NATIVE in the postinst that calls the intercept will be "baked" into the package, so if sstate is reused it will use paths that may not exist. Solve this by exporting the location of the native sysroot in the environment so the postinst and intercept can use an environment variable instead of a bitbake variable. Signed-off-by: Ross Burton <ross.burton@intel.com>
* subversion: add explicit dependency on file-replacement-native for native buildsRoss Burton2015-10-241-0/+1
|
* rpm: add explicit dependency on file-replacement-native for native buildsRoss Burton2015-10-243-0/+3
|
* file: don't replace host file when built nativelyRoss Burton2015-10-242-1/+41
| | | | | | | | | | | | | | | | | To avoid races over the file binaries being replaced mid-build we made file-native an assume-provided binary and check for it at startup, but target file still needs a native file binary of the same version to compile the magic data. The least invasive way of doing this is to build a native file don't put it on PATH, and tell the target build where to find the native binary. We do however want the native libmagic to be installed normally (as for example rpm and subversion need it) so we can't use NATIVE_PACKAGE_PATH_SUFFIX as that change libdir. [ YOCTO #8144 ] Signed-off-by: Ross Burton <ross.burton@intel.com>
* sanity: check that the host has file installedRoss Burton2015-10-241-1/+1
| | | | | | Now that file-native is ASSUME_PROVIDED, check that it's actually present. Signed-off-by: Ross Burton <ross.burton@intel.com>
* bitbake: add file-native to ASSUME_PROVIDEDRoss Burton2015-10-241-0/+1
| | | | | | | | | Various key parts of the core classes (for example, do_package and do_populate_sysroot) currently require file. As it's not possible to build a file-native without invoking do_populate_sysroot mark file-native as ASSUME_PROVIDED and expect to use the host's binary. Signed-off-by: Ross Burton <ross.burton@intel.com>
* Revert "runqemu-export-rootfs: update location of unfsd binary"Ross Burton2015-10-241-4/+4
| | | | | | | | | unfsd appears to be moving around and is in sbin for at least two different users, so revert the change to expect it in bin. This reverts commit e56bda210e216251c04d872211081a89ac06dde6. Signed-off-by: Ross Burton <ross.burton@intel.com>
* populate_sdk_base: Ensure PKGDATA_DIR existsRichard Purdie2015-10-241-1/+1
| | | | | | | | | | | The code assumes that PKG_DATADIR exists and will fail if an image has not been generated which creates it. This occurs when something like buildtools-tarball is built which doesn't have target packages, only nativesdk ones. Since this shouldn't be fatal, workaround this by creating the missing directory. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Perl: Use CC version not $Config(gccversion)Jeremy Puhlman2015-10-242-0/+24
| | | | | | | | | | | | | Get version data from querying $CC rather then $Config(gccversion) which comes from running version of perl. Since perl-native is not likely compiled by gcc 5 at this point, it will never trigger the required fixes for gcc 5. [YOCTO #8367] Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* wic/utils/oe/misc.py: Preserve PATH when running native toolsRandy Witt2015-10-241-4/+16
| | | | | | | | | | | | Previously exec_native_cmd() would remove all items from PATH except for the native sysroot. This can cause issues for the tools that are created using create_wrapper(). Now instead of wiping out the PATH, run a sanity check to check if the command is in the native sysroot. Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* mtools_4.0.18.bb: Use create_wrapper() for mcopyRandy Witt2015-10-241-0/+5
| | | | | | | | | | | | mcopy uses the IBM850 codepage from gconv. The default install location for gconv will not match the actual install location since it can be pulled from sstate. This patch overrides the default location when running by adding GCONV_PATH to the environment for mcopy. [YOCTO #7629] Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* scripts/oe-pkgdata-util: Fix variable name in error handlingRichard Purdie2015-10-241-1/+1
| | | | | | | | | Fix: logger.error('Unable to find pkgdata directory %s' % pkgdata_dir) NameError: global name 'pkgdata_dir' is not defined Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Ross Burton <ross.burton@intel.com>
* Add 850 codepage to uninative-tarballRandy Witt2015-10-241-0/+1
| | | | Signed-off-by: Ross Burton <ross.burton@intel.com>
* e2fsprogs: backport a patch to fix filetype for hardlinkRobert Yang2015-10-242-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport a patch to fix hardlinks filetype: IMAGE_INSTALL_append = " e2fsprogs" $ ./tmp/sysroots/x86_64-linux/sbin/fsck.ext4 tmp/deploy/images/qemux86/core-image-minimal-qemux86.ext4 -f Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Setting filetype for entry 'fsck.ext2' in /sbin (80) to 1. Setting filetype for entry 'mkfs.ext4' in /sbin (80) to 1. Setting filetype for entry 'fsck.ext4' in /sbin (80) to 1. Setting filetype for entry 'mkfs.ext4dev' in /sbin (80) to 1. Setting filetype for entry 'fsck.ext3' in /sbin (80) to 1. Setting filetype for entry 'mkfs.ext2' in /sbin (80) to 1. Setting filetype for entry 'mkfs.ext3' in /sbin (80) to 1. Setting filetype for entry 'e2fsck' in /sbin (80) to 1. Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information test.img: ***** FILE SYSTEM WAS MODIFIED ***** test.img: 799/65536 files (0.1% non-contiguous), 14652/262144 blocks Now when run it again, we may get: [snip] Pass 3A: Optimizing directories [snip] test.img: ***** FILE SYSTEM WAS MODIFIED ***** test.img: 799/65536 files (0.1% non-contiguous), 14652/262144 blocks This is fine since it is optimizing, from "man e2fsck": e2fsck may sometimes optimize a few directories --- for example, if directory indexing is enabled and a directory is not indexed and would benefit from being indexed, or if the index structures are corrupted and need to be rebuilt. [YOCTO #8544] Signed-off-by: Ross Burton <ross.burton@intel.com>
* oeqa/selftest: Added testcase decorators.Daniel Istrate2015-10-244-8/+30
| | | | | | | Added testcase decorators for testopia integration. Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* runqemu-ifup: Check if the tap interface is set up correctlyMariano Lopez2015-10-241-0/+15
| | | | | | | | | | | | | | | | | | | | | | The process to set up a tap interface is as follows: - tap interface is created - An IP address is assigned to the tap interface - The interface is bring up - A route is added to the target using the tap interface Of all the previous steps, only the first one is check if it was sucessful. The status of the others are ignored and all of them are required to have basic connectivity in the target. This patch adds the checks for the rest of the stpes needed to set up the tap interface. [YOCTO #8550] Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* qemurunner: Show the output of runqemu scriptMariano Lopez2015-10-241-0/+1
| | | | | | | | | | | This change will show runqemu output in the logs when running the runtime tests. This is helpful for debugging testimage errors. [YOCTO #8550] Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* runqemu-internal: Enable support for use virtio devices.Aníbal Limón2015-10-241-42/+17
| | | | | | | | | | | Enable virtio usage for default in runqemu also get rid of duplicate configuration from now all qemu machines uses virtio. [YOCTO #8427] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* linux-yocto{, -rt}: Enable support for virtio drivers in qemu machines.Aníbal Limón2015-10-245-3/+5
| | | | | | | | | | | In order to use virtio devices as default in runqemu script because these drivers are designed to use in vrit providing better performance. [YOCTO #8427] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* runqemu: Enable support for kvm without vhost in x86 and x86_64Aníbal Limón2015-10-242-11/+26
| | | | | | | | | | | | | | KVM can be used without vhost so add a new option to runqemu for use kvm with vhost. Example, runqemu qemux86 core-image-minimal kvm # kvm without vhost runqemu qemux86 core-image-minimal kvm-vhost # kvm with vhost [YOCTO #7443] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* prserv.bbclass: remove it since it is nullRobert Yang2015-10-242-3/+0
| | | | | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* initscripts/sysfs.sh: Mount devtmpfs on /dev/ if neededMike Looijmans2015-10-241-0/+4
| | | | | | | | | | | | | | | When booting from an initrd disk, or when the kernel config option DEVTMPFS_MOUNT isn't provided, /dev/ will not be mounted at boot. This small addition will check if /dev/ is "useful", and if not, will mount devtmpfs if the kernel provides it. With this change, it is possible to set an initscripts style image type to "cpio.gz" and boot it as initrd. Without this change, the image won't work properly because of the missing devices. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Ross Burton <ross.burton@intel.com>
* image-mklibs.bbclass: update i586 TARGET_ARCH test to i*86Andre McCurdy2015-10-241-1/+1
| | | | | Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* base.bbclass: considering multilib when setting LICENSE_EXCLUSIONJian Liu2015-10-241-1/+2
| | | | | | | | | | | | | | | The PACKAGES is not mapped with MLPREFIX when setting LICENSE_EXCLUSION in base.bbclass. For example, For libgcc-dev, LICENSE_EXCLUSION-libgcc-dev=1 but for lib32-libgcc-dev, LICENSE_EXCLUSION-libgcc-dev=1 Obviously it is wrong for lib32-libgcc-dev. Add MLPREFIX before the package name during setting LICENSE_EXCLUSION Signed-off-by: Jian Liu <jian.liu@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* gcc-target.inc: Add support for executable thats may have a suffixMark Hatle2015-10-241-6/+6
| | | | | | | | | | In the past GCC has used a wildcard to permit generating executables that may have a suffix, such as .exe. This wild card was lost in one of the updates. Adding the wild card back in fixes a number of issues when generating a mingw gcc. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* cairo: backport fix for compatibility with OpenGL ES 2.0Andre McCurdy2015-10-242-0/+50
| | | | | | | | | | | | | | To maintain compatibility with OpenGL ES 2.0, the matrix in _cairo_gl_shader_bind_matrix() should be manually transposed, and GL_FALSE passed as the transpose argument to the glUniformMatrix3fv() call as it is the only valid value for that parameter in OpenGL ES 2.0. http://lists.cairographics.org/archives/cairo/2015-May/026253.html http://cgit.freedesktop.org/cairo/commit/?id=f52f0e2feb1ad0a4de23c475a8c020d41a1764a8 Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* mesa-demos: fix deadlock in sharedtex_mtAwais Belal2015-10-242-0/+44
| | | | | | | | This patch fixes a deadlock that occurs between the main thread and rendering threads of the sharedtex_mt demo. Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* bzip2: fix bunzip2 -qt returns 0 for corrupt archivesWenzong Fan2015-10-242-0/+56
| | | | | | | | | | | | | | | | | | | | "bzip2 -t FILE" returns 2 if FILE exists, but is not a valid bzip2 file. "bzip2 -qt FILE" returns 0 when this happens, although it does print out an error message as is does so. This has been fix by Debian, just port changes from Debian patch file "20-legacy.patch". Debian defect: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279025 Fix item from changelog: http://archive.debian.net/changelogs/pool/main/b/bzip2/bzip2_1.0.2-7/changelog * Fixed "bunzip2 -qt returns 0 for corrupt archives" (Closes: #279025). Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* gnome-desktop: add xkeyboard-config dependencyPushpal Sidhu2015-10-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | gnome-desktop will fail during do_configure if xkeyboard-config had not already been built. Please see the following for the error: | configure: error: Package requirements (gdk-pixbuf-2.0 >= 2.21.3 | gtk+-3.0 >= 3.3.6 | glib-2.0 >= 2.38.0 | gio-2.0 >= 2.38.0 | gsettings-desktop-schemas >= 3.5.91 | xrandr >= 1.3 | xext >= 1.1 | xkeyboard-config | iso-codes) were not met: | | No package 'xkeyboard-config' found Add dependency of xkeyboard-config to this to resolve this issue. Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* gtk+3: Do not try to initialize GL without libglJussi Kukkonen2015-10-243-1/+64
| | | | | | | | | | | | | | | | | | Gdk initialization ends up calling epoxy GLX api, which calls exit() if libGL.so.1 is not present. In practice this prevents all GTK+ applications from starting if GLX is not present. If opengl and x11 distro features are set, make gtk+3 RDEPEND on libgl. If opengl and x11 distro features are not set, use #ifdef to prevent the GL initialization. Remove libgl dependency from gtk3-demo: it can now run without libgl (although trying to run the glarea demo will exit in that case). [YOCTO #8529] Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* classes/insane: rename invalid-pkgconfig QA check to invalid-packageconfigPaul Eggleton2015-10-241-2/+2
| | | | | | | | We have enough confusing name clashes already, let's not precipitate another one. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* uclibc: Implement syncfs and AT_EMPTY_PATH for all and O_PATH for armKhem Raj2015-10-243-0/+93
| | | | | | | | needed for systemd 225 to compile with uclibc Change-Id: Id5f990edf4a773de49742f9f9ea5139e55e21f69 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* systemd: Fix build with uclibcKhem Raj2015-10-243-0/+63
| | | | | | | | | 225 needs additional patches for cater for new APIs used in systemd Change-Id: Idb66c2c6bb65c94b52ba35b276ca12cc868b043e Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libtirpc: Fix a bug exposed by uclibcKhem Raj2015-10-242-1/+21
| | | | | | | | | | to have va_list we need to include stdarg.h no matter what but it was latent since with glibc it was getting pull in silently via other headers Change-Id: Ie5f1af4c1374fa525647fcb3ae936ec525a99da1 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libpam: Fix build with uclibcKhem Raj2015-10-242-1/+236
| | | | | | | | | libpam needs to adjust for posix utmpx uclibc now disables utmp Change-Id: Ibcb7cb621527f318eb8b6e2741647ccb4c6bb39c Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* coreutils: Do not use host paths in getloadavg.m4Khem Raj2015-10-242-0/+19
| | | | | | | | helps configure QA pass when building for uclibc Change-Id: I42e9542829bc3678ee777d0a8768aecdf77eaead Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* coreutils-6.9: Add missing dependency on virtual/libiconvKhem Raj2015-10-241-0/+1
| | | | | | | | | Surfaces on uclibc where libiconv is not coming from libc but from separate package. Change-Id: I8eef52a69d2b6830deff94531631ca098bce2a89 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* uclibc: Fix build with gcc5Khem Raj2015-10-242-0/+52
| | | | | | | | | | An agressive optimization in gcc5 meant that we get linking errors with uclibc build, this patch fixes the issue by letting gcc know that these funcitons are used. Change-Id: I8ecf3999a0855b3bbf4bc2df576be5351f9be5b0 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libtirpc: Refresh uclibc patchesKhem Raj2015-10-241-11/+11
| | | | | | | | patch fails to apply otherwise Change-Id: Ic16912e6e0e8ba75253a4aa0b357b91cabefbf5c Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* rpcbind: Fix build with uclibcKhem Raj2015-10-242-32/+0
| | | | | | | | | The 0001-uclibc-nss.patch has been applied upstream in a bit different way but solves the issue at hand Change-Id: I7312d109d01c08338d4673383e2eaccee219b7bd Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* scripts/oe-publish-sdk: create directory before making git repoCostin Constantin2015-10-241-2/+2
| | | | | | | | | | This patch fixes a small bug that prevents seting a git repo in exported SDK layers dir. Before setting a git repo, that directory needs to be created. [ YOCTO #6659 ] Signed-off-by: Costin Constantin <costin.c.constantin@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* rootfs.py: add more info to the warning messageEd Bartosh2015-10-241-0/+1
| | | | | | | | | | | | Since the log_check_regex can potentially be false positive it makes sense to print the whole line where error is found. This way user will be able to see the error and understand if it's valid or not. [YOCTO: #7789] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* package signing: automatically export public keysMarkus Lehtonen2015-10-244-3/+59
| | | | | | | | | Automatically export public key(s) of the signing key(s) from the gpg keyring. Adds a new simple recipe that does the actual task of exporting the keys. This patch makes the RPM_GPG_PUBKEY and PACKAGE_FEED_GPG PUBKEY settings obsolete. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* package_manager: fail if signed feeds are enabled for ipk or dpkgMarkus Lehtonen2015-10-241-0/+4
| | | | | | Signed package feeds are not yet implemented for these package formats. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Add new bbclass for package feed signingMarkus Lehtonen2015-10-241-0/+24
| | | | | | | | After this change signed package feeds should be enabled by adding INERIT += "sign_package_feed" instead of definining PACKAGE_FEED_SIGN="1". Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* sign_rpm.bbclass: make RPM_GPG_NAME a mandatory settingMarkus Lehtonen2015-10-241-21/+9
| | | | | | | | | Simplifies the configuration. Makes way for the removal of RPM_GPG_PUBKEY setting and possible future implementation of a separate signing server support. Also, moves the configuration sanity checking into a separate function. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>