aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
AgeCommit message (Collapse)Author
2013-07-23binutils: fix build with recent texinfo (5.1)dannyEric Bénard
Signed-off-by: Eric Bénard <eric@eukrea.com>
2013-07-23gcc: add patch to disable texinfo when texinfo is 5.0 or newerMartin Jansa
* this is needed only for 4.7 series, newer works fine with texinfo-5* [YOCTO #3947] Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-05-08qemu-native: fix DSO linkingTrevor Woerner
I noticed this issue trying to build using the Danny branch on what is currently the most recent openSuSE (12.3). It appears to be similar to the fedora DSO linking issue: https://fedoraproject.org/wiki/UnderstandingDSOLinkChange. Upstream-status: Inappropriate [OE Specific] Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-04-29perl: fix CVE-2013-1667Ross Burton
From http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-1667: "The rehash mechanism in Perl 5.8.2 through 5.16.x allows context-dependent attackers to cause a denial of service (memory consumption and crash) via a crafted hash key." Patch taken from upstream git. Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-04-29perl: fix CVE-2012-6329Ross Burton
From http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6329: "The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly handle backslashes and fully qualified method names during compilation of bracket notation, which allows context-dependent attackers to execute arbitrary commands via crafted input to an application." Patches taken from upstream git. Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-04-23perl_5.14.2.bb:fix toolchain relocation issuesHongxu Jia
1, Use create_wrapper to create perl wrapper in the SDK. 2, Add perl.real to perl-nativesdk package. Cherry-pick commit 820a64bfb7b27e3aaa3b8c0228c4ed70b64c03d1 [YOCTO #3984] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23automake_1.12.3.bb: update dependenciesHongxu Jia
Remove the RDEPENDS for nativesdk because the nativesdk-automake also needs perl modules. Add dependencies perl-module-thread-queue and perl-module-threads. Remove redundant dependencies that they are already required by autoconf and autoconf is required by automake. In this removed list, "-->" present "required by": perl-module-cwd --> perl-module-file-path --> autoconf perl-module-dynaloader --> perl-module-xsloader --> perl-module-fcntl --> perl-module-file-stat --> autoconf perl-module-exporter-heavy --> perl-module-exporter --> autoconf perl-module-constant --> autoconf perl-module-errno --> autoconf perl-module-file-basename --> autoconf perl-module-file-compare --> autoconf perl-module-file-copy --> autoconf perl-module-file-glob --> autoconf perl-module-file-spec-unix --> perl-module-file-spec --> perl-module-io-file --> autoconf perl-module-file-stat --> autoconf perl-module-getopt-long --> autoconf perl-module-io --> perl-module-IO-handle --> perl-module-IO-seekable --> perl-module-io-file --> autoconf perl-module-io-file --> autoconf perl-module-posix --> autoconf Bump up PR. Cherry-pick commit d93898b2c530681362e42d1b0477fa593a625046 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23perl_5.14.2.bb:fix errors if configure is reattemptedHongxu Jia
If configure of perl is reattempted it currently fails as it tries to edit files outside ${S}. Chaging from ${WORKDIR} to ${S} avoids this issue and allows rebuilds to work. Cherry-pick commit f2f0a1aa489f9e6e4414fa758d3dd09a950a106c Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23generate-sh.patch:fix autoreconf run failed on gmae-toolchainHongxu Jia
The perl shared libraries did not have RPATHs set and that made autoreconf fail when using the SDK. The LDDLFLAGS environment variable was already exported in the recipe but was not used when generating the config.sh. Cherry-pick commit df1a1dcb6d95a4aa558019530445373537c4efdd [YOCTO #3338] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23perl_5.14.2.bb:fix autoreconf run failed on gmae-toolchainHongxu Jia
File warnings/register.pm has been moved to package perl, update RPROVIDES_perl to provides perl-module-warnings-register for backward compatibility. Update populate_package script for: 1 Way to deal directory 'Module/' is not right, it creates packages whose names end with '-pm'. Update to drop these packages. 2 Deal directory 'auto/' to put same name module file(.pm) and library file(.so) into one package. That because .pm file requires the same name .so file at runtime. Cherry-pick commit dd65b82d24afcf3982f6fb93a6503c71fdf40dbf [Yocto #3338] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23perl_5.14.2.bb:Fix support strict/vars/config/warnings modulesHongxu Jia
With the move of the strict/vars/config/warnings modules to the main perl recipe, we need to RPROVIDE those modules to ensure that package dependencies on those modules continue to work correctly. Cherry-pick commit 072a6d352f55bbe481b04db02aa6d9cde7d90057 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23perl_5.14.2.bb: use PACKAGES_DYNAMIC as regexpHongxu Jia
bitbake uses PACKAGES_DYNAMIC as regexp 1, use `^' to make matching faster (and it will be more clear that we're expecting regexp not glob) 2, use `*' to made all those last '-' optional, use .* (or nothing) 3, use `+=' instead of `=' to to keep ${PN}-locale from bitbake.conf:PACKAGES_DYNAMIC = "^${PN}-locale-.*" Cherry-pick commit 33b31640bf485bcfefee015e9df81aa9989b322c Cherry-pick commit fadb4079014514beb7d2d3e6c66f63397d4ebce2 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23perl_5.14.2.bb: fix dependeciesHongxu Jia
This patch fixes 2 problems. The first one is that when run "perl -V" on target, it fails with lack of some .pm files. So add these perl module files to package perl itself to fix this failure. The second problem is that package nativesdk-perl-modules doesn't depends on the single perl modules. In the .bb file, dependencies of perl-modules are set by: RRECOMMENDS_perl-modules = "${@d.getVar('PACKAGES', True)...}" The PACKAGES would be reset by do_split_packages since: PACKAGES_DYNAMIC = "perl-module-*" PACKAGES_DYNAMIC_virtclass-nativesdk = "nativesdk-perl-module-*" Then: 1) The target perl-modules RRECOMMENDS on perl-module-*, this is what we expect. 2) But the nativesdk-perl-modules doesn't RRECOMMENDS on nativesdk-perl-module-*, this is not what we expect. The value of PACKAGES after do_split_packages has been set correctly (it contains the nativesdk-perl-module-* packages) But the:RRECOMMENDS_perl-modules = "${@d.getVar('PACKAGES', True)...}" doesn't work correctly for nativesdk, the d.getVar('RRECOMMENDS_perl-modules', True) doesn't get the new value of the PACKAGES, it gets the value of PACKAGES before the do_split_packages. Cherry-pick commit 51cbb5ae76a22d465e2f6c5ef923ec2682624e3b Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23perl-rdepends_5.14.2.inc:be more strict in multiline commentHongxu Jia
* fails to parse when http://patchwork.openembedded.org/patch/40997/ is used Parsing recipes...ERROR: There is a confusing multiline, partially commented expression on line 10 of file /OE/shr-core/openembedded-core/meta/recipes-devtools/perl/perl-rdepends_5.14.2.inc (| sed "s/\/.*\.pm: */ += /g;s/[\"\']//g;s/;.*/\"/g;s/+=.*\(require\|use\)\> */+= \"perl-module-/g;s/CPANPLUS::.*/cpanplus/g;s/CPAN::.*/cpan/g;s/::/-/g;s/ [^+\"].*//g;s/_/-/g;s/\.pl\"$/\"/;s/\"\?\$/\"/;s/(//;" | tr [:upper:] [:lower:] \). Please clarify whether this is all a comment or should be parsed. ERROR: Unable to parse /OE/shr-core/openembedded-core/meta/recipes-devtools/perl/perl_5.14.2.bb: Exited with "1" ERROR: Command execution failed: Exited with 1 Cherry-pick commit 54b8096f91af47c72ac9abffe2f5c73fee27ad57 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23perl-rdepends_5.14.2.inc:update dependency creating scriptHongxu Jia
Base on dependency create script provided by Saul, I update it with: 1 remove document strings in perl module files that may import fake dependencies. 2 not all the 'use' or 'require' clauses start at the begin of line, and some of them don't end with ';', such as: use vars qw( $AUTOLOAD ... 3 filter some strings that they are not real dependencies: some of them are wrong result of script, some are conditional use/require, and some are cpan extra modules that we don't need. Cherry-pick commit 4601eb90f518fdc2d5fda31507402f7929268c87 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23perl-rdepends_5.14.2.inc:fix perl File::Glob module is brokenHongxu Jia
Update dependencies for perl modules again. When only install perl-module-file-glob, run perl script with "require File::Glob;" will fail. Update dependencies to fix that. Cherry-pick commit c65e88b3f20627d7e49e0306f336eee3fb256d1e [Yocto 3069] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23perl-rdepends_5.14.2.inc: update dependencies among modulesHongxu Jia
Run autoreconf fails because it uses several perl modules and they requires other perl modules. So update these dependencies for: perl-module-exporter perl-module-file-glob perl-module-file-path perl-module-file-spec perl-module-file-stat perl-module-io-file perl-module-io-handle perl-module-io-seekable perl-module-posix And RDEPENDS rules in file perl-rdepends_5.14.2.inc don't work for nativesdk perl module packages. Replace all "perl" with "${PN}" in the file to fix that. In nativesdk.bbclass it calls oe.classextend.NativesdkClassExtender().map_packagevars() to map package vars include var RDEPENDS. In map_packagevars(): for pkg in (self.d.getVar("PACKAGES", True).split() + [""]): the value of var "PACKAGES" may not be calculated correctly, so for all the nativesdk packages created by PACKAGES_DYNAMIC_virtclass-nativesdk += "^nativesdk-perl-module-.*" dependencies are wrong. Cherry-pick commit f816625bf21348c1b0d887d11a77e7f5010ce76d Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23autoconf:fix autoreconf run failed on x86-64 gmae-toolchainHongxu Jia
Update autoconf runtime dependencies on perl and perl modules. And remove RDEPENDS for nativesdk because the nativesdk-autoconf has same dependencies with autoconf. Then fixes autoreconf runs failed both on target and toolchain. Bump up PR. Cherry-pick commit 3533e801eecb26ae9f97649ed2f675c3965a797b [Yocto 3100] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2013-04-23adt-installer: remove patches and .pc directories from the shipped tarballLaurentiu Palcu
The patches and .pc directories should not be shipped since the patches were already applied. So, remove these 2 directories. [YOCTO #3983] Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-23libtool: Ensure the paths to sed are not hardcodedRichard Purdie
If you: bitbake sed-native bitbake libtool-cross then libtool-cross has SED="/path/to/sysroot/sed" which is incorrect. If that is reused from sstate or sed-native is cleaned, the build will fail. This patch simply sets sed to be "sed" since we're not on systems where the sed from PATH is broken. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-23remake: do not create po filesSaul Wold
The 'make update' was using wget to get the gmo and other gnu files from upstream, since need to work cleanly in a non-networked or proxy environment this does not so well. Remove the list of languages from the LINGUAS file. [YOCTO #3745] Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-02-19perl: fix security issueKang Kai
Add perl-fix-CVE-2012-5195.patch to fix perl memory exhaustion denial-of-service attack issue. And patch is from perl 5.14.3 branch: http://perl5.git.perl.org/perl.git/commit/b675304e3fdbcce3ef853b06b6ebe870d99faa7e [Yocto 3701] Signed-off-by: Kang Kai <kai.kang@windriver.com>
2013-02-19Python: Fix for CVE-2012-2135yanjun.zhu
Reference:http://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] Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
2013-02-15valgrind: explicitly disable MPI2 supportPaul Eggleton
We don't have support for this in OE-Core, so ensure we don't pick this up from the build host if e.g. openmpi development files happen to be installed there. Fixes [YOCTO #3726]. (From OE-Core rev: cc490d76aba0a778409ca1a3d0e1f2c308684c9b) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-02-14guile: add explicit dependency to avoid parallel build issueBogdan Marinescu
Add explicit dependency for libpath.h on dynl.x which fixes a potential parallel build issue. [YOCTO #3558] Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-02-14squashfs: fix CVE-2012-4025yanjun.zhu
CQID:WIND00366813 Reference: http://squashfs.git.sourceforge.net/git/gitweb.cgi? p=squashfs/squashfs;a=patch;h=8515b3d420f502c5c0236b86e2d6d7e3b23c190e Integer overflow in the queue_init function in unsquashfs.c in unsquashfs in Squashfs 4.2 and earlier allows remote attackers to execute arbitrary code via a crafted block_log field in the superblock of a .sqsh file, leading to a heap-based buffer overflow. http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-4025 Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com> [YOCTO #3564] Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-12-05autogen: use pkg-config directly instead of guile-configRoss Burton
The autoconf macros in autogen use dpkg (!) and guile-config to determine what/where Guile is. If the build host has an installed guile, these can produce conflicting results. More interestingly, if the Guile library source and compiled form have bad timestamps (source newer than compiled) the configure scripts knows that Guile is present but doesn't know what version it is, resulting in compile errors. [ YOCTO #3370 (partially) ] Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-12-05guile: touch compiled modules on sstate installRoss Burton
When guile is installed from sstate, if the compiled files get a modified time older than the source files then guile will produce warnings like this: ;;; note: source file /data/poky-master/tmp/sysroots/x86_64-linux/usr/share/guile/2.0/ice-9/boot-9.scm ;;; newer than compiled /data/poky-master/tmp/sysroots/x86_64-linux/usr/lib/guile/2.0/ccache/ice-9/boot-9.go Not staging the files and letting guile re-compile them on demand won't work: ;;; compiling /data/poky-master/tmp/sysroots/x86_64-linux/usr/share/guile/2.0/system/base/compile.scm ;;; it seems /data/poky-master/tmp/sysroots/x86_64-linux/usr/share/guile/2.0/system/base/compile.scm ;;; is part of the compiler; skipping auto-compilation So, use a sstate postinst function to explicitly touch the compiled files after the extraction to ensure that they are fresher. [ YOCTO #3370 ] Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-12-05guile: fix bashism in scriptRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-12-05rsync doesn't create hardlinks for certain filesAmy Fong
commit 4205a4c5d959643cf6c186e0939e202fb6006b82 Author: Amy Fong <Amy.Fong@windriver.com> Date: Thu Nov 29 09:21:49 2012 -0500 rsync cannot create hardlink for node file when use option --link-dest=DIR. By default, rsync's configure file disables certain capabilities when crosscompiling. Signed-off-by: Amy Fong <Amy.Fong@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-12-05squashfs: fix for CVE-2012-4024yanjun.zhu
Reference:http://squashfs.git.sourceforge.net/git/gitweb.cgi?p= squashfs/squashfs;a=commit;h=19c38fba0be1ce949ab44310d7f49887576cc123 Fix potential stack overflow in get_component() where an individual pathname component in an extract file (specified on the command line or in an extract file) could exceed the 1024 byte sized targname allocated on the stack. Fix by dynamically allocating targname rather than storing it as a fixed size on the stack. [YOCTO #3513] Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-26opkg-utils: bump SRCREV to latestMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-10pkgconfig: Drop the RREPLACES for pkgconfig-devRichard Purdie
This line causes pkgconfig-dev to replace pkgconfig so the package with all the files in is replaced by one with no files. This makes no sense and hence we should just remove this broken line. At this point in the release, this is the safest way to fix this even if an empty -dev package is left available. [YOCTO #2878] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-10perl: add archlib_exp variable used to generate ARCHLIB_EXP in config.hTom Zanussi
perl.c uses an ARCHLIB_EXP define to generate compile-time code that adds the archlibexp path to @INC during run-time initialization of a new perl interpreter. Because we've changed this value in a temporary way to make it possible to use ExtUtils::Embed in the target build (the temporary value in config.sh gets re-stripped out during packaging), the ARCHLIB_EXP value that gets generated still uses the temporary version instead of the original expected version (i.e. becauses it's in the generated config.h, it doesn't get stripped out during packaging like the others in config.sh). This creates an unmodified version called archlib_exp that gets used by a modified config_h.SH to get the correct value into config.h This patch uses an unmodified version of archlibexp called archlib_exp, introduced to config.sh, which is used to generate the correct value of ARCHLIB_EXP into config.h Fixes [YOCTO #3099]. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-10gcc-cross-canadian: Fix gettext dependencyRichard Purdie
There was a problem in commit ad23395cd1f6c0cbfcc6980b6071d589f9f6cde0 since gettext-nativesdk was translated to gettext instead of nativesdk-gettext. This fixes to use the correct dependency. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-08qemu: When applying qemu-mips workaround, check the file exists firstRichard Purdie
If qemu-mips was disabled as done in some distros, this wrapper would fail. Therefore check if the file exists before wrapping it. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-08nfs-export-root: add explict no_subtree-check to suppress warningSaul Wold
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/". Assuming default behaviour ('no_subtree_check'). NOTE: this default has changed since nfs-utils version 1.0.x Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-03rpmresolve: fix reporting of multiple matches errorPaul Eggleton
We were mistakenly writing what was meant to go to stderr into the output file, so when the "Multiple matches" error showed we weren't actually seeing the matches printed. Also change the wording of the "Unable to find package..." to "Unable to resolve package..." instead so that it makes more sense if it is printed after the "Multiple matches" error. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-03qemu: add wrapper for qemu-mips binaryLaurentiu Palcu
qemu-mips user emulation binary segfaults when running any kind of binary. This is due to a MMU access fault in the virtual CPU. This problem has been introduced in qemu when 4GB of vmem were reserved for 32-on-64 bit. This workaround will need to be reverted once the proper fix is found. [YOCTO #3143] Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-03e2fsprogs: Don't install findfsPhil Blundell
This binary is provided by util-linux nowadays. Fixes: WARNING: The recipe is trying to install files into a shared area when those files already exist. Those files are: /fast/jenkins/workspace/.../tmp-eglibc/sysroots/x86_64-linux/sbin/findfs Signed-off-by: Phil Blundell <pb@pbcl.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02binutils.inc: add vardep on multiarch DISTRO_FEATUREMatthew McClintock
binutils will build differently if this feature is enabled, so make the do_configure step depend on it Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02chrpath: We should provide chrpath-replacement-native and install into a ↵Richard Purdie
native specific directory chrpath is assumed to be provided by the build host system. This means we need to provide a replacement version and install into a specific directory to avoid races. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02opkg: Convert select-higher-version option to prefer-arch-to-versionRichard Purdie
This converts the option to maintain the existing behaviour unless the option is specified. We do specify the option during the builds themselves to ensure what the users expects is built. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02opkg: Drop nogpg version since the main version now has nogpg tooRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02opkg-native: remove spurious dependency on curl-nativePhil Blundell
All variants of opkg are currently configured --disable-curl so there seems no point in depending on it. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02opkg: Don't call sync() when installing into an offline rootPhil Blundell
Even when installing onto a live target system, calling sync() during package installation is of somewhat questionable benefit. But calling it on the build host during rootfs construction is certainly useless and can cause I/O to stall for several seconds on even a moderately sized host which is clearly not desirable. (From a patch originally by Mike Crowe.) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02opkg: fix version constraints in conflicts, depends, replacesMartin Jansa
* http://code.google.com/p/opkg/issues/detail?id=94 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02rpm: Implement workaround for DB_BUFFER_SMALL errorMark Hatle
In certain cases with BerkleyDB 5.3.x we are getting the error: db3.c:1443: dbcursor->pget(-30999): BDB0063 DB_BUFFER_SMALL: User memory too small fo See https://bugs.launchpad.net/rpm/+bug/934420 for more information. It appears to be some type of a bug in the BerkleyDB 5.3.x. In an attempt to workaround the problem, when we encounter this situation we attempt to adjust the size of the mmap buffer until the call works, or we end up trying 10 times. The new size is either the updated vp->size from the failed pget call, or the previous size + 1024. If DBI debugging is enabled, additional diagnostics are printed, otherwise a basic retry and success message is added to show that the failure was resolved. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02rpm: Add rpm patch to fix git_strerror issuesMark Hatle
Remove the optimzation append from recipe and add the patch that is in the rpm cvs repo, http://www.mail-archive.com/rpm-cvs@rpm5.org/msg08907.html. The -O2 optimzation append is removed since it can limit debugging options that are provided when -O0 is used. This was tested by setting: SELECTED_OPTIMIZATION = "-O0" Signed-off-by: Morgan Little <morgan.little@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02rpm: Fix file contention issueMark Hatle
There is an issue that is caused when doing the install step of rpm on systems with high parallelization where two jobs of make will fight for the same file while installing the sub-directory lua. This is caused by the same makefile rule being called twice in a way that both could be trying to install at the same time. This fix renames the linking rule so it will always be run after the needed files are added and removed it's dependency so the required rule would only run once. This was tested heavily using ppss to run mutliple installs in parallel. This wouldn't happen in practise but it was tested will all the individual rules as well. Signed-off-by: Morgan Little <morgan.little@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>