aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
AgeCommit message (Collapse)Author
2014-10-24python-smartpm: Add checking for "rpm-ignoresize" optionChong Lu
The do_rootfs takes a very long time when build host has mounted many NFS devices. syscall lstat() was being called on every filesystem mounted on the build host during building. The reason for the lstat() is that rpm is verifying that enough free disk space is available to do the install. However, since the install is into the target rootfs it should not matter how much free space there is in the host mounts. Add checking for "rpm-ignoresize", by it, smart can make whether RPM skip checking for diskspace when install a rpm package. Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-10-18mtools: fix broken /usr/bin/lzWenlin Kang
When build fs with mtools-3.9.9, has file /usr/bin/lz in rootfs, it is the symlink to uz: root@qemu3:~# /usr/bin/lz -sh: /usr/bin/lz: No such file or directory $root@qemu3:~# ls -l /usr/bin/lz lrwxrwxrwx 1 root root 2 Jul 18 18:07 /usr/bin/lz -> uz root@qemu3:~# uz -sh: uz: command not found But the uz isn't actually exist, so the result is that lz is a broken symlink. The root cause is that uz hasn't been installed when install-scripts. Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2014-10-18file: add wrapper to nativesdk-fileHongxu Jia
"file" command in exported SDK doesn't work: ... $ file sysroots/ file: could not find any valid magic files! ... In oe-core commit 68d548cbae729eaea8ce1403dc95ff63c4a7375c, it added wrapper to file-native. Do the same thing for nativesdk-file. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-10-18python: force off_t size to 8 to enable large file supportPaul Eggleton
If DISTRO_FEATURES contains "largefile", force the size of off_t to 8 as a workaround for having ac_cv_sizeof_off_t=4 on 32-bit systems. In future we will likely drop the value from the site file, but for now this is a slightly safer fix. Fixes [YOCTO #6813]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-10-11gcc: backport patch for gcc bug 61144Saul Wold
This fixes gcc bug 6144, which in my case exhibited itself as a kernel module that failed to load. This was because static platform_data structures were being corrupted with the optimiser being set to any value other than -O0. Originally-submitted-by: Peter Urbanec <openembedded-devel@urbanec.net> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-10-10git: fix do_install errorRobert Yang
Fixed when MACHINE = qemux86-64 and libdir = /usr/lib64: mv: cannot stat `/path/to/image/usr/lib64/perl-native/perl': No such file or directory The perl-native files are always installed to /usr/lib on both 32/64 bits targets. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2014-10-10valgrind: Enforce 30 seconds limit for each testTudor Florea
Signed-off-by: Tudor Florea <tudor.florea@enea.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-10-10dosfstools: place files in /sbin, not in /usr/sbinEnrico Scholz
systemd expects fsck programs to be located in /sbin and fails for dosfstools with | Checking was requested for ..., but /sbin/fsck.vfat cannot be used: No such file or directory Other fsck programs (e.g. ext4) are located in /sbin already so move vfat programs into this directory too. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
2014-10-10python-pygobject: add libffi to DEPENDSRoss Burton
libffi is generally present as it's also a build dependency on glib-2.0, but explicitly declare it for determinism. Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-10-06linuxdoc-tools-native: Makedoc.sh uses /tmp and fails w/ noexec mountKonrad Scherer
The Makedoc.sh script uses the following line to set TMPDIR export TMPDIR=`mktemp -d ${TMPDIR:-/tmp}/ldt.XXXXXXXXXX`; and then later in the script: chmod u+x $TMPDIR/linuxdoc Since TMPDIR is not set the script will default to /tmp and if /tmp is set to noexec (which is becoming more common), the chmod call fails. Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-10-06pseudo*.bb: update to pseudo 1.6.2Peter Seebach
pseudo 1.6.2 fixes problems with 64-bit inodes and some underlying issues involving file renames that could occasionally cause very strange behaviors files being deleted, linked, or renamed, mostly observed as strange recovery if an inode got reused. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-10-06gcc-runtime: Add linux-gnuspe symlink to fix c++ headersRichard Purdie
Some architectures can mix different TARGET_OS values, in most cases we just use one but in the ppc case, can use two different values. In this case, to use one toolchain with both, we need to ensure the symlinks exist. This isn't ideal but does fix the ppc toolchains for the release, after which better ways of handling this can be investiaged. Without this, failures in the C++ toolchain are seen. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-10-04adt-installer: Fix to work with meta-environment changesRichard Purdie
There is a proper sysroot specified in the meta-environment script now, which isn't a bad thing. We adjust the sed expression to cope with this. That means the SDK installations in non-default paths start to work again. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-10-02adt-installer: Set INHIBIT_DEFAULT_DEPSRichard Purdie
We've been seeing an issue on the autobuilder due to the way it builds package feed indexes. Packages get copied into the nightly build which then creates indexes however this is done without the knowledge of sstate. When adt-installer is built, it has dependencies on the toolchain and when ipk files already exist, the build throws errors. Since this recipe doesn't need a toolchain, we can remove the dependencies to work around this for now. I'm not particularly happy with what the autobuilder is doing but that is a post release issue. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-10-01apt: apt-key binary was not being installed, including it in the installationAlejandro Hernandez
[YOCTO #6476] Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-30perl: Improve sysroot regexpRichard Purdie
When rebuilding libxml-parser-perl with a change to libdir, you see strange build failures due to MakerMake looking in strange library paths. The error is obtuse and hard to track down. I'm therefore proposing we change the regexp once and for all to resolve the issue. Currently it only does a replacement once, this change ensures it always gets set the correct value upon rebuilds. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-30gdb-cross-canadian: Add to sstate whitelistRichard Purdie
The various gdb variants overwrite in datadir so whitelist this for now, they are the same files and this is not an issue. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-30rpm: add version 4.11.2Saul Wold
add patch to remove db3 from configure.ac add inherit pkgconfig Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-30python-smartpm: Add patches for rpm4Saul Wold
Add DEPENDS for python-rpm package from either rpm4 or rpm5 Extend the smart-dflags patch to catch an exception if the api does exist Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-30rpm5: add python-rpm PROVIDESSaul Wold
Since python-smartpm depends on python-rpm, we should provide here as appropriate. Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-29squashfs-tools_4.3: modify SPDX_S variableleimaohui
Modify SPDX_S to the source tree of squashfs instead of ${S}. Signed-off-by: leimaohui <leimaohui@cn.fujitsu.com>
2014-09-29apt: fix for CVE-2014-0478Chong Lu
APT before 1.0.4 does not properly validate source packages, which allows man-in-the-middle attackers to download and install Trojan horse packages by removing the Release signature. http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-0478 Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
2014-09-29git: add Git perl module to perltools packagePeter A. Bigot
Git perl tools such as add--interactive load the Git module at runtime. A previous patch to eliminate a QA error by deleting it instead of packaging it was incorrect. beaglebone[62]$ git add -i Can't locate Git.pm in @INC (you may need to install the Git module) (@INC contains: /usr/lib/perl/5.20.0 /prj/pab/Utils/lib/perl5/linux-arm/5.020000 /prj/pab/Utils/lib/perl5/ /prj/pab/Utils/lib/perl5/site_perl/linux-arm /prj/pab/Utils/lib/perl5/site_perl /etc/perl /usr/lib/perl/site_perl/5.20.0/ /usr/lib/perl/site_perl/5.20.0 /usr/lib/perl/vendor_perl/5.20.0/ /usr/lib/perl/vendor_perl/5.20.0 /usr/lib/perl/5.20.0/ /usr/local/lib/site_perl .) at /usr/lib/git/git-core/git-add--interactive line 7. BEGIN failed--compilation aborted at /usr/lib/git/git-core/git-add--interactive line 7. [YOCTO#3780] Signed-off-by: Peter A. Bigot <pab@pabigot.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-09-22perl: remove unneeded patches in ptest directoryChong Lu
The perl patches have been copied to ptest directory and these patches in target rootfs are linked to build dir. The ptest of perl doesn't need these patches, so remove them from target. Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
2014-09-22python: obey LDFLAGSChristopher Larson
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2014-09-22ossp-uuid: obey LDFLAGSChristopher Larson
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2014-09-22flex: fix the deps for ptest buildsChristopher Larson
Building the tests for flex requires flex-native and bison-native, but the attempt to add this dependency was done incorrectly. Use an inline python conditional based on PTEST_ENABLED instead. Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2014-09-16gcc-configure/gcc-common: Move preconfigure definition to common includeRichard Purdie
There is a race where: NOTE: recipe libgcc-initial-4.9.1-r0: task do_configure: Started NOTE: recipe gcc-runtime-4.9.1-r0: task do_preconfigure: Started | checking build system type... /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-deb/build/build/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/libgcc/../config.sub: line 1711: syntax error near unexpected token `;;' | /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-deb/build/build/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/libgcc/../config.sub: line 1711: ` ;;' | configure: error: /bin/bash /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-deb/build/build/tmp/work-shared/gcc-4.9.1-r0/gcc-4.9.1/libgcc/../config.sub x86_64-linux failed | WARNING: exit code 2 from a shell command. so we need to make sure the preconfigure task executes in all shared work contexts. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-09-16rsync: remove trailing whitespaceRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-09-16rsync: Add PACKAGECONFIG for acl/attrRoy Li
Add PACKAGECONFIG for acl/attr and setting the default value to enable them [ RB: fix PACKAGECONFIG assignment ] Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2014-09-16i2c-tools: create i2c-tools-misc package for perl scriptsChong Lu
The patch is to split those perl scripts from the main package. Add perl to RDEPENDS_i2c-tools-misc. Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
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>