aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
AgeCommit message (Collapse)Author
2014-09-10e2fsprogs: update acinclude.m4Ross Burton
Some macros have been added upstream and were not being executed, so refresh our fork of this file. Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-09-10e2fsprogs: remove manual build of util/substRoss Burton
The build system uses BUILD_CC itself now, so we don't need to do it manually. Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-09-10e2fsprogs: enable verbose buildRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-09-10e2fsprogs: remove chmodRoss Burton
This chmod doesn't appear to be needed, and history fades away in 2005. Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-09-10pcihp: fix possible array out of bounds, CVE-2014-5388Sona Sarmadi
Prevent out-of-bounds array access on acpi_pcihp_pci_status. [From QEMU: fa365d7cd11185237471823a5a33d36765454e16] Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-09-10gdb: allow compilation for __aarch64__Joe Slater
asm/ptrace.h must be included in two files. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-10valgrind: backport enabling for glibc 2.20Ross Burton
Now that we're running glibc 2.20 not 2.19, backport the configure.ac fixes from upstream. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-10python-native: disable user site supportYasir-Khan
The user site-packages gets inserted into sys.path ahead of the system site directories, so a site package installed there will be used in preference to what's in our sysroot, causing less deterministic builds, and potential build breakage, depending on what the user has installed there. Disable it for our native python, so they don't affect our builds. Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Yasir-Khan <yasir_khan@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-03rpmresolve: ignore null requiresRobert Yang
It is not a problem if a package requires nothing (similar to RDEPENDS is null), for example, these packages depends on nothing: [snip] alsa-conf-base base-files eglibc-binary-localedata-en-us xserver-xf86-config [snip] The rpmresolve-native's algorithm is: ===fake code for pkg in pkg1, pkg2, pkg3: rc = get_req(pkg) return rc ===fake code Suppose of the 3 pkgs requires null: - We are lukcy if pkg1 or pkg2 is null, nothing happend. - We are *not* lukcy if pkg3 is null, and will get the error when "INHERIT += 'buildhistory'": ERROR: Cannot get the package dependencies. Command '/path/to/x86_64-linux/usr/bin/rpmresolve -t /path/to/var/lib/rpm' returned 1: This patch fixes the problem. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-03run-postinsts.service: remove redundant lineChen Qi
The basic.target itself requires sysinit.target, so there's no need to write this redundant line in the run-postinsts unit file. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-03qemu-native: only depends on libxext-native when x11Robert Yang
Fixed when build without x11 in DISTRO_FEATURES: ERROR: libxext-native was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-01python-numpy: Fix build for mips64Khem Raj
Add missing mips64 specific config files Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01recipes: Remove references to eglibcKhem Raj
change use of eglibc related variabled to glibc equivalents Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01perl: add explicit configs for Time-HiResJackie Huang
The compilation of Time-HiRes tries to compile and run the testing program but definitely fails since we are cross compiling: Looking for clock_gettime()... ./tmp26733: ./tmp26733: cannot execute binary file Looking for clock_getres()... ./tmp26733: ./tmp26733: cannot execute binary file so add explicit configs to avoid the auto detecting. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-29qemu-native: depends on libxext-native when enable sdlRobert Yang
Fixed do_configure error: ERROR: User requested feature sdl configure was not able to find it. Install SDL devel The error message from log.do_configure, and if we check config.log, the error is: sysroots/x86_64-linux/usr/lib/libXext.so.6: undefined reference to `_XEatDataWords' The _XEatDataWords is provided by libX11.so, the dependencies are: qemu-native -> sdl(from the host) -> libXext.so(maybe host or native) -> libX11.so (maybe host or native) For example on Ubuntu 12.04 x86_64, the link route is: qemu-native's do_configure sdl checking: /usr/lib/x86_64-linux-gnu/libSDL.so --> <sysroots>/x86_64-linux/usr/lib/libXext.so.6 --> /usr/lib/x86_64-linux-gnu/libX11.so So it is: host sdl -> sysroot libXext.so.6 -> host X11.so qemu-native doesn't depend on libxext-native, so the error would happen if the libx11-native is being rebuilding and the host's libX11.so doesn't have _XEatDataWords. Manually reproduce it on Ubuntu 12.04 x86_64: $ bitbake qemu-native libx11-native libxext-native $ bitbake qemu-native libx11-native -ccleansstate && bitbake qemu-native Note, only qemu-native has this problem since libxext depends on libX11, and SDL would depend on libxext when x11 is enabled. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-28python3-distribute: fix interpreterRobert Yang
It should use "/usr/bin/env python3" rather than python. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-28bootchart2: no bashism in bootchartd.inRobert Yang
So use /bin/sh Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-28run-ptest: fix bashismRobert Yang
These script use /bin/sh as the interpreter, but contains bashism: recipes-devtools/insserv/files/run-ptest recipes-devtools/quilt/quilt/run-ptest recipes-devtools/tcltk/tcl/run-ptest recipes-extended/gawk/gawk-4.1.1/run-ptest recipes-support/beecrypt/beecrypt/run-ptest Fixed: "==" -> "=" (should be -eq when integer) "&>log" -> ">log 2>&1" And quilt's test scripts requires bash, add bash to RDEPENDS_quilt-ptest Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-28valgrind/oprofile/systemd: no bashism in run-ptestRobert Yang
There is no bashism in the scripts, so use /bin/sh, and add /bin/sh interpreter for systemd's run-ptest. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-28perl-native: fixed bad interpreter errorRobert Yang
We may get the error on some hosts when build in deeper dir: /bin/sh: /path/to/tmp/sysroots/i686-linux/usr/bin/perl-native/pod2man: /path/to/tmp/sysroots/i686-li: bad interpreter: No such file or directory Note the "i686-li", it should be "i686-linux", but is truncated by the host. We can use "/usr/bin/env nativeperl" as we have done in cpan.bbclass for other recipe's perl script to fix the problem. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-28patchelf: Add patchelf recipeRichard Purdie
This is useful since it allows us to edit the RPATH and interpreter fields in ELF binaries. This is potentially particularly useful in improving the way we can use the SDK and also potentially making native binaries more relocatable. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-27qemu: add PACKAGECONFIG for numaJackie Huang
Add PACKAGECONFIG for numa to avoid build error: backends/hostmem.c:21:20: fatal error: numaif.h: No such file or directory Package numctl is from meta-oe. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-25autogen-native: inherit pkgconfig to fix a build failureShrikant Bobade
This patch is to inherit pkgconfig to fix a build failure. Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23guile: workaround ice ssa corruption while DEBUG_BUILDHongxu Jia
Add: MACHINE = "qemux86-64" DEBUG_BUILD = "1" to local.conf and there was a ssa corruption to build guile: .. Unable to coalesce ssa_names 48 and 3476 which are marked as MUST COALESCE. sp_48(ab) and sp_3476(ab) guile-2.0.11/libguile/vm-engine.c: In function 'vm_debug_engine': guile-2.0.11/libguile/vm.c:673:19: internal compiler error: SSA corruption #define VM_NAME vm_debug_engine ^ guile-2.0.11/libguile/vm-engine.c:39:1: note: in expansion of macro 'VM_NAME' VM_NAME (SCM vm, SCM program, SCM *argv, int nargs) ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. ... Tweak libguile/vm-i-system.c to check the value of nshuf to workaround it. The tweak didn't change previous logic. [YOCTO #6411] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23opkg: Add runtime dep on gnupg if 'gpg' is in PACAKGECONFIGPaul Barker
The 'opkg-key' utility requires gpg to manage the list of trusted keys. The ability to verify package signatures is not much use without the ability to add keys to the trusted list... Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23expect: fix shared object file cannot be openedChong Lu
When we require Expect package in tcl script, we will get following error: couldn't load file "/usr/lib/expect5.45/libexpect5.45.so": /usr/lib/expect5.45/libexpect5.45.so: cannot open shared object file: No such file or directory while executing "load /usr/lib/expect5.45/libexpect5.45.so" ("package ifneeded Expect 5.45" script) invoked from within "package require Expect" (file "hello.tcl" line 3) This patch fixes this issue. Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23qemu: Explicitly disable libiscsi, its not in DEPENDSJonathan Liu
Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23strace: fix ptest execution failureChong Lu
ptest needs runtest-TESTS target. serial-tests is required to generate this target. Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23perl: fix the output format of all testsChong Lu
We should use "PASS:|FAIL:|SKIP: testname" to output results of ptest. Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23syslinux: add perl to RDEPENDS_syslinux-miscRobert Yang
These scripts are perl: syslinux-misc/usr/bin/md5pass syslinux-misc/usr/bin/isohybrid.pl syslinux-misc/usr/bin/pxelinux-options syslinux-misc/usr/bin/keytab-lilo syslinux-misc/usr/bin/sha1pass syslinux-misc/usr/bin/syslinux2ansi syslinux-misc/usr/bin/mkdiskimage syslinux-misc/usr/bin/lss16toppm syslinux-misc/usr/bin/ppmtolss16 Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23rpm: add perl to RDEPENDS_rpm-buildRobert Yang
Perl scripts: rpm-build/usr/lib64/rpm/http.req rpm-build/usr/lib64/rpm/php.prov rpm-build/usr/lib64/rpm/osgideps.pl rpm-build/usr/lib64/rpm/perl.prov rpm-build/usr/lib64/rpm/bin/api-sanity-autotest.pl rpm-build/usr/lib64/rpm/php.req rpm-build/usr/lib64/rpm/perldeps.pl rpm-build/usr/lib64/rpm/perl.req Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23apt: add bash to RDEPENDS_aptRobert Yang
Bash scripts: apt/usr/lib64/dpkg/methods/apt/update apt/usr/lib64/dpkg/methods/apt/install Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23xmlto: add bash to RDEPENDS_xmltoRobert Yang
Bash scripts: xmlto/usr/bin/xmlto.real Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23kconfig-frontends: add bash to RDEPENDS_kconfig-frontendsRobert Yang
Bash script: kconfig-frontends/usr/bin/kconfig-tweak Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23pax-utils: add bash to RDEPENDS_pax-utilsRobert Yang
Bash scripts: pax-utils/usr/bin/symtree pax-utils/usr/bin/lddtree Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23libtool: add bash to RDEPENDS_libtoolRobert Yang
* Set CONFIG_SHELL="/bin/bash" * Add bash to RDEPENDS_libtool We had already set CONFIG_SHELL="/bin/bash" for libtool-native, libtool-cross and nativesdk-libtool, now also set for target libtool, if we don't set this, libtool would use /bin/sh, /bin/bash, /bin/ksh or /bin/sh5 according to the host, and the build is undetermined, this patch can fix the problem, libtool is a development tool, rdepends on bash should not cause toubles (for example, the size of the image) Have tried to set CONFIG_SHELL="/bin/sh" (/bin/sh -> dash), but there is still a few bashsim in the output libtool. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-23e2fsprogs: Backport fixes for building with muslPaul Barker
Both of these fixes have been applied upstream and improve general code correctness. They are needed when building with TCLIBC=musl but shouldn't cause any harm with other libc implementations. Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-18qemu: fix Darwin cross-compilationCristian Iorga
Darwin target will not be detected correctly if qemu is cross-compiled under a Linux host. Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-17qemu.inc: Drop unneeded nativesdk-libsdl RDEPENDSRichard Purdie
Now sdl is completely handled by PACKAGECONFIG, we can drop this RDEPENDS. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-17qemu-targets.inc: Update to handle mingw/darwinRichard Purdie
For non-linux targets, don't return linux-user qemu targets. This change also improves readability of the functions through better variable names. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-16syslinux: fix race issueRobert Yang
Fixed do_install failed: cp -r syslinux-6.01/com32/libupload/*.h image/usr/share/syslinux/com32/include/ [snip] rm -rf image/usr/share/syslinux/com32/include [snip] cp: cannot create regular file `image/usr/share/syslinux/com32/include/serial.h': No such file or directory The cp is happened in the "libupload" dir, while "rm -fr" is happend in "lib" dir, let "libupload" depend "lib" will fix the problem. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-15gcc-cross-initial: Put limits.h in gccdir/includeKhem Raj
musl e.g. is configured to not use fixed-include which is an improvement btw. but libgcc-initial configure has tests which probe for limits.h and since we put it in include-fixed/ dir and that dir does not appear in gcc's internal default search path the configure tests for CPP detection fail and libgcc-initial can not be compiled. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-15bootchart2: fix installed-vs-shippedRobert Yang
Fixed: ERROR: QA Issue: bootchart2: Files/directories were installed but not shipped /lib /lib/bootchart /lib/bootchart/bootchart-collector /lib/bootchart/tmpfs /lib/bootchart/.debug /lib/bootchart/.debug/bootchart-collector [installed-vs-shipped] local.conf: MACHINE = "qemux86-64" require conf/multilib.conf MULTILIBS = "multilib:lib32" DEFAULTTUNE_virtclass-multilib-lib32 = "x86" Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-15squashfs-tools: Add support for LZO and LZ4 compressionMike Looijmans
For systems that want to optimize for speed rather than size, LZO is usually a better choice than gzip or XZ. Kernel support for LZO has been available since 2.6.29. LZ4 support isn't in the mainline kernel yet, but we might as well add it now for those who want to experiment with it. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-15strace: apply ptrace.h conflict workaroundYasir-Khan
Apply patch from strace upstream to workaround ptrace.h header file conflict. This patch is not available in strace-4.8 tarball pulled in by recipe. * patch from strace upstream - Work around conflict between <sys/ptrace.h> and <linux/ptrace.h> Signed-off-by: Yasir-Khan <yasir_khan@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-15python-pygtk: fix native python pathRobert Yang
Fixed: 1) Set IMAGE_INSTALL_append = " python-pygtk-demo" in local.conf 2) $ bitbake core-image-minimal [snip] Computing transaction...error: Can't install python-pygtk-demo-2.24.0-r1@core2_64: no package provides /usr/bin/python-native/python [snip] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-15opkg: Protect add-exclude.patch from malloc failurePaul Barker
In the code added by add-exclude.patch, the return values of malloc and realloc were not checked before being dereferenced. In opkg we can use xmalloc and xrealloc instead of malloc and realloc. These functions terminate the program instead of returning NULL if memory allocation fails. Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-15gcc: update compiler architecture to match gcc-runtime (armv6, armv7a)Peter A. Bigot
The gcc-runtime recipe builds the gcc libraries including libstdc++ with $TARGET_CC_ARCH flags, which include -march=FOO flags that affect whether atomic instructions are available. This causes an ABI incompatibility when the compiler by default generates code for less capable architectures. For example, gcc-runtime libraries on a Cortex-A8 are built with a different C++11/C++14 mutex implementation than is used code compiled outside OE and without architecture-specific flags. This commit fixes the problem specifically for ABI issues related to atomic instructions available in ARMV6 and subsequent architectures. Other ABI incompatibilities may remain in other architectures. See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62100 Signed-off-by: Peter A. Bigot <pab@pabigot.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-15gcc: backport patch affecting Linux kernel buildsPeter A. Bigot
A long-standing bug in gcc turns out to cause problems with unpatched Linux versions due to improved optimization enabled by gcc 4.9. The upstream fix missed the gcc-4.9.1 cut-off. It's also been applied upstream to the 4.8 branch so is being added for OE's 4.8 as well. Signed-off-by: Peter A. Bigot <pab@pabigot.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-15gcc: Abstract long double configuration into python functionKhem Raj
musl does not support IBM 128 long double for ppc, instead of doing complex overrides move it into a pythong snippet which is easier to read and more compact. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>