summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/rpm
AgeCommit message (Collapse)AuthorFiles
2012-07-09rpm: Fix PACKAGECONFIG dependenciesMark Hatle1
neon requires expat to be built first lua similarly requires expat if enabled selinux package name should be "libselinux" (from meta-selinux). Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-06-15rpm: pass lrt and lpthread to link step explicitly for uclibcKhem Raj1
These need to appear in DT_NEEDED for librpmio.so for uclibc somehow it does not get added to link cmdline so we do it explicitly. Signed-off-by: Khem Raj <raj.khem@gmail.com>
2012-06-15rpm: Use link time check for libsspKhem Raj2
-fstack-protector needs libssp to link with so when checking for this option support we need to find if libssp is staged in root file system Signed-off-by: Khem Raj <raj.khem@gmail.com>
2012-06-15rpm: Fix compilation on uclibcKhem Raj3
rpmatch is not there in uclibc therefore add logic to configure to detect it. x* wrappers need to be defined for uclibc as well. Signed-off-by: Khem Raj <raj.khem@gmail.com>
2012-06-12rpm: Ensure pkgconfig deps don't stray from the package being builtMark Hatle2
Force pkg-config to only look in the install directory, and not be able to fall back to system pkg-config directories for resolution. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-06-12package_rpm: Add capability to directly query packageoriginMark Hatle2
Add functionality to RPM to directly query the packageorigin (path) from the resolver database, instead of having to do this via an indirect method. This results in a minor performance improvement. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-06-12ossp-uuid: Add oss-uuid package and RPM 5.4.9 integrationMark Hatle2
RPM 5.4.9 now strongly encourages you to have the ossp-uuid library available. Add this recipe, and change RPM to use the uuid functionality. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-06-12rpm: Upgrade RPM to 5.4.9Mark Hatle4
Beside upreving RPM, add necessary integration patches to libzypp. Also change the configuration of RPM to support PACKAGECONFIG flags. RPM is highly configurable, the default configuration is good for minimal OE-Core use. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-06-12rpm: Upgrade RPM to 5.4.8 (db to 5.3.15)Mark Hatle11
RPM 5.4.8 requires db 5.3.x, so both are upgraded together. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-05-25rpm: fix build with automake 1.12Nitin A Kamble2
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2012-05-24rpm 5.4.0: respect to the arch when choose the alternativesRobert Yang2
There is a bug if we: 1) bitbake diffutils with MACHINE=crownbay 2) bitbake diffutils with MACHINE=qemux86 3) bitbake core-image-sato with MACHINE=crownbay Then the diffutils.i586 would be installed to the crownbay's image, this is because diffutils.i586 is newer than diffutils.core2, and rpm doesn't respect to the arch priorities: We have put the archs in order in _solve_dbpath: crownbay/solvedb:core2/solvedb:i586/solvedb:all/solvedb Fix rpm to respect to the order, for example, if it finds a pkg in both core2/ and i586/, and the core2/ comes first, it should not use the one in i586/ even if it's build time is newer. Note: Don't worry about the _free(*ptr), it can check whether ptr is NULL or not. This is for the denzil branch, and the master branch also needs it. [YOCTO #2360] Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
2012-04-13rpm-native: Compile python rpm module (with-python)Andrei Gherzan1
This module is needed by python scripts from createrepo native package. [YOCTO #2134] RP: Add missing DEPENDS on python-native Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-04-13rpm: Ensure that we check both providename and filepathsMark Hatle2
In lib/rpmts.c we need to make sure to look for missing dependencies, such as /bin/sh, in both the providename and filepaths DB. Previously the system would key off an initial '/' and only look in the filepaths DB. This causes problems when a package such as "bash", has a Provides: /bin/sh. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-28rpm: Ensure we depend on fileRichard Purdie1
rpm links to libmagic from file so it needs to be listed in DEPENDS else we can have race conditions causing build failures such as those seen on the autobuilder recently. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-15rpm: Fix FILE_ -> FILES_ packagingSaul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-03-14rpm: Package python-rpm static archive correctlySaul Wold1
WARNING: QA Issue: non -staticdev package contains static .a library: python-rpm path '/work/i586-poky-linux/rpm-5.4.0-r34/packages-split/python-rpm/usr/lib/python2.7/rpm/_rpmmodule.a' Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-03-13rpm: Add rpmdeps-oecore to appropriate packageRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-09rpm 5.4.0: Add rpmdeps-oecore to replace rpmdeps for package.bbclassRichard Purdie2
This is a performance enhancement by adding a binary allowing batch processing of individual file dependencies. The second patch in this series uses the binary this patch creates. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-08bzip2: split into binary and library packagesAndreas Oberritter1
* Create libbz2 (and -dev, -staticdev), which can be installed without the bzip2 executables. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-24rpm: Fix LICENSE fieldRichard Purdie1
This addresses the warning: WARNING: rpm: No generic license file exists for: LGPL in any provider WARNING: rpm: No generic license file exists for: 2.1 in any provider Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-21recipes: bump PR to rebuild .la files without libz.laMartin Jansa1
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-11rpm: Fix magic file name magic -> magic.mgcSaul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-03rpm: fix build with automake-1.11.2Nitin A Kamble2
automake version 1.11.2 has made use of dir variables more strict. the use of pkglibdir with SCRIPTS & DATA vars results in automake errors. This commits uses pkgdatadir & pkgbindir vars instead of pkglibdir to avoid the strict check errors. This change also works with automake-1.11.1 Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2012-01-03Add Upstream-Status to patchesSaul Wold14
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-01-02rpm: Fix rpm database files capacity issue.Mei Lei2
Tune the __db* size in DB_CONFIG. This will reduce the __db* size from 62MB to 26MB in qemu. [YOCTO #1769] Signed-off-by: Mei Lei <lei.mei@intel.com>
2011-12-23rpm_5.4.0: Fix configuration issue with native/nativesdkMark Hatle1
RPM's configuration assumes if the prefix isn't /usr or /usr/local that you really want the DB in $prefix/var -- we want it in $localstatedir. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-30PR Bump for OpenSSL 1.0Saul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-11-29rpm_5.4.0.bb: Build rpm without xzMatthew McClintock1
This fixes the following issue: Log data follows: | NOTE: Creating RPM package for perf-dbg | NOTE: Creating RPM package for perf | NOTE: Creating EMPTY RPM Package for kernel | NOTE: Creating EMPTY RPM Package for kernel-3.0.9-00348-gec4b357 | NOTE: Creating RPM package for kernel-image-3.0.9-00348-gec4b357 | NOTE: Creating RPM package for kernel-dev | NOTE: Creating RPM package for kernel-vmlinux | NOTE: Not creating empty RPM package for kernel-misc | NOTE: Creating RPM package for kernel-devicetree | NOTE: Creating RPM package for kernel-module-libcrc32c | NOTE: Creating RPM package for kernel-module-crc-itu-t | NOTE: Creating RPM package for kernel-module-sctp | NOTE: Creating RPM package for kernel-module-pcbc | NOTE: Creating RPM package for kernel-module-crc32c | NOTE: Creating RPM package for kernel-module-binfmt-misc | NOTE: Creating RPM package for kernel-module-nfsd | NOTE: Creating RPM package for kernel-module-exportfs | NOTE: Creating RPM package for kernel-module-msdos | NOTE: Creating RPM package for kernel-module-nls-utf8 | NOTE: Creating RPM package for kernel-module-udf | NOTE: Creating RPM package for kernel-module-isofs | NOTE: Creating RPM package for kernel-module-usbhid | NOTE: Creating RPM package for kernel-module-scsi-wait-scan | NOTE: Creating EMPTY RPM Package for kernel-modules | /local/home/mattsm/git/fsl-local-sdk/build_p4080ds_release/tmp/sysroots/x86_64-linux/usr/bin/rpmbuild.real: error while loading shared libraries: liblzma.so.5: cannot open shared object file: No such file or directory | ERROR: Function 'BUILDSPEC' failed (see /local/home/mattsm/git/fsl-local-sdk/build_p4080ds_release/tmp/work/p4080ds-fsl-linux/linux-qoriq-sdk-3.0.6-r2/temp/log.do_package_write_rpm.18943 for further information) Signed-off-by: Matthew McClintock <msm@freescale.com>
2011-11-24rpm: Flush old logs by change the DB_CONFIGMei Lei2
Fixes [YOCTO #1174] Rpm logs will grow indefinitely, so change the config to flush those old logs. Signed-off-by: Mei Lei <lei.mei@intel.com>
2011-11-11rootfs_rpm.bbclass: Enable pre and post install scriptsMark Hatle2
[YOCTO #1755] We change the want the RPM rootfs install works to install pre and post install scripts. The new method uses a script helper that is invoked by RPM outside of the normal chroot. The wrapper is dynamically generated prior to the install starting. It will check the return code of the script. If the script fails, it will store a copy to be executed on the first system boot. This is similar to the previous mechanism. In addition, a line of debug was added to the scripts as written by package_rpm to list which package and which script for later debugging, if necessary. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-09-28rpm: fix QA Warning on installed but not shipped staticdev fileswSaul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-09-28rpm: ensure that magic file is relocatableSaul Wold1
rpm-native was reading from /usr/share/misc/magic which is wrong it needs to be set to read from the sysroot. This also adds wrappers to the rpm-build tools to ensure they know were to find the macros that point to the right directories. Fixes [YOCTO #1532] Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-09-21Update python dependencies to be simply to "python"Mark Hatle2
Previously python dependencies were of the format "python(abi) = ..." This format is not yet supportable within OE, so revert to a form we know we can handle. Introduce a change to package.bbclass that ensures it will causes the sstate-cache's "package" to invalidate. Since pythondeps changed, the output of rpmdeps changes, which causes the per-file dependency information to change.... thus we need to invalidate the cache! Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-08-23rpm: be certain we don't prefix our binariesChris Larson1
In certain combinations of build/host/target, they can end up inadvertently prefixed, breaking the assumptions in the recipe. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-12rpm: Fix the canonical arch --target processing and cleanupMark Hatle7
[YOCTO #1352] Fix the canonical arch --target processor to work with the way OE handles the GNU canonical arch. Also cleanup a number of files that are no longer used, and refactor the no-loop patch into the "no-loopmsg" patch. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-07-27RPM: multilib file class/colorMark Hatle2
We need to include file class and file color in order to do the conflict resolution required with a multilib design. This is normally disabled when we don't use the internal dependency generator, patch enables it in all cases. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-07-12rpm: fix for non /usr/lib libdir caseYu Ke1
rpm default will use /usr/lib if the --with-path-lib is not specified. this will not work in non /usr/lib libdir case. so this patch add the --with-path-lib to fix this issue. Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-29glib-2.0,intltool,rpm,sgmlspl-native: Bump PR to resolve perl-native issueDexuan Cui1
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2011-06-28rpm: Change config optionMark Hatle1
For some reason --without-xz doesn't work the same as --with-xz=none. We need this set to none, or configure will attempt to find an lzma header which we might or might not have. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-06-09native/nativesdk: Clean up the depends ordering after bitbake override ↵Richard Purdie1
handling updates This massively cleans up the dependency handling in the two classes when interacting with BBCLASSEXTEND. This change has a dependency on the bitbake override handling change and also the existence of the RecipePreFinalise event. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-02rpm: avoid dependency on perl and python for -native buildPhil Blundell1
Update override naming (_native -> _virtclass-native) to disable perl and python bindings when building native rpm, and adjust the DEPENDS to match. Perl bindings were, in fact, already disabled for both native and target builds so it's only the python ones that have really changed. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-27rpm: fix fprint pointer issueQing He2
[YOCTO #1030] Signed-off-by: Qing He <qing.he@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-21rpm: Refer to the yoctoproject.org bugzillaRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-16rpm: Disable repackage on upgrade/erasure by defaultMark Hatle1
[YOCTO #787] Disable the repackage on upgrade/erase by default. This removes the warning message: error: cannot create %_repackage_dir /var/spool/repackage/1298783317 Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-03-03rpm: Fix linking error encountered in rpm-nativeKhem Raj2
* This patch passes the correct LDFLAGS to account for additional dependencies of librpmio on libbeecrypt and libsyck and hence fixes the build error. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-01rpm: Fix rpm-dbg package splitMark Hatle1
The rpm-dbg package split was specified incorrectly in the recipe, correct this so we generate the proper -dbg file. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-03-01rpm: Fix rpm usage of prelink on the targetMark Hatle1
RPM has the ability to validate files that have been prelinked, however the necessary configuration and staging was not done properly. Resolve this issue by fixing the macro paths, providing the missing RPM macro, and correcting a defect in the way the prelink image class was working with the necessary configuration file. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-02-22Remove all comments from multiline expressions (as mentioned in bug #704)Richard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-18rpm: Increase the number of solvedb's allowedMark Hatle2
Increase the number of allowed solvedb's to 20 from the original 5. We also add an additional error message to RPM incase the 20 is ever exceeded. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-02-16rpm: Avoid fsync when writing filesMark Hatle2
By default RPM strives for the safest possible file creation and enforces fsync on each file. This changes that default by backporting the fsync disabled from the latest CVS snapshot. This will cut a few minutes off the rootfs generation using RPM. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>