summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm
Commit message (Collapse)AuthorAgeFilesLines
* rpm-native: Compile python rpm module (with-python)Andrei Gherzan2012-04-131-3/+1
| | | | | | | | | | | | This module is needed by python scripts from createrepo native package. [YOCTO #2134] RP: Add missing DEPENDS on python-native (From OE-Core rev: 17f3cc1be0e8648cb4579793a9eb5a701deac85f) Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Ensure that we check both providename and filepathsMark Hatle2012-04-132-1/+38
| | | | | | | | | | | | | 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. (From OE-Core rev: 08fb526c42e85c89135960344745e878c5fb633a) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Ensure we depend on file1.2_M4.rc41.2_M4.rc1Richard Purdie2012-03-281-1/+1
| | | | | | | | | | 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. (From OE-Core rev: 432e36300d7231c9b01cd2c6c4b39b84cf4fddca) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Fix FILE_ -> FILES_ packagingSaul Wold2012-03-161-2/+2
| | | | | | | (From OE-Core rev: 1f591ae09a860ae8471c3f9c8f40a4e34f596baf) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Package python-rpm static archive correctlySaul Wold2012-03-141-2/+3
| | | | | | | | 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' (From OE-Core rev: 1374c7a8ea7c583d428a9546999a4ec3bee06128) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Add rpmdeps-oecore to appropriate packageRichard Purdie2012-03-131-1/+2
| | | | | | (From OE-Core rev: a964e22804705b64202d2852a13ff2be34dc7923) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm 5.4.0: Add rpmdeps-oecore to replace rpmdeps for package.bbclassRichard Purdie2012-03-092-1/+200
| | | | | | | | | | | 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. (From OE-Core rev: 50dc8bfbac42b9a9b52a2f7d0568740c41790c13) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bzip2: split into binary and library packagesAndreas Oberritter2012-03-081-1/+1
| | | | | | | | | | * Create libbz2 (and -dev, -staticdev), which can be installed without the bzip2 executables. (From OE-Core rev: e27af1f273e9a7348dd8f5542df9206acd9210f3) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Fix LICENSE fieldRichard Purdie2012-02-241-2/+2
| | | | | | | | | | | 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 (From OE-Core rev: 2345f788c9206b87804292c0afdd73f565784d45) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: bump PR to rebuild .la files without libz.laMartin Jansa2012-02-211-1/+1
| | | | | | | (From OE-Core rev: 1da6a2dbd5e7aeea6cd45ca05590bdd50b67bf89) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Fix magic file name magic -> magic.mgcSaul Wold2012-01-111-2/+2
| | | | | | | (From OE-Core rev: aee38df69073fe5b3c1e8ee180912d1f0360f651) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: fix build with automake-1.11.2Nitin A Kamble2012-01-032-0/+55
| | | | | | | | | | | | | | 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 (From OE-Core rev: ca76443522a6bb38d239b9aa0c7932cd44446ff8) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Add Upstream-Status to patchesSaul Wold2012-01-0314-1/+29
| | | | | | | (From OE-Core rev: 169e55d802883df763dbff4a4737e05e96358fa3) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Fix rpm database files capacity issue.Mei Lei2012-01-032-1/+21
| | | | | | | | | | | | Tune the __db* size in DB_CONFIG. This will reduce the __db* size from 62MB to 26MB in qemu. [YOCTO #1769] (From OE-Core rev: 32d308bb38612cef2a98a4c40f058b4db50787aa) Signed-off-by: Mei Lei <lei.mei@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm_5.4.0: Fix configuration issue with native/nativesdkMark Hatle2011-12-241-1/+2
| | | | | | | | | | | 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. (From OE-Core rev: 528a2ec8ab53d652d74c51334a40905f009dfd91) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* PR Bump for OpenSSL 1.0Saul Wold2011-11-301-1/+1
| | | | | | | (From OE-Core rev: 59923e66e85471acdb70d72082a8906c69b17720) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm_5.4.0.bb: Build rpm without xzMatthew McClintock2011-11-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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) (From OE-Core rev: 1f55b31bdc8cf1da04ef29f4e44c1be6c0286ee2) Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Flush old logs by change the DB_CONFIGMei Lei2011-11-242-2/+15
| | | | | | | | | | | Fixes [YOCTO #1174] Rpm logs will grow indefinitely, so change the config to flush those old logs. (From OE-Core rev: e2c4dff079722f256ddcab9630b5b3f8f6421cc9) Signed-off-by: Mei Lei <lei.mei@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm.bbclass: Enable pre and post install scriptsMark Hatle2011-11-112-1/+161
| | | | | | | | | | | | | | | | | | | | | [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. (From OE-Core rev: 3e7120d6a9fd5e46214673d0a6e1085a7314ff42) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: fix QA Warning on installed but not shipped staticdev fileswSaul Wold2011-09-281-7/+10
| | | | | | | (From OE-Core rev: 62ce8f96626e061e03ca49896716bbb133721ee0) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: ensure that magic file is relocatableSaul Wold2011-09-281-3/+11
| | | | | | | | | | | | | | 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] (From OE-Core rev: e94d1e7ac1b7952690c37554e618f84b84e561a0) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Update python dependencies to be simply to "python"Mark Hatle2011-09-212-1/+19
| | | | | | | | | | | | | | | | 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! (From OE-Core rev: 30064a98dc9049db4a37f119d15fbb59aa3c8377) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: be certain we don't prefix our binariesChris Larson2011-08-231-1/+2
| | | | | | | | | | In certain combinations of build/host/target, they can end up inadvertently prefixed, breaking the assumptions in the recipe. (From OE-Core rev: a00600b853570b6090e68d20f22bb5ef5435e0ea) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Fix the canonical arch --target processing and cleanupMark Hatle2011-08-127-127/+153
| | | | | | | | | | | | | | | [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. (From OE-Core rev: 25904ad2bdeadda9189805bb7a210eafe5795024) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* RPM: multilib file class/colorMark Hatle2011-07-272-0/+35
| | | | | | | | | | | | 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. (From OE-Core rev: 4c43ea3440ecca02d2945b02017f56a8de9ff808) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: fix for non /usr/lib libdir caseYu Ke2011-07-121-1/+2
| | | | | | | | | | | | 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. (From OE-Core rev: f707953372dd0962efb5cb8daeb422743376bc29) Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glib-2.0,intltool,rpm,sgmlspl-native: Bump PR to resolve perl-native issueDexuan Cui2011-06-291-1/+1
| | | | | | | (From OE-Core rev: 549929364cd7d29b50d8a4562c6f640e21a467f1) Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Change config optionMark Hatle2011-06-281-1/+1
| | | | | | | | | | | | 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. (From OE-Core rev: 43e499b0168eefed38a0883cbf2834f6a4622296) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* native/nativesdk: Clean up the depends ordering after bitbake override ↵Richard Purdie2011-06-091-3/+3
| | | | | | | | | | | | | | | 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. (From OE-Core rev: f183c7cfe377fa6ed2777605c3590a9dda2060df) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: avoid dependency on perl and python for -native buildPhil Blundell2011-06-021-4/+6
| | | | | | | | | | | | | | 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. (From OE-Core rev: a0fd5d332da24a1830ee7bd1030cfb5af384bb1c) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: fix fprint pointer issueQing He2011-05-272-1/+37
| | | | | | | | | [YOCTO #1030] (From OE-Core rev: bc4b86639a713c877dbe5e0f984873915d1578d4) Signed-off-by: Qing He <qing.he@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Refer to the yoctoproject.org bugzillaRichard Purdie2011-04-211-1/+1
| | | | | | (From OE-Core rev: 0f49b02171f31c3b8f321594e41a86123a50881b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Disable repackage on upgrade/erasure by defaultMark Hatle2011-03-161-1/+2
| | | | | | | | | | | | | | [YOCTO #787] Disable the repackage on upgrade/erase by default. This removes the warning message: error: cannot create %_repackage_dir /var/spool/repackage/1298783317 (From OE-Core rev: 3878ef5deacda480b7c689720733c03ef6b3c702) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Fix linking error encountered in rpm-nativeKhem Raj2011-03-032-1/+26
| | | | | | | | | | | * This patch passes the correct LDFLAGS to account for additional dependencies of librpmio on libbeecrypt and libsyck and hence fixes the build error. (From OE-Core rev: bcdd048e4857b5f8a343c434ade5a02ab1db33bc) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Fix rpm-dbg package splitMark Hatle2011-02-251-3/+1
| | | | | | | 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>
* rpm: Fix rpm usage of prelink on the targetMark Hatle2011-02-251-1/+2
| | | | | | | | | | 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>
* Remove all comments from multiline expressions (as mentioned in bug #704)Richard Purdie2011-02-221-6/+6
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Increase the number of solvedb's allowedMark Hatle2011-02-182-1/+31
| | | | | | | | | 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>
* rpm: Avoid fsync when writing filesMark Hatle2011-02-162-0/+35
| | | | | | | | | | 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>
* rpm: Add the ability to use the platform file during installMark Hatle2011-02-163-3/+160
| | | | | | | | | | | Add a new rpm macro, rpmrc_platform_path to specify an alternative platform file. This is required to allow the dep resolver to identify compatible packages. Also workaround a minor problem with the --showrc command in RPM. A bug has been reported upstream on this. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* fetch2: unpack revisionMark Hatle2011-02-121-1/+1
| | | | | | | | | | | | Revise the unpack function to have a way to disable the unpack. This is based on the work from "Andreas Oberritter <obi@opendreambox.org>", see http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=2bdfe8519eda8067845019a699acdf19a21ba380 In addition, the to_boolean function comes from the work of "Chris Larson <chris_larson@mentor.com>", see http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=900cc29b603691eb3a077cb660545ead3715ed54 Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* fetch2: Add SRPM knowledgeMark Hatle2011-02-081-50/+2
| | | | | | | | | | | | | | | | Enable the fetcher to be able to unpack and SRPM. By default the system will unpack the contents of the SRPM into the WORKDIR. A new syntax "unpack=file" was developed for the SRC_URI, to allow for a recipe to extract a specific file within an SRPM. An unpack operation will then be executed on the extracted file. In order to apply extracted patches (or unpack files not specified with unpack), you must specify the path using WORKDIR, i.e.: file://${WORKDIR}/mypatch.patch Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rpm: catch up with fetcher2Koen Kooi2011-02-071-11/+20
| | | | | | | | | | Update the rpm recipe after the recent changes to the fetcher API. Koen wrote the original patch, Richard cleaned it up and fixed it. This code needs to be merged into the fetcher instead at some point soon. Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Update extra unpack code after fetcher changesRichard Purdie2011-02-071-5/+2
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rpm: Add relocation to rpm-nativeMark Hatle2011-02-011-1/+27
| | | | | | | | | [BUGID #668] Use the create_wrapper to setup automatic run-time relocation of rpm-native. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rpm: suggested changeQing He2011-01-282-0/+25
| | | | Signed-off-by: Qing He <qing.he@intel.com>
* rpm: Uprev to RPM 5.4.0Mark Hatle2011-01-285-168/+555
| | | | | | Update RPM to the latest release, RPM 5.4.0. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rpm: Bump PR to force rebuild due to new beecryptSaul Wold2011-01-061-1/+1
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* rpm: Fix LIC_FILES_CHKSUM to use COPYING.LIBSaul Wold2010-12-141-1/+1
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* rpm: Add LIC_FILES_CHKSUMSaul Wold2010-12-131-0/+2
| | | | Signed-off-by: Saul Wold <Saul.Wold@intel.com>